Changes in fs.* after rebooting?

Changes in fs.* after rebooting?

Después de reiniciar mi máquina, sysctl -aobtuve diferentes resultados (algunos de los cambios kernel.sched_domain.cpu0.domain0.max_newidle_lb_costse 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é sysctlindirectamente).

actualizar Especialmente los aumentos dramáticos en nr_inodesel 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.

  1. The first number reveals the total number of directory cache entries
  2. the second number displays the number of unused entries.
  3. The third number tells the number of seconds between when a directory has been freed and when it can be reclaimed.
  4. The fourth measures the pages currently requested by the system.
  5. The last two numbers are not used and display only zeros.
  6. Always 0.

The fs.file-nr tuneable displays three parameters:

  1. the total allocated file handles.
  2. 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).
  3. 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 (?)

información relacionada