Значение vmRSS /proc/$pid/status кажется неточным? Почему?

В paplay нет поддержки mp3, вместо этого используйте ffplay. (или сначала конвертировать во flac)

...I will not be adding support for MPEG Layer 3 (commonly known as MP3)...

http://www.mega-nerd.com/libsndfile/

paplay... understands all audio file formats supported by libsndfile

https://linux.die.net/man/1/paplay

1
16.12.2019, 04:26
1 ответ

Пожалуйста, обратитесь к проекту справочных страниц Linux -по адресуhttps://www.kernel.org/doc/man-pages/. Они могут объяснить то, что вы видите.

На момент написания этой статьи (выпуск 5.13 ), proc (5)говорит, что VmRSS в /proc/[pid]/status неточен.

VmRSS Resident set size. Note that the value here is the sum of RssAnon, RssFile, and RssShmem. This value is inaccurate; see /proc/[pid]/statm above.

proc (5 )говорит, что RssAnon и RssFile неточны, поэтому VmRSS должен быть неточным.

Для получения точных значений вы должны обратиться к /proc/[pid]/smaps (справочная страница говорит об этом в разделе /proc/[pid]/statm ).

И, пс (1)говорит

The SIZE and RSS fields don't count some parts of a process including the page tables, kernel stack, struct thread_info, and struct task_struct. This is usually at least 20 KiB of memory that is always resident. SIZE is the virtual size of the process (code+data+stack).

1
30.10.2021, 04:01

Теги

Похожие вопросы