mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Grant Coady <grant_lkml@dodo.com.au>
To: linux-kernel@vger.kernel.org
Subject: Query: is there an official location for jiffies per second value?
Date: Thu, 18 Sep 2008 17:23:58 +1000	[thread overview]
Message-ID: <5b04d4pl2658h9duetqehv5tklog1v5f2s@4ax.com> (raw)

Hi there,

I found I can get jiffies per second with this on one box:

grant@deltree:~$ uname -r
2.6.26.5a

grant@deltree:~$ awk 'FNR==NR{up=$1};/^jiffies:/{print up, $2, $2/up}' \
	/proc/uptime /proc/timer_list
420389.04 126026727 299.786


But this value is very different on another box:

grant@pooh64:~$ uname -r
2.6.26.5a

grant@pooh64:~$ awk 'FNR==NR{up=$1}/^jiffies:/{print up, $2, $2/up}' \
	/proc/uptime /proc/timer_list
73830.36 4317026409 58472.2
73830.36 4317026409 58472.2

Is there a reliable way to determine this jiffies value across different 
x86 boxes?

The 'sysconf(_SC_CLK_TCK)' doesn't return the right answer either.  It 
says 100Hz when it is 300Hz.

Thanks,
Grant.

                 reply	other threads:[~2008-09-18  7:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5b04d4pl2658h9duetqehv5tklog1v5f2s@4ax.com \
    --to=grant_lkml@dodo.com.au \
    --cc=gcoady.lk@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®