FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Development

LinkBack Thread Tools
Old 09-23-2012, 10:52 AM
Russell Coker
Default nacl and CPU frequency.

On Sun, 23 Sep 2012, "Thomas Preud'homme" <robotux@celest.fr> wrote:
> Le dimanche 23 septembre 2012 01:42:01, Ben Hutchings a écrit :
> > So the build process is trying to determine which method will work?
> > Then what if it settles on some method that is available on the build
> > machine's kernel, but not the target distribution's kernel? I think you
> > need to either (1) make it defer this to run-time or (2) force the
> > decision at build-time, and be conservative.
> If I understood correctly he is ready to patch the build system to use a
> specific method for this precise reason but is asking which method would
> work on all Debian system.

How can build-time recognition of CPU features be useful in any way for
Debian? We can usually be certain that most systems which run the code will
have different CPUs to the system used for building.

If hard-coding the number to some reasonable value isn't good enough then code
needs to be written to detect it at run-time.

My Main Blog http://etbe.coker.com.au/
My Documents Blog http://doc.coker.com.au/

To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201209232052.27861.russell@coker.com.au">http://lists.debian.org/201209232052.27861.russell@coker.com.au
Old 09-23-2012, 10:56 PM
Craig Small
Default nacl and CPU frequency.

On Sat, Sep 22, 2012 at 05:29:45PM +0100, peter green wrote:
> I therefore conclude that if it's not returning elapsed times in true CPU
> cycles it probablly doesn't matter much if the supposed CPU speed and the
> real CPU speed are not exactly the same.
> As such unless someone objects I plan to patch the code to fallback to
> using bogomips as a "psuedo CPU speed" if true CPU speed cannot be
> determined.
procps has been struggling with this for years, though ita mainly around
the CPU ticks versus real seconds. If you are really bored, have a look
at some old procps bugs where this sort of thing has broken.

We've narrowed it down to a small handful of checks. The real value is
probably unknown for some devices so we just set it to a fixed value.

The point is, trying to guess this sort of stuff will probably give you
the wrong number so a "pseduo CPU speed" is probably as bad as anything
else you can come up with, so find something simple.

- Craig
Craig Small VK2XLZ http://enc.com.au/ csmall at : enc.com.au
Debian GNU/Linux http://www.debian.org/ csmall at : debian.org
GPG fingerprint: 5D2F B320 B825 D939 04D2 0519 3938 F96B DF50 FEA5

To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120923225625.GA17742@enc.com.au">http://lists.debian.org/20120923225625.GA17742@enc.com.au

Thread Tools

All times are GMT. The time now is 04:43 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org