C
C
Cellahar2021-10-15 06:55:08
linux
Cellahar, 2021-10-15 06:55:08

How to see how much memory a program consumes in linux?

Tell me, is it possible to find out using one command how much memory the program consumes with all its threads. It's not entirely clear to me how to find out.

For example, I'm looking in btop - filtered by firefox. But there are a lot of threads. Is there some kind of tool that will tell you what kind of consumption in general

6168fb7e11448869062064.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
neol, 2021-10-15
@neol

smem --processfilter="[f]irefox" -t
--processfilter="[f]irefox" - will filter the necessary processes
-t - will display the sum of the filtered

K
ky0, 2021-10-15
@ky0

Strictly speaking, no way, given the shared memory and cache. And your btop, by the way, most likely also shows a lie.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question