android_kernel_xiaomi_sm8350/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
asm-alpha
asm-arm
asm-arm26
asm-cris
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
asm-m32r
asm-m68k
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
asm-powerpc
asm-ppc
asm-s390
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
asm-sparc64 [SPARC64]: Fix make headers_install 2006-07-13 01:50:04 -07:00
asm-um
asm-v850 [PATCH] Make cpu_relax() imply barrier() on all arches 2006-07-12 12:56:45 -07:00
asm-x86_64
asm-xtensa [PATCH] Make cpu_relax() imply barrier() on all arches 2006-07-12 12:56:45 -07:00
keys
linux [PATCH] delay accounting taskstats interface send tgid once 2006-07-14 21:53:57 -07:00
math-emu
media
mtd
net [PATCH] per-task-delay-accounting: utilities for genetlink usage 2006-07-14 21:53:56 -07:00
pcmcia
rdma [PATCH] fmr pool: remove unnecessary pointer dereference 2006-07-14 21:53:51 -07:00
rxrpc
scsi
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