From: Jay Lan <jlan@sgi.com>
To: Shailabh Nagar <nagar@watson.ibm.com>
Cc: Andrew Morton <akpm@osdl.org>, Balbir Singh <balbir@in.ibm.com>,
Chris Sturtivant <csturtiv@sgi.com>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [RFC][PATCH] delay accounting taskstats interface send tgid once
Date: Mon, 26 Jun 2006 12:04:16 -0700 [thread overview]
Message-ID: <44A02FB0.6000505@sgi.com> (raw)
In-Reply-To: <44A02331.8020903@watson.ibm.com>
Shailabh,
Is this patch supposed to go on top of all other patches? Or is it
supposed to replace any? I had failure applying this patch on top
of all previously applied.
- jay
Shailabh Nagar wrote:
> Send per-tgid data only once during exit of a thread group instead of once with
> each member thread exit.
>
> Currently, when a thread exits, besides its per-tid data, the per-tgid data of
> its thread group is also sent out, if its thread group is non-empty. The
> per-tgid data sent consists of the sum of per-tid stats for all *remaining*
> threads of the thread group.
>
> This patch modifies this sending in two ways:
>
> - the per-tgid data is sent only when the last thread of a thread group exits.
> This cuts down heavily on the overhead of sending/receiving per-tgid data,
> especially when other exploiters of the taskstats interface aren't interested
> in per-tgid stats
>
> - the semantics of the per-tgid data sent are changed. Instead of being the
> sum of per-tid data for remaining threads, the value now sent is the true total
> accumalated statistics for all threads that are/were part of the thread group.
>
> The patch also addresses a minor issue where failure of one accounting
> subsystem to fill in the taskstats structure was causing the send of taskstats
> to not be sent at all.
>
> The patch has been tested for stability and run cerberus for over 4 hours on
> an SMP.
>
> Signed-off-by: Shailabh Nagar <nagar@watson.ibm.com>
> Signed-off-by: Balbir Singh <balbir@in.ibm.com>
next prev parent reply other threads:[~2006-06-26 19:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-26 18:10 [RFC][PATCH] delay accounting taskstats interface send tgid once Shailabh Nagar
2006-06-26 19:04 ` Jay Lan [this message]
2006-06-26 19:12 ` Shailabh Nagar
2006-06-26 19:38 ` Andrew Morton
2006-06-26 19:46 ` Shailabh Nagar
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=44A02FB0.6000505@sgi.com \
--to=jlan@sgi.com \
--cc=akpm@osdl.org \
--cc=balbir@in.ibm.com \
--cc=csturtiv@sgi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nagar@watson.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