Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #227550

Re: "ps -o %mem" and free memory in Linux

From Fabrice BAUZAC-STEHLY <noon@mykolab.com>
Newsgroups linux.debian.user
Subject Re: "ps -o %mem" and free memory in Linux
Date 2020-10-02 21:50 +0200
Message-ID <AVze2-7pN-7@gated-at.bofh.it> (permalink)
References <AUeuZ-6ze-1@gated-at.bofh.it> <AUi5A-jZ-3@gated-at.bofh.it> <AUpA5-4Nh-3@gated-at.bofh.it> <AUpTs-4TS-21@gated-at.bofh.it> <AUqcO-50E-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Victor Sudakov writes:

> I summed up with awk the values of %mem, which are supposed to be "ratio
> of the process's resident set size  to the physical memory", correct?
>
> In my understanding, the value of %mem should indicate how much physical
> memory is spent on the "individual" part of the process, otherwise the
> parameter is either useless or misdocumented.

No, in resident memory you can find memory private to a process as well
as memory shared between processes.

And in memory private to a process, you can find resident memory and
non-resident memory.

According to Linux's Documentation/filesystems/proc.txt, we can find
this information in /proc/PID/status:

      VmData   size of private data segments
e.g.  VmData:  123004 kB

This looks like the amount of private memory, but I'm not sure.

--
Fabrice BAUZAC-STEHLY
PGP 015AE9B25DCB0511D200A75DE5674DEA514C891D

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

"ps -o %mem" and free memory in Linux Victor Sudakov <vas@sibptus.ru> - 2020-09-29 05:30 +0200
  Re: "ps -o %mem" and free memory in Linux Tixy <tixy@yxit.co.uk> - 2020-09-29 09:20 +0200
    Re: "ps -o %mem" and free memory in Linux Victor Sudakov <vas@sibptus.ru> - 2020-09-29 17:20 +0200
      Re: "ps -o %mem" and free memory in Linux Klaus Singvogel <deb-user-ml@singvogel.net> - 2020-09-29 17:40 +0200
        Re: "ps -o %mem" and free memory in Linux Victor Sudakov <vas@sibptus.ru> - 2020-09-29 18:00 +0200
          Re: "ps -o %mem" and free memory in Linux Fabrice BAUZAC-STEHLY <noon@mykolab.com> - 2020-10-02 21:50 +0200
  Re: "ps -o %mem" and free memory in Linux <tomas@tuxteam.de> - 2020-09-29 11:20 +0200
    Re: "ps -o %mem" and free memory in Linux Victor Sudakov <vas@sibptus.ru> - 2020-09-29 17:20 +0200
      Re: "ps -o %mem" and free memory in Linux <tomas@tuxteam.de> - 2020-09-29 17:30 +0200
        Re: "ps -o %mem" and free memory in Linux Victor Sudakov <vas@sibptus.ru> - 2020-09-29 18:00 +0200

csiph-web