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
[email protected]
https://lists.sourceforge.net/lists/listinfo/genode-main

Reply via email to