Tixy wrote: > > > > 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}' > > 62.1 > > $ free -h > > total used free shared buff/cache > > available > > Mem: 7.5Gi 1.3Gi 4.4Gi 113Mi 1.8Gi > > 5.8Gi > > Swap: 0B 0B 0B > > $ > > Perhaps because the php-fpm workers were forked from the same parent > and so a lot of theie 'physical' RAM is actually the same RAM as each > other, because it's not been modified?
I see your point, but ps(1) talks about real physical RAM: %mem %MEM ratio of the process's resident set size to the physical memory on the machine, expressed as a percentage. (alias pmem). If those php-fpm workers share a lot of virtual (?) memory between one another, shouldn't `ps` show it as such? -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/
signature.asc
Description: PGP signature