Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • fs
  • proc
  • array.c
Find file BlameHistoryPermalink
  • Tim Schmielau's avatar
    [PATCH] Fix reporting of process start times · b9877c90
    Tim Schmielau authored Oct 13, 2004
    Derive process start times from the posix_clock_monotonic notion of uptime
    instead of "jiffies", consistent with the earlier change to /proc/uptime
    itself.
    (http://linus.bkbits.net:8080/linux-2.5/cset@3ef4851dGg0fxX58R9Zv8SIq9fzNmQ?na%0Av=index.html|src/.|src/fs|src/fs/proc|related/fs/proc/proc_misc.c
    
    )
    
    Process start times are reported to userspace in units of 1/USER_HZ since
    boot, thus applications as procps need the value of "uptime" to convert
    them into absolute time.
    
    Currently "uptime" is derived from an ntp-corrected time base, but process
    start time is derived from the free-running "jiffies" counter.  This
    results in inaccurate, drifting process start times as seen by the user,
    even if the exported number stays constant, because the users notion of
    "jiffies" changes in time.
    
    It's John Stultz's patch anyways, which I only messed up a bit, but since
    people started trading signed-off lines on lkml:
    
    Signed-off-by: default avatarTim Schmielau <tim@physik3.uni-rostock.de&gt;...>
    b9877c90
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7