• Home
  • Raw
  • Download

Lines Matching +full:per +full:- +full:cpu

2 Per-task statistics interface
6 Taskstats is a netlink-based interface for sending per-task and
7 per-process statistics from the kernel to userspace.
11 - efficiently provide statistics during lifetime of a task and on its exit
12 - unified interface for multiple accounting subsystems
13 - extensibility for use by future accounting patches
16 -----------
19 Linux task defined by struct task_struct. per-pid stats are the same as
20 per-task stats.
25 leader - a process is deemed alive as long as it has any task belonging to it.
28 -----
37 one of the cpus in the cpumask, its per-pid statistics are sent to the
43 an additional record containing the per-tgid stats is also sent to userspace.
44 The latter contains the sum of per-pid stats for all threads in the thread
49 send commands and process responses, listen for per-tid/tgid exit data,
54 ---------
56 The user-kernel interface is encapsulated in include/linux/taskstats.h
62 struct taskstats is the common accounting structure for both per-pid and
63 per-tgid data. It is versioned and can be extended by each accounting subsystem
71 +----------+- - -+-------------+-------------------+
73 +----------+- - -+-------------+-------------------+
87 comma-separated cpu ranges e.g. to listen to exit data from cpus 1,2,3,5,7,8
88 the cpumask would be "1-3,5,7-8". If userspace forgets to deregister interest
103 same structure is used for both per-pid and per-tgid stats.
110 c) TASKSTATS_TYPE_STATS: contains the exiting task's per-pid stats
113 f) TASKSTATS_TYPE_STATS: contains the per-tgid stats for exiting task's process
116 per-tgid stats
117 --------------
119 Taskstats provides per-process stats, in addition to per-task stats, since
124 However, maintaining per-process, in addition to per-task stats, within the
126 accumulates each exiting task's statistics into a process-wide data structure.
128 gets sent to userspace (along with the per-task data).
130 When a user queries to get per-tgid data, the sum of all other live threads in
135 -------------------
138 per-task/process stats as patches to collect them get added to the kernel
161 --------------------------
164 up with the kernel's rate of sending per-tid/tgid exit data leading to data
170 - increase the receive buffer sizes for the netlink sockets opened by
173 - create more listeners and reduce the number of cpus being listened to by
174 each listener. In the extreme case, there could be one listener for each cpu.
175 Users may also consider setting the cpu affinity of the listener to the subset
176 of cpus to which it listens, especially if they are listening to just one cpu.