[LTP] [RFC] [PATCH] move_pages12: Allocate and free hugepages prior the test

Cyril Hrubis
2017-05-10T13:49:30Z

Hi!
I've got a hint from our kernel devs that the problem may be that the
per-node hugepage pool limits are set too low and increasing these
seems to fix the issue for me. Apparently the /proc/sys/vm/nr_hugepages
is global limit while the per-node limits are in sysfs.

Try increasing:

/sys/devices/system/node/node*/hugepages/hugepages-2048kB/nr_hugepages

Also if I write 0 to the nr_hugepages there while the test is running
move_pages() fails with ENOMEM reproducibly.

I will prepare a patch that will increase these limits in the test setup
temporarily.

--
Cyril Hrubis
chrubis@suse.cz