All of lore.kernel.org
 help / color / mirror / Atom feed
From: Balbir Singh <balbir@in.ibm.com>
To: Jay Lan <jlan@engr.sgi.com>
Cc: Shailabh Nagar <nagar@watson.ibm.com>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	LSE <lse-tech@lists.sourceforge.net>
Subject: Re: [Lse-tech] Re: [Patch 5/8] taskstats interface
Date: Thu, 27 Apr 2006 23:57:19 +0530	[thread overview]
Message-ID: <20060427182719.GC14496@in.ibm.com> (raw)
In-Reply-To: <445104DC.90401@engr.sgi.com>

Hi Jay,

> Hi Shailabh and Balbir,
> 
> Are TASKSTATS_GENL_VERSION and TASKSTATS_VERSION the same thing?
> If they are meant to serve different purposes, we still need it.
> 

Yes, thats true. But for now from what I can see, one version should
be sufficient.

<snip> 

> I was thinking of a bitmask thing. But instead of keying specific
> fields, one bit may be used to key delay accounting, and another bit
> for CSA, el at. This way you do not need to have CSA-specifc fields
> in the payload and applications know how to correctly interpret the
> payload. Taskstats and application do not need to have knowledge of
> accounting packages, only need to set the bitmasks correctly.
>

Yes, but scanning the entire payload for various types is also feasible. It is
a bit slow, but feasible and generally the recommended approach for
dealing with genetlink types. What you are saying is still possible, the
application can ignore types it does not understand.

> When we start sending sys stats of each tasks to userland, that is
> s lot of data. Note that BSD accounting even uses encode_comp_t()
> routine to compress data into a 13-bit fraction with 3-bit exponent
> field to shrink its size. Even though you do not need to care
> about those zero's in taskstats, they still need to be delievered
> through netlink socket.

Yes, thats true. We can leave the decision of compressing, etc to the
specific subsystem. It can encode it and the user level application
can decode the data.

> 
> I must admit that this may create a point of failure due to the
> payload info not set correctly according to the CONFIG flags.
> 
> The idea was to eliminate the need of #2 methods, but maybe
> #2 method is better...
> 
> I am a little confused after reading Balbir's reply. It seems to
> me that Shailabh suggested to create a different struct to contain
> stats data. Is that also what Balbir talked about? If a different
> package builds a different taskstat-like interface as suggested
> in #2, would the data travel on the same socket as delay
> accounting?

Sorry for the confusion. Yes, even I would recommend creating a different
struct for the stats data. The data will pass over the same socket as delay
accounting (separate sockets can be used, but that would become inefficient).

> 
> I would suggest to do the check at the beginning of
> taskstats_exit_send() before mutex_lock(&taskstats_exit_mutex).

Good suggestion, we can move the check to that point.

> 
> Regards,
>  - jay

--
					Warm Regards, 
					<---	Balbir

  reply	other threads:[~2006-04-27 18:30 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-22  2:16 [Patch 0/8] per-task delay accounting Shailabh Nagar
2006-04-22  2:23 ` [Patch 1/8] Setup Shailabh Nagar
2006-04-24  2:02   ` Randy.Dunlap
2006-04-24 17:26     ` Shailabh Nagar
2006-04-22  2:29 ` [Patch 2/8] Sync block I/O and swapin delay collection Shailabh Nagar
2006-04-22  2:33 ` [Patch 3/8] cpu delay collection via schedstats Shailabh Nagar
2006-04-22  2:35 ` [Patch 4/8] Utilities for genetlink usage Shailabh Nagar
2006-04-22  2:35   ` Shailabh Nagar
2006-04-22  2:37 ` [Patch 5/8] taskstats interface Shailabh Nagar
2006-04-27  1:12   ` Jay Lan
2006-04-27  4:00     ` Shailabh Nagar
2006-04-27  6:42       ` [Lse-tech] " Balbir Singh
2006-04-27 17:52         ` Jay Lan
2006-04-27 18:27           ` Balbir Singh [this message]
2006-04-27 19:34             ` Jay Lan
2006-04-28  2:59               ` Balbir Singh
2006-04-28 18:20                 ` Jay Lan
2006-04-28 18:35                   ` Balbir Singh
2006-04-22  2:39 ` [Patch 6/8] delay accounting usage of " Shailabh Nagar
2006-04-22  2:40 ` [Patch 7/8] documentation Shailabh Nagar
2006-04-22  2:42 ` [Patch 8/8] /proc export of aggregated block I/O delays Shailabh Nagar
2006-04-22  7:46   ` [Lse-tech] " Andi Kleen
2006-04-25 15:07 ` [Patch 0/8] per-task delay accounting 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=20060427182719.GC14496@in.ibm.com \
    --to=balbir@in.ibm.com \
    --cc=jlan@engr.sgi.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lse-tech@lists.sourceforge.net \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.