Malloc / free ansd rump_fs ->Slab-backend exhausted
w_schmidt at ...181...
w_schmidt at ...181...
Mon Aug 11 16:12:02 CEST 2014
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
From: w_schmidt at ...181...
Sent: Sunday, July 13, 2014 12:54 PM
To: Genode OS Framework Mailing List
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
[Quota exceeded! amount=69632, size=8192, consumed=65536[0m
[Could not allocate metadata[0m
[init -> rump_fs] [upgrading quota donation for Env::RAM (8192 bytes)[0m
[Quota exceeded! amount=77824, size=8192, consumed=73728[0m
[Could not allocate metadata[0m
[init -> rump_fs] [upgrading quota donation for Env::RAM (8192 bytes)[0m
[init -> rump_fs] [Slab-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 at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/genode-main
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genode.org/pipermail/users/attachments/20140811/86496855/attachment.html>
More information about the users
mailing list