Originally posted by RomuloP
View Post
You need 2017 or later. Any documentation from 2016 like you just quoted is wrong.
Over time most Linux systems today require a reboot because performance will suffer as memory becomes more and more fragmented.
This is not a special problem to server hardware. Fragmentation kills you IO performance. Sometimes quickly sometimes slowly.
Sorry I don't understand why you are getting a single up vote as everything you are writing it out of date and wrong.
Really the issue not able to allocate huge pages is hitting performance even on the desktop. Yes the default slab allocator in the Linux kernel uses huge pages so huge page usage is part of default Linux kernel operations.
HP/THP being server only works loads is bull crap. HP/THP is all systems running Linux. Degrade can happen inside hours to days. So someone using hibernation on laptops does not have todo this many times to get to days of running.
Methods added to the Linux kernel since 2017 to deal with memory fragmentation use swap. Setting swappiness 0 will not prevent defrag functions in the Linux kernel using swap to perform it.
Yes people miss that user space page migration in Linux started being implemented as push to swap and pull back in another location.
Linux kernel new memory defragmentation methods are always implemented first as push to swap and pull back into a different memory location then optimised latter on not to use swap. So disable swap always disables the newest Linux kernel memory defragmentation methods. We really do need a different duck tape solution for this if people wish to be switching off swap.
So create 4 meg memory swap on a ramdisk set swappiness to 0 and all Linux kernel memory defragmentation methods can run.
Basically you are not understanding how much the Linux kernel for performance depends on being defragmented.
Yes fragmentation of memory will make being in swap hell worse. So you might avoid swap thrash by disabling swap but you might slow write to disc to 10% or less of what is possible. So you change you dice roll by disabling swap.
Works for me is the disable swap option. There are people who will disable swap and see their IO performance tank because they disabled swap so disabled a memory defragmentation feature that they in fact needed.
Comment