Bug 197183 - CPU time for multiprocessor systems
Summary: CPU time for multiprocessor systems
Status: RESOLVED CODE_FIX
Alias: None
Product: Documentation
Classification: Unclassified
Component: man-pages (show other bugs)
Hardware: All Linux
: P1 low
Assignee: documentation_man-pages@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-10 16:43 UTC by Victor Porton
Modified: 2017-10-20 09:06 UTC (History)
1 user (show)

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Victor Porton 2017-10-10 16:43:51 UTC
`man 2 times` mentions tms_stime as the CPU time spent in the system while executing tasks on behalf of the calling process.

It is unclear whether this time should account the summary time of all kernel processes or threads executing tasks on behalf of the calling process.

In my opinion, it should account the summary time of all kernel processes or threads executing tasks on behalf of the calling process, and this should be documented in the manpage.
Comment 1 Michael Kerrisk 2017-10-20 09:06:51 UTC
I think the issue here is one of ambiguous language in the page: "tasks" here does not correspond to process (or "tasks" in the kernel sense of schedulable entities). It just means "work". To make this clearer, I've ajusted that sentence a little:

       The  tms_stime  field  contains the CPU time spent
       executing inside the kernel while performing tasks
       on behalf of the calling process.

Closing this bug now, since I think the problem is address. Please reopen if you still have concerns.

Note You need to log in before you can comment on or make changes to this bug.