1
0
Fork 0
alistair23-linux/include
Shailabh Nagar ad4ecbcba7 [PATCH] delay accounting taskstats interface send tgid once
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.

[akpm@osdl.org: bugfixes]
Signed-off-by: Shailabh Nagar <nagar@watson.ibm.com>
Signed-off-by: Balbir Singh <balbir@in.ibm.com>
Cc: Jay Lan <jlan@engr.sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-07-14 21:53:57 -07:00
..
acpi Pull acpi_os_allocate into test branch 2006-07-10 02:39:47 -04:00
asm-alpha Merge git://git.infradead.org/hdrinstall-2.6 2006-07-04 12:55:45 -07:00
asm-arm [ARM] Allow Versatile to be built for AB and PB 2006-07-11 21:10:42 +01:00
asm-arm26 Merge git://git.infradead.org/hdrinstall-2.6 2006-07-04 12:55:45 -07:00
asm-cris Merge git://git.infradead.org/hdrinstall-2.6 2006-07-04 12:55:45 -07:00
asm-frv [PATCH] Make cpu_relax() imply barrier() on all arches 2006-07-12 12:56:45 -07:00
asm-generic [PATCH] hdrinstall: remove asm/io.h from user visibility 2006-07-14 21:53:52 -07:00
asm-h8300 [PATCH] Make cpu_relax() imply barrier() on all arches 2006-07-12 12:56:45 -07:00
asm-i386 [PATCH] i386: system.h: remove extra semicolons and fix order 2006-07-13 07:48:28 -07:00
asm-ia64 [PATCH] make valid_mmap_phys_addr_range() take a pfn 2006-07-10 13:24:25 -07:00
asm-m32r Merge git://git.infradead.org/hdrinstall-2.6 2006-07-04 12:55:45 -07:00
asm-m68k Merge git://git.infradead.org/hdrinstall-2.6 2006-07-04 12:55:45 -07:00
asm-m68knommu [PATCH] m68knommu: fix result type in get_user() macro 2006-07-13 07:51:48 -07:00
asm-mips [MIPS] vr41xx: Update workpad setup function 2006-07-13 21:26:21 +01:00
asm-parisc Merge git://git.infradead.org/hdrinstall-2.6 2006-07-04 12:55:45 -07:00
asm-powerpc [PATCH] powermac: Combined fixes for backlight code 2006-07-10 13:24:20 -07:00
asm-ppc [PATCH] irq-flags: PPC: Use the new IRQF_ constants 2006-07-02 13:58:48 -07:00
asm-s390 [S390] Fix sparse warnings. 2006-07-12 16:41:55 +02:00
asm-sh [PATCH] Make cpu_relax() imply barrier() on all arches 2006-07-12 12:56:45 -07:00
asm-sh64 [PATCH] Make cpu_relax() imply barrier() on all arches 2006-07-12 12:56:45 -07:00
asm-sparc Merge git://git.infradead.org/hdrinstall-2.6 2006-07-04 12:55:45 -07:00
asm-sparc64 [SPARC64]: Fix make headers_install 2006-07-13 01:50:04 -07:00
asm-um Merge git://git.infradead.org/hdrinstall-2.6 2006-07-04 12:55:45 -07:00
asm-v850 [PATCH] Make cpu_relax() imply barrier() on all arches 2006-07-12 12:56:45 -07:00
asm-x86_64 [PATCH] x86_64: Fix Calgary copyright statements per IBM guidelines 2006-07-10 15:12:33 -07:00
asm-xtensa [PATCH] Make cpu_relax() imply barrier() on all arches 2006-07-12 12:56:45 -07:00
keys [PATCH] keys: discard the contents of a key on revocation 2006-06-26 09:58:18 -07:00
linux [PATCH] delay accounting taskstats interface send tgid once 2006-07-14 21:53:57 -07:00
math-emu
media V4L/DVB (4270): Add tda9887-specific tuner configuration 2006-06-30 15:59:32 -03:00
mtd Merge git://git.infradead.org/hdrinstall-2.6 2006-07-04 12:55:45 -07:00
net [PATCH] per-task-delay-accounting: utilities for genetlink usage 2006-07-14 21:53:56 -07:00
pcmcia Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
rdma [PATCH] fmr pool: remove unnecessary pointer dereference 2006-07-14 21:53:51 -07:00
rxrpc
scsi Merge git://git.infradead.org/hdrinstall-2.6 2006-07-04 12:55:45 -07:00
sound [ALSA] Fix section mismatch errors in ALSA PCI drivers 2006-07-12 20:08:01 +02:00
video [PATCH] mbxfb: Add framebuffer driver for the Intel 2700G 2006-07-14 21:53:55 -07:00
Kbuild Add generic Kbuild files for 'make headers_install' 2006-06-18 12:14:01 +01:00