Pular para o conteúdo

Dúvida [RESOLVIDO]

Responder tópico
  • Denunciar
  • Indicar

1. Dúvida [RESOLVIDO]

Enviado em 04/01/2016 - 16:02h

Encontrei em um site uma dica de como melhorar o ubuntu mudando a prioridade da swap. A alteração é a seguinte,

#
# Reduz o uso de SWAP
vm.swappiness=10
# Melhora a gestão de cache
vm.vfs_cache_pressure=50.

O quê faz a linha vm.vfs_cache_pressure=50 ?

Responder tópico

2. Re: Dúvida

Enviado em 04/01/2016 - 16:11h

viana3 escreveu:

Encontrei em um site uma dica de como melhorar o ubuntu mudando a prioridade da swap. A alteração é a seguinte,

#
# Reduz o uso de SWAP
vm.swappiness=10
# Melhora a gestão de cache
vm.vfs_cache_pressure=50.

O quê faz a linha vm.vfs_cache_pressure=50 ?
https://www.kernel.org/doc/Documentation/sysctl/vm.txt

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.
+ 1:

https://rudd-o.com/linux-and-free-software/tales-from-responsivenessland-why-linux-feels-slow-and-ho...

3. Re: Dúvida [RESOLVIDO]

Enviado em 04/01/2016 - 17:01h

edps escreveu:

viana3 escreveu:

Encontrei em um site uma dica de como melhorar o ubuntu mudando a prioridade da swap. A alteração é a seguinte,

#
# Reduz o uso de SWAP
vm.swappiness=10
# Melhora a gestão de cache
vm.vfs_cache_pressure=50.

O quê faz a linha vm.vfs_cache_pressure=50 ?
https://www.kernel.org/doc/Documentation/sysctl/vm.txt

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.
+ 1:

https://rudd-o.com/linux-and-free-software/tales-from-responsivenessland-why-linux-feels-slow-and-ho...


A dúvida ainda permanece, o que são inode objects? Qual a sua relação com o sistema?

Responder tópico

Responder tópico

Entre na sua conta para responder.

Fazer login para responder