![Changes in fs.* after rebooting?](https://rvso.com/image/726382/Changes%20in%20fs.*%20after%20rebooting%3F.png)
Después de reiniciar mi máquina, sysctl -a
obtuve diferentes resultados (algunos de los cambios kernel.sched_domain.cpu0.domain0.max_newidle_lb_cost
se esperan):
16c16
< fs.dentry-state = 37641 15280 45 0 0 0
---
> fs.dentry-state = 407249 384656 45 0 0 0
19,22c19,22
< fs.file-max = 19473815
< fs.file-nr = 624 0 19473815
< fs.inode-nr = 36402 297
< fs.inode-state = 36402 297 0 0 0 0 0
---
> fs.file-max = 19473810
> fs.file-nr = 864 0 19473810
> fs.inode-nr = 285420 308
> fs.inode-state = 285420 308 0 0 0 0 0
Pero no entiendo muy bien por qué la configuración relacionada con fs ha cambiado, dado que yo no cambié /etc/sysctl.conf
(ni cambié sysctl
indirectamente).
actualizar
Especialmente los aumentos dramáticos en nr_inodes
el número total de entradas de caché de directorio (primer valor en fs.dentry-state
). No es que haya creado más de 390.000 directorios después de reiniciar.
Cualquier idea o sugerencia es muy apreciada.
Respuesta1
Those are parameters that change during runtime and are expected to be different after reboots.
https://www.kernel.org/doc/Documentation/sysctl/fs.txt
The fs.dentry-state
— provides the status of the directory cache.
- The first number reveals the total number of directory cache entries
- the second number displays the number of unused entries.
- The third number tells the number of seconds between when a directory has been freed and when it can be reclaimed.
- The fourth measures the pages currently requested by the system.
- The last two numbers are not used and display only zeros.
- Always 0.
The
fs.file-nr
tuneable displays three parameters:
- the total allocated file handles.
- the number of currently used file handles (with the 2.4 kernel); or the number of currently unused file handles (with the 2.6 kernel).
- the maximum file handles that can be allocated (also found in /proc/sys/fs/file-max).
the first two number parameters will of course change during runtime and after reboot.
The fs.inode-nr
contains the nr_inodes and the nr_free_inodes.
Nr_inodes stands for the number of inodes the system has allocated. Nr_free_inodes represents the number of free inodes (?)