<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000">
<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>further information:</DIV>
<DIV> </DIV>
<DIV>this seems to be happen only if rump_fs has a larger quota – the file can
be larger if rump_fs has a smaller quota. (memory tests of the system have shown
no errors so RAM should be okay)</DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV style="FONT: 10pt tahoma">
<DIV><FONT size=3 face=Calibri></FONT> </DIV>
<DIV><FONT size=3 face=Calibri>Best regards</FONT></DIV>
<DIV><FONT size=3 face=Calibri>Wolfgang</FONT></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=w_schmidt@...260....
href="mailto:w_schmidt@...181...">w_schmidt@...181...</A> </DIV>
<DIV><B>Sent:</B> Sunday, July 13, 2014 12:54 PM</DIV>
<DIV><B>To:</B> <A title=genode-main@lists.sourceforge.net
href="mailto:genode-main@lists.sourceforge.net">Genode OS Framework Mailing
List</A> </DIV>
<DIV><B>Subject:</B> Malloc / free ansd rump_fs ->Slab-backend
exhausted</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000">
<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>i try to open a file.</DIV>
<DIV> </DIV>
<DIV>I used the following code:</DIV>
<DIV> </DIV>
<DIV>//malloc</DIV>
<DIV>char * buffer = (char*)
Genode::env()->heap()->alloc(sizeof(char)*lSize);</DIV>
<DIV>FILE* pFile = fopen(fileName, "rb");</DIV>
<DIV>size_t result = fread (buffer,1,lSize,pFile);</DIV>
<DIV>fclose (pFile);</DIV>
<DIV>//free (buffer);</DIV>
<DIV>env()->heap()->free(buffer, 0); </DIV>
<DIV> </DIV>
<DIV>The code seems to work if the file is quite small.</DIV>
<DIV> </DIV>
<DIV>I try thre same with a file of size 128 MB. I have given rump_fs a quite
large quota of 520M</DIV>
<DIV> </DIV>
<DIV>[Quota exceeded! amount=69632, size=8192, consumed=65536[0m</DIV>
<DIV>[Could not allocate metadata[0m</DIV>
<DIV>[init -> rump_fs] [upgrading quota donation for Env::RAM (8192
bytes)[0m</DIV>
<DIV>[Quota exceeded! amount=77824, size=8192, consumed=73728[0m</DIV>
<DIV>[Could not allocate metadata[0m</DIV>
<DIV>[init -> rump_fs] [upgrading quota donation for Env::RAM (8192
bytes)[0m</DIV>
<DIV>[init -> rump_fs] [Slab-backend exhausted!</DIV>
<DIV> </DIV>
<DIV>And from this point onwards only Slab-backend exhausted messages are
shown.</DIV>
<DIV> </DIV>
<DIV>Is there some max size for ram quotas?</DIV>
<DIV> </DIV>
<DIV>Best regards,</DIV>
<DIV>Wolfgang</DIV></DIV></DIV>
<P>
<HR>
------------------------------------------------------------------------------<BR>
<P>
<HR>
_______________________________________________<BR>genode-main mailing
list<BR>genode-main@lists.sourceforge.net<BR>https://lists.sourceforge.net/lists/listinfo/genode-main<BR></DIV></DIV></DIV></BODY></HTML>