On Tue, Sep 29, 2020 at 10:24:35AM +0700, Victor Sudakov wrote:
> Dear Colleagues,
> 
> Could you please clarify for me how the following is possible. `ps` shows
> that the php-fpm workers have occupied 62% of physical memory, while
> `free` shows that only 1.3Gi (which is 17% of total RAM) is used:
> 
> $ ps axww -o cmd,%mem |awk '/php-fpm/{sum+=$NF}END{print sum}'

Ah, but you're adding the resident set sizes of many processes here,
right?

Remember that they do share quite a bit of that set: libraries, binaries,
and so on: you are counting that shared stuff more than once.

Cheers
 - t

Attachment: signature.asc
Description: Digital signature

Reply via email to