public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Marty Shannon <mjshannon3@gmail.com>
To: cygwin@cygwin.com
Subject: /usr/bin/top: RES and MEM% are 16 times VIRT
Date: Thu, 02 Mar 2017 17:32:00 -0000	[thread overview]
Message-ID: <CA+Wt6prqt-5=JWJiqRaHfCHFO6KvPvcOfk1+jbmOC4NbZZ0prw@mail.gmail.com> (raw)

The RES column displayed by /usr/bin/top is 16 times as large as VIRT
(as is MEM%, since it is presumably calculated from RES).  From my
observations, VIRT seems to agree with /proc/self/stat field 22
(0-origin), and matches what I expect.

Not a big deal, but it surprised the heck out of me....

If I were to guess, I'd say this is probably due to incorrect page
size/count calculations.

Cheers,
Marty

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

                 reply	other threads:[~2017-03-02 17:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+Wt6prqt-5=JWJiqRaHfCHFO6KvPvcOfk1+jbmOC4NbZZ0prw@mail.gmail.com' \
    --to=mjshannon3@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).