Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libukallocbbuddy can't allocate 1G memory even if 4G memory provided #1381

Open
ChaoyiHuang opened this issue Apr 10, 2024 · 0 comments
Open
Labels
kind/bug Something isn't working

Comments

@ChaoyiHuang
Copy link

Describe the bug

provide 4G to unikraft application to test memory, and malloc 1G memory will fail.

		pMem = malloc(1024*1024*1024);
        if (pMem == NULL) {
                printf("no enough memory\n");
                return 0;
        }

libukallocbbuddy reported out of memory.

	[    1.842053] Info: {r:0x126aaf,f:0x11f50} [libukboot] <boot.c @  514> Calling main(1, ['/home/joehuang_sweden/catalog/native/testmem/.unikraft/build/memspeed_qemu-x86_64'])
	[    1.911369] Warn: {r:0x1256f9,f:0x11eb0} [libukallocbbuddy] <bbuddy.c @  351> 12000: Cannot handle palloc request of order 19: Out of memory
	no enough memory

Steps to reproduce

in the native helloworld.c, try to malloc 1G memory, even if 4G is provided to the unikraft application, still oom

Expected behavior

malloc succeeds

Which architectures were you using or does this bug affect?

x86_64

Which platforms were you using or does this bug affect?

kvm

Relevant log output

[    1.842053] Info: {r:0x126aaf,f:0x11f50} [libukboot] <boot.c @  514> Calling main(1, ['/home/joehuang_sweden/catalog/native/testmem/.unikraft/build/memspeed_qemu-x86_64'])
	[    1.911369] Warn: {r:0x1256f9,f:0x11eb0} [libukallocbbuddy] <bbuddy.c @  351> 12000: Cannot handle palloc request of order 19: Out of memory
	no enough memory
@ChaoyiHuang ChaoyiHuang added the kind/bug Something isn't working label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
Status: 🧊 Icebox
Development

No branches or pull requests

1 participant