lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.1.10.0804060935520.7751@twinlark.arctic.org>
Date:	Sun, 6 Apr 2008 09:37:31 -0700 (PDT)
From:	dean gaudet <dean@...tic.org>
To:	Jack Harvard <jack.harvard@...glemail.com>
cc:	linux-kernel@...r.kernel.org
Subject: Re: How does Linux measure CPU frequency?

linux knows what style of cpu it is running on and uses non-portable 
techniques to read the time-stamp counter.

lmbench uses some really nice tricks to estimate the cpu frequency in a 
portable manner... all it requires is that at least two of the N code 
sequences it times take a co-prime number of cycles.

-dean

On Sun, 6 Apr 2008, Jack Harvard wrote:

> Hi,
> 
> I want to find out how Linux calibrates the frequency of CPUs, and
> want to compare with the way how lmbench measures processor frequency.
> I had a thorough google search of this topic but didn't get too much
> useful results.
> 
> Thanks a lot,
> Jack
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ