Portál AbcLinuxu, 6. května 2025 16:17
vm.vfs_cache_pressure = 50 vm.swappiness = 1A nezdá se, že by to pomohlo. Je ještě nějaký jiný způsob, jak říct jádru, že desktopové aplikace chci držet v RAM spíš než cache souborového systému? Swap vypínat úplně nechci.
vfs_cache_pressure
------------------
This percentage value controls the tendency of the kernel to reclaim
the memory which is used for caching of directory and inode objects.
At the default value of vfs_cache_pressure=100 the kernel will attempt to
reclaim dentries and inodes at a "fair" rate with respect to pagecache and
swapcache reclaim. Decreasing vfs_cache_pressure causes the kernel to prefer
to retain dentry and inode caches. When vfs_cache_pressure=0, the kernel will
never reclaim dentries and inodes due to memory pressure and this can easily
lead to out-of-memory conditions. Increasing vfs_cache_pressure beyond 100
causes the kernel to prefer to reclaim dentries and inodes.
Increasing vfs_cache_pressure significantly beyond 100 may have negative
performance impact. Reclaim code needs to take various locks to find freeable
directory and inode objects. With vfs_cache_pressure=1000, it will look for
ten times more freeable objects than there are.
renice +15 $$ ionice -p $$ -c 3 cgcreate -g memory:/cg_zalohy echo 1G > /sys/fs/cgroup/memory/cg_zalohy/memory.limit_in_bytes echo $$ >> /sys/fs/cgroup/memory/cg_zalohy/tasks... teda ted trpi taky, ale jak mensi zrivatka a neni to tak okate.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.