sysctl konfigurasyon dosyasına yazılabilecek bir ayar ile ilgili sorum var

Başlatan twats, 07 Ağustos 2015 - 12:45:35

« önceki - sonraki »

0 Üyeler ve 3 Ziyaretçi konuyu incelemekte.

twats


betseg

Kernel'ın ne kadar swap kullanacağını belirler. Değeri büyükse çokça swap kullanmaya çalışır, küçükse neredeyse hiç swap kullanmaz.

twats

Alıntı yapılan: betseg - 07 Ağustos 2015 - 12:49:24
Kernel'ın ne kadar swap kullanacağını belirler. Değeri büyükse çokça swap kullanmaya çalışır, küçükse neredeyse hiç swap kullanmaz.

öyleyse vm.swappiness ne oluyor ? okuduklarımdan anladığım senin yazdığın swappiness'in tanımı

betseg

Evet karıştırdım öyle. Kernel belegelerinden:
Alıntı yapılan: https://www.kernel.org/doc/Documentation/sysctl/vm.txtvfs_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.

Yani dosyaların konumlarının bellekte ne kadar sıklıkta değişeceğini belirliyor (diye anladım). Başka bir sitede gördüğüm yazıda da [1] değer azaldıkça dosyaların okunmasının hızlandığını belirtiyor.

[1]: (2007) https://rudd-o.com/linux-and-free-software/tales-from-responsivenessland-why-linux-feels-slow-and-how-to-fix-that