From: Al Boldi <a1426z@gawab.com>
To: linux-kernel@vger.kernel.org
Subject: top lies ?
Date: Tue, 13 Nov 2007 10:08:56 +0300 [thread overview]
Message-ID: <200711131008.56627.a1426z@gawab.com> (raw)
kloczek wrote:
> Some data showed by top command looks like completly trashed.
> Fragment from top output:
>
> Mem: 2075784k total, 2053352k used, 22432k free, 19260k buffers
> Swap: 2096472k total, 136k used, 2096336k free, 1335080k cached
>
> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ SWAP nFLT
> WCHAN COMMAND 14515 mysql 20 0 1837m 563m 4132 S 39 27.8
> 27:14.20 1.2g 18 - mysqld
>
> How it is possible that swap ussage is 136k and swapped out portion of (in
> this case) mysqld process is 1.2g ?
Welcome to OverCommit, aka OOM-nirvana.
Try this:
# echo 2 > /proc/sys/vm/overcommit_memory
# echo 0 > /proc/sys/vm/overcommit_ratio
But make sure you have enough swap.
Thanks!
--
Al
next reply other threads:[~2007-11-13 7:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-13 7:08 Al Boldi [this message]
2007-11-13 7:19 ` Balbir Singh
2007-11-13 7:38 ` Al Boldi
-- strict thread matches above, loose matches on Subject: below --
2007-11-12 17:57 Tomasz Kłoczko
2007-11-12 22:28 ` Jarek Poplawski
2007-11-13 0:14 ` Andreas Schwab
2007-11-13 2:23 ` Tomasz Kłoczko
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=200711131008.56627.a1426z@gawab.com \
--to=a1426z@gawab.com \
--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®