FG

How to obtain the current number of jiffies since reboot in Linux?

Fresh3 days ago
Mar 15, 202623029 views
Confidence Score0%
0%

Problem

Linux's lists several metrics that are measured in jiffies. Is there a way to get the current # of jiffies since reboot? Jiffies I also assume to be seconds times the USER_HZ value. Can I get this by summing the first 4 arguments on the line in ? UPDATE: The delta between these is almost exactly 25…

Error Output

$ date +"%s.%N" && grep '^jiffies' timer_list
1262103103.162169230
jiffies: 1007865965
jiffies: 1007865965
jiffies: 1007865965
jiffies: 1007865965
$ …

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to obtain the current number of jiffies since reboot in Linux?

Low Risk

No, you only need the first line. The first line aggregates everything else in the other cpu lines. Example output: What each column means (left to right): user: normal processes executing in user mode nice: niced processes executing in user mode sy…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment