Originally posted by Azrael5
View Post
vm.swappiness and vm.vfs_cache_pressure are able to be changed while you are running your system. So the Linux kernel from the get go has provided the means to change these settings on fly because its been know different workloads these values going into the system arithmetic need to be changeable.
The PSI information the Linux kernel provides since 4.20(yes released December 2018) is so the user mode tools get information when you are getting close to stall points.
This is the problem the ram problem is very much like sneaking up to edge of cliff to see more and if you put hand rail or anything else on cliff you can see less. Performance with this stuff is the same way. oomd to come with systemd in future will be picking up the PSI information that is kind of the safety rail to say you are getting close to the stall cliff better start considering adjusting settings and stopping any processes you don't really need to run right now.
This is really a two to tango problem. Linux kernel has been providing controls to user space over this memory stuff but on the desktop user space side there has nothing in the desktop user space picking them up.
The Linux kernel also does not have the means to crystal ball into the future that much on memory management but a userspace application taking the drivers seat and using the Linux kernel provided controls can. Yes the little thing about being able to write logs of what has gone wrong then read logs so adjust for future is something user space program or user can do but the Linux kernel itself cannot.
Linux cgroups also provide userspace with ways to provide the Linux kernel more information to make memory management choices with if they are used.
The problem goes back to bad resource management from the user-space. The Linux kernel equal to the Windows priority system in NT the cgroups have not been getting filled out from userspace so the Linux kernel cannot make as good of choices as it could. The tuneable setting like vm.swappiness and vm.vfs_cache_pressure are left by most distributions on default settings they are provided as tuneable settings because they are known not to suite all workloads..
This is the problem the Linux kernel is providing all the resource management tools and the userspace has not been using them. When you look at windows you find that the priority information is always filled out.
Comment