Malloc / free ansd rump_fs ->Slab-backend exhausted

w_schmidt at ...181... w_schmidt at ...181...
Sun Jul 13 12:54:25 CEST 2014


Hi,

i try to open a file.

I used the following code:

//malloc
char * buffer = (char*) Genode::env()->heap()->alloc(sizeof(char)*lSize);
FILE* pFile = fopen(fileName, "rb");
size_t result = fread (buffer,1,lSize,pFile);
fclose (pFile);
//free (buffer);
env()->heap()->free(buffer, 0); 

The code seems to work if the file is quite small.

I try thre same with a file of size 128 MB. I have given rump_fs a quite large quota of 520M

uota exceeded! amount=69632, size=8192, consumed=65536
ould not allocate metadata
[init -> rump_fs] pgrading quota donation for Env::RAM (8192 bytes)
uota exceeded! amount=77824, size=8192, consumed=73728
ould not allocate metadata
[init -> rump_fs] pgrading quota donation for Env::RAM (8192 bytes)
[init -> rump_fs] lab-backend exhausted!

And from this point onwards only Slab-backend exhausted messages are shown.

Is there some max size for ram quotas?

Best regards,
Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genode.org/pipermail/users/attachments/20140713/dd071f78/attachment.html>


More information about the users mailing list