mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: u1_amd64@dslr.net
To: linux-kernel@vger.kernel.org
Subject: time cat /proc/*/statm ?
Date: Thu, 8 Jan 2004 13:54:58 -0500	[thread overview]
Message-ID: <179256560250.20040108135458@dslr.net> (raw)

Hi,

Is it reasonable for a 64bit dual cpu to take 5+ seconds of processing to
cat /proc/*/statm when there is hardly more than 1gb of actual memory
space used by processes (the rest being filesystem cache)?

This makes top or anything else that uses statm, unusable.

I don't observe this behavior on a 4gb 32bit machine, with the same
working set of mysqld processes, and 3gb of filesystem cache.

# free
             total       used       free     shared    buffers     cached
Mem:      16278356   16264484      13872          0      85400   14819932
-/+ buffers/cache:    1359152   14919204

# ps -eda|wc
 216     866    6751

# time cat /proc/*/statm
:
:
:
real    0m5.740s
user    0m0.003s
sys     0m5.521s

# uname -a

Linux silver 2.4.21-151-smp #22 SMP Mon Jan 5 21:31:07 PST 2004 x86_64 x86_64 x86_64 GNU/Linux


thanks!!


             reply	other threads:[~2004-01-08 18:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-08 18:54 u1_amd64 [this message]
2004-01-09  0:32 ` Roger Luethi
2004-01-09  0:49 ` Willy Tarreau
2004-01-10 17:57 Albert Cahalan

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=179256560250.20040108135458@dslr.net \
    --to=u1_amd64@dslr.net \
    --cc=linux-kernel@vger.kernel.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®