From: Vincent Li <vincent.mc.li@gmail.com>
To: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Cc: Linux-MM <linux-mm@kvack.org>
Subject: Re: sysrq key f to trigger OOM manually
Date: Thu, 28 Mar 2019 18:04:02 -0700 [thread overview]
Message-ID: <CAK3+h2xppfdTSd2Gc=Qfd2oDp+Z+VyiTf_CQhn4JyB7UqsiGUQ@mail.gmail.com> (raw)
In-Reply-To: <201903290006.x2T06fWZ001228@www262.sakura.ne.jp>
On Thu, Mar 28, 2019 at 5:06 PM Tetsuo Handa
<penguin-kernel@i-love.sakura.ne.jp> wrote:
>
> > On Thu, Mar 28, 2019 at 3:46 PM Tetsuo Handa
> > <penguin-kernel@i-love.sakura.ne.jp> wrote:
> > >
> > > On 2019/03/29 6:37, Vincent Li wrote:
> > > > Hi,
> > > >
> > > > not sure if this is the right place, I tried to use echo f >
> > > > /proc/sysrq-trigger to manually trigger OOM, the OOM killer is
> > > > triggered to kill a process, does it make sense to trigger OOM killer
> > > > manually but not actually kill the process, this could be useful to
> > > > diagnosis problem without actually killing a process in production
> > > > box.
> > >
> > > Why not use "/usr/bin/top -o %MEM" etc. ?
> > > Reading from /proc will give you more information than from SysRq.
> >
> > I am interested to see OOM output including swap entries per process
> > in swap partition and all
> > the other kernel internal virtual memory stats, I find it useful than
> > top or free or /proc/meminfo
> >
>
> Please read http://man7.org/linux/man-pages/man5/proc.5.html and/or
> https://www.kernel.org/doc/Documentation/filesystems/proc.txt .
Thanks, I know I can get lots of information from /proc/<pid>/, but I
like the format/style that OOM dumps since I
don't have to use some kind of script to parse out the /proc/<pid>,
plus, OOM also dumps node/zone/page orders....information all
together, lots of useful information so I can have big picture on the
memory usage of the system.
prev parent reply other threads:[~2019-03-29 1:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-28 21:37 Vincent Li
2019-03-28 22:45 ` Tetsuo Handa
[not found] ` <CAK3+h2wB2x4p976cqA5UPXhz5bZ6mjK98xB8nGQ8hkBoW02k7g@mail.gmail.com>
[not found] ` <201903290006.x2T06fWZ001228@www262.sakura.ne.jp>
2019-03-29 1:04 ` Vincent Li [this message]
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='CAK3+h2xppfdTSd2Gc=Qfd2oDp+Z+VyiTf_CQhn4JyB7UqsiGUQ@mail.gmail.com' \
--to=vincent.mc.li@gmail.com \
--cc=linux-mm@kvack.org \
--cc=penguin-kernel@i-love.sakura.ne.jp \
/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