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