-
Notifications
You must be signed in to change notification settings - Fork 345
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
About hugepages on ubuntu 12.04 #131
Comments
Yes, you have to configure your system. Install the hugepage package and then you have to change your grub config:
|
I think it is easier than this. run the command
thus on my system the current hugepage size is 2MB (compared to 4kb without hugepages). Currently the total number of hugepages available is 0 so the program would fail similar to your problem. If you run the output would look like this:
thus 500*2MB = 1GB of hugepage mapped memory is available and you could run a program using up to 1GB of memory. The method simon posted would allow you to change the type of hugepages used by the system to 1GB instead of 2MB which would result in better performance improvements. |
Thanks for your help =P I've tried Simon's solution but failed, it still returned the same error So I tried Petri's solution, but it also failed with the following message:
Is there any error when I use the command? |
I'll investigate this and get back to you. I'm getting the same error. |
I found the bug (#135) you encountered and fixed it. in 2-3 hours you should be able to pull the current version and it hopefully will work. let me if you have any other problems. |
I've tested on my computer and it worked so great. |
I tried to execute the hugepage example on ubuntu but failed with following message:
terminate called after throwing an instance of 'std::system_error'
what(): hugepage_allocator could not allocate hugepages: Cannot allocate memory
Aborted (core dumped)
Is there any setting needs? Or we cannot use hugepages on ubuntu@@?
Thanks a lot!
The text was updated successfully, but these errors were encountered: