From long time I have an issue. And that's really a long time.
The issue is the epic huge memory consumption in computers which I use for work. You read right, I can hit
42GB memory consumption in a day of work. That's 32GB real memory, the rest is SWAP, with all the fun.
And I have a very good excuse: very bad habits, as in tons of Firefox and Chromium pages open, LAMP stack running in background dozens of local sites,
REDIS and so on...
Then, somewhen a month ago, I had the bad idea to look in the REDIS logs. Hundred times, they said so:
Quote:
WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after
THP is disabled.
|
I had then the stupid idea to follow that recommendation, and I added into rc.local
Code:
echo never > /sys/kernel/mm/transparent_hugepage/enabled
For my surprise, the memory consumption
never then passed the
5.77GB. Reasonable for a 32GB system, right?
After all, I think that's much more reasonable than
42GB, in my humble opinion...
Then, I tried the same thing in more lightly used computers. That's "only" some hundreds pages opened in Firefox, in my vision.
For my surprise, computers with 8GB which easily hit the SWAP while I walked in a news site (and opened about hundred tabs in Firefox or Chrome), now not hit 3GB memory consumption.
In the final, I arrived to conclusion that THIS thing:
Transparent Huge Pages enabled in the kernels, interacts freaking badly with Firefox, Chromium, LAMP stack and REDIS habits.
Then, dear Slackware Team, permit me to ask you:
FOR WHAT THE HECK are good those
Transparent Huge Pages, excluding the
wasting the users computers memory, thing which
they do perfectly?