- trixie 2.41-5
- testing 2.41.3-4
- unstable 2.42-1
- experimental 2.42~rc2-1
| FINCORE(1) | Команди користувача | FINCORE(1) |
НАЗВА¶
fincore - обчислення кількості сторінок вмісту файла у ядрі
КОРОТКИЙ ОПИС¶
fincore [параметри] файл...
ОПИС¶
fincore counts pages of file contents being resident in memory (in core), and reports the numbers. If an error occurs during counting, then an error message is printed to the stderr and fincore continues processing the rest of files listed in a command line. fincore uses the cachestat(2) syscall to count resident pages. If the cachestat(2) syscall is not available and cachestat usage is not forced with the --cachestat option, then fincore uses the mincore(2) syscall as a fallback. The cachestat(2) syscall is more efficient than mincore because it does not require a page table lock to walks page tables, and also reports more information than mincore, like the number of cached pages, dirty pages, pages marked for writeback, evicted pages, and recently evicted pages. Another difference between the two syscalls is that if write permissions are not granted to the file, then cachestat(2) returns an error, while mincore(2) for security reasons, returns fake data as if all pages were resident in memory (c.f.r. kernel commit "make mincore() more conservative" <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=134fca9063ad4851de767d1768180e5dede9a881>).
Типовий формат виведення може бути змінено авторами програми. Тому, коли це можливо, вам слід уникати обробки типових виведених даних у ваших скриптах. Завжди явно визначайте очікувані стовпчики за допомогою параметра --output список-стовпчиків у середовищах, де потрібне виведення стабільного набору даних.
ПАРАМЕТРИ¶
-n, --noheadings
-b, --bytes
By default, sizes are shown in units that are powers of 1024 bytes. The formal abbreviations for these units (KiB, MiB, GiB, ...) are further shortened to just their first letter: K, M, G, ....
-c, --total
-C, --cachestat
-o, --output список
--output-all
-r, --raw
-J, --json
-R, --recursive
-h, --help
-V, --version
СЕРЕДОВИЩЕ¶
LIBSMARTCOLS_DEBUG=all
LIBSMARTCOLS_DEBUG_PADDING=on
АВТОРИ¶
Masatake YAMATO <yamato@redhat.com>
ТАКОЖ ПЕРЕГЛЯНЬТЕ¶
mincore(2), getpagesize(2), getconf(1p) cachestat(2)
ЯК НАДІСЛАТИ ЗВІТ ПРО ВАДИ¶
Для звітування щодо вад скористайтеся системою стеження за вадами <https://github.com/util-linux/util-linux/issues>
ДОСТУП ДО ПРОГРАМИ¶
Програма fincore є частиною пакунка util-linux, який можна отримати з архіву ядра Linux <https://www.kernel.org/pub/linux/utils/util-linux/>.
| 2026-03-26 | util-linux 2.42-rc2 |