by wintpe » Sep 28th, '15, 12:43
if you are using tmpfs, then it will be far more efficient if you use hugepages
what this does is to reduce the effect of memory lookups on the TLB, and will in itself make tmpfs much faster.
as the hugepages implementation changes from one revision of kernel to another, you need to be aware, that what im showing you is a redhat 6.2 example, and may well change in our kernel.
add vm.nr_hugepages=20 to /etc/sysctl.conf and reread
(dont add more hugepages that available ram, that will cause the kernel to crash.)
mkdir /largepage
mount -t hugetlbfs none /largepage
alternatively use transparent hugepages, as these are able to be swapped out.
ive not tried this myself on mageia, so im just quoting from a book.
so be aware, you might need to do some research, to confirm my suggestion.
regards peter
Redhat 6 Certified Engineer (RHCE)
Sometimes my posts will sound short, or snappy, however its realy not my intention to offend, so accept my apologies in advance.