public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Xiaotian Feng <dfeng@redhat.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org,
	Michal Schmidt <mschmidt@redhat.com>,
	David Howells <dhowells@redhat.com>,
	Serge Hallyn <serue@us.ibm.com>,
	Heiko Carstens <heiko.carstens@de.ibm.com>,
	Frans Pop <elendil@planet.nl>
Subject: Re: [RFC PATCH] accouting: account if a task was killed by OOM killer
Date: Thu, 14 Jan 2010 18:59:56 +0800	[thread overview]
Message-ID: <4B4EF92C.5070402@redhat.com> (raw)
In-Reply-To: <20100113145403.e44a5490.akpm@linux-foundation.org>

On 01/14/2010 06:54 AM, Andrew Morton wrote:
> On Mon, 11 Jan 2010 14:40:34 +0800
> Xiaotian Feng<dfeng@redhat.com>  wrote:
>
>> This patch introduces a new accounting flag which is set when a task
>> was killed by OOM killer. taskstats can tell users when a job has been
>> killed by the oomkiller.
>>
>
> Why is this useful?  I'd be looking for a description of some
> operational scenario where this feature is valuable to an operator?
>

users of taskstats need to know if a job is killed by OOM killer, then 
perform some automation jobs or notifications.
But current taskstats logs AXSIG if a job is killed by signal, so users 
will be confused by SIGKILL, SIGTERM or OOM killer.

> The description is incomplete.  The patch also alters the contents of
> the BSD accounting records.  That's a change to an ancient interface
> and needs a bit of exposure and thought.  Is it good to put such a
> highly linux-specific and somewhat linux-version-specific field into
> such a venerable userspace interface?
>
> If we _do_ decide to change the BSD accounting records in this manner
> then presumably a manpage will need to be updated.  A cc to
> linux-api@vger.kernel.org would be appropriate.

The BSD accounting part is not necessary, I just made it same as 
taskstats, we can drop BSD accounting part.

>
> But I'm not very convinced about this whole idea at present, personally.
>
>>   include/linux/acct.h                          |    1 +
>>   include/linux/taskstats.h                     |    2 +-
>>   kernel/acct.c                                 |    2 ++
>>   kernel/tsacct.c                               |    2 ++
>
> I'm a bit surprised that getdelays.c doesn't print ac_flag.
>
>
>


      reply	other threads:[~2010-01-14 11:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-11  6:40 [RFC PATCH] accouting: account if a task was killed by OOM killer Xiaotian Feng
2010-01-13 22:54 ` Andrew Morton
2010-01-14 10:59   ` Xiaotian Feng [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=4B4EF92C.5070402@redhat.com \
    --to=dfeng@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=dhowells@redhat.com \
    --cc=elendil@planet.nl \
    --cc=heiko.carstens@de.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mschmidt@redhat.com \
    --cc=serue@us.ibm.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