public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* taskstats interface for accounting
@ 2006-06-07  2:01 Jay Lan
  2006-06-07  2:55 ` Shailabh Nagar
  0 siblings, 1 reply; 4+ messages in thread
From: Jay Lan @ 2006-06-07  2:01 UTC (permalink / raw)
  To: Balbir Singh, Shailabh Nagar; +Cc: Andrew Morton, lkml, csturtiv, jamal

Hi Balbir and Shailabh,

I finally have time to think about implementation details of CSA over
taskstats interface. I took another look at the taskstats interface
proposal and was a little bit nervous.

Do you remember i suggested to use #ifdef to cut down traffic and i
was told a generic netlink header would serve the purpose?
What i see now at Documentation/accounting/taskstats.txt saying
NETLINK_GENERIC family is used for unicast query/reply mode. The
NETLINK_GENERIC family provides great flexsibility on what to receive. 
However, CSA only uses the multicast mode to receive from kernel
whenever tasks are existing. I guess i would need to read the netlink
documentation more carefully to see whether my understanding is
correct.

Another thing i overlooked when i did the review was that taskstats
interface is designed to provide _BOTH_ per task _AND_ per thread
accounting data EVERY TIME a task exists. A thread is an aggregate
of (per-pid) tasks. Since this type of aggregation is not used in
CSA, half of data traffic would be useless. Can we add a way to
configure to not send per-thread data to the socket?

Regards,
jay

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-06-08 15:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-07  2:01 taskstats interface for accounting Jay Lan
2006-06-07  2:55 ` Shailabh Nagar
2006-06-07 23:45   ` Jay Lan
2006-06-08 15:45     ` Shailabh Nagar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox