mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Buddy Lumpkin" <buddy.lumpkin@gmail.com>
To: linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: measuring memory pressure, expose freepages and zone watermarks under /proc perhaps?
Date: Tue, 22 Jul 2008 11:36:22 -0700	[thread overview]
Message-ID: <8fb5fa2d0807221136v2b92a34cv2c1fe4a5e9a126bc@mail.gmail.com> (raw)

Hi All,

Would it be possible to expose the value of the zone watermarks and
freepages for each zone under /proc in order to present a clear
picture of what the memory pressure on a system looks like?

Running: watch -n1 cat /proc/meminfo,  you can get a pretty good feel
for how much memory pressure each zone is under by watching HighFree
and LowFree fall to a certain point, and then increase in a cyclical
fashion, but it would be absolutely wonderful if some metrics could be
exposed that give us a better view into the amount of memory pressure
a system is under.

In my case, I would like to write an agent that distills this
information in a way that allows users to set alarm thresholds for
their applications. The allocstall metric in /proc/vmstat is nice for
indicating whether a 2.6 kernel has fallen under extreme memory
pressure, but I have applications that are affected noticeably by even
modest amounts of memory pressure make a very noticeable difference in
latency.

Lastly, if anyone knows of a good method for measuring various levels
of memory pressure on 2.4 and/or 2.6 kernels, please share them.

Thanks in advance,

--Buddy

                 reply	other threads:[~2008-07-22 18:36 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=8fb5fa2d0807221136v2b92a34cv2c1fe4a5e9a126bc@mail.gmail.com \
    --to=buddy.lumpkin@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    /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

all inboxes | Powered by JetHome®