Hi,
 
further information:
 
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)
 
Best regards
Wolfgang
Sent: Sunday, July 13, 2014 12:54 PM
Subject: Malloc / free ansd rump_fs ->Slab-backend exhausted
 
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


------------------------------------------------------------------------------


_______________________________________________
genode-main mailing list
genode-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/genode-main