vmstat: -s prints memory in 1000-byte units and leaves SReclaimable out of swap cache
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 25/100
Línea de trabajo
Read the vmstat -s implementation and its tests, then compare the memory-unit and swap-cache calculations with the /proc/meminfo examples in the issue. Verify the output against procps-ng, including the supplied Cached and SReclaimable values; done means the reported totals and swap cache match those reference values.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
vmstat -s prints its K memory lines in units of 1000 bytes, while procps-ng prints the KiB values from /proc/meminfo. Every memory line is scaled up by about 2.4%, which shows on any Linux system:
$ grep MemTotal /proc/meminfo
MemTotal: 15634224 kB
$ vmstat -s | head -1
16009445 K total memory
procps-ng 4.0.7 prints 15634224 K total memory.
The swap cache line also differs: procps-ng counts Cached plus SReclaimable, uutils counts only Cached. With a fixed /proc/meminfo where Cached is 4576180 kB and SReclaimable is 4968264 kB, procps-ng prints 9544444 K swap cache and uutils prints 4686008.
#668 changed how meminfo values are parsed, and #655 added SReclaimable to the cache column of the default output, but neither changed -s. This came up in #814.
- Lenguaje dominante
- Rust
- Estrellas
- 116
- Forks
- 40
- Merge medio
- 1 d 41 min
- PR fusionados (30 d)
- 20
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de uutils/procps
-
hugetop: print human readable sizes by defaultPosiblemente ocupada @Franklin-Qi la tomó hace 162 días. Abiertohugetop
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
w: exits with error when utmp session references a missing tty devicePosiblemente ocupada @Franklin-Qi la tomó hace 115 días. Abiertow
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
uutils/procps#718 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
Los mantenedores suelen responder en 1 día
-
enhancement good first issue
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
uutils/procps#665 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
Todos los issues de uutils/procps
Issues similares
-
[Feature]: [P3] engine-rs: the package source hash should ignore line endings and untracked filesAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
maniator/verticopolis#880 ·
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 3 días
-
defect
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 2 días