Короче, дефолтом шло следующее
swappiness=60
vfs_cache_pressure=100
Свопило это дело по страшному - вынужден был пользовать не более 60% памяти.
По распространённым советам, переправил на
swappiness=10
vfs_cache_pressure=1000
Но после этого приложения частенько начали валиться с memory out, от чегобы?
От swappiness=10 или vfs_cache_pressure=1000 ?
Поправил swappiness на 15, всё стало нормально, но, блин, жаба душит, что более 15% памяти не используется.
Что vfs_cache_pressure делает?
читал
("Al Tobey <albert tobey priority-health com>") писал(а):vfs_cache_pressure
------------------
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. Increasing vfs_cache_pressure beyond 100
causes the kernel to prefer to reclaim dentries and inodes.
Но ничего не понял, можете это на могучий правильно перевести?
Каково оптимальные значения swappiness и vfs_cache_pressure для высокопроизводительной работы?
Gentoo 2005.1 2.6.12-gentoo-r10