Sponsored Content
Full Discussion: RDTSC use in C:
Top Forums Programming RDTSC use in C: Post 302324893 by otheus on Friday 12th of June 2009 06:47:03 AM
Old 06-12-2009
Sivaraman,

I need to re-phrase your question --- please tell me if this is correct: How does one find out (on Linux) whether the CPU is actually running at the speed specified in cpuinfo?

Instead of the sleep statement above, set an alarm for 10 seconds, do some CPU-intensive work, get the number of ticks, compare the clocks to find how long the CPU actually slept (setting an alarm does not guarantee anything) and calculate. Use gettimeofday() to get the actual time.
 
seeded-in-ubuntu(1)					      General Commands Manual					       seeded-in-ubuntu(1)

NAME
seeded-in-ubuntu - Determine whether a package is safe to upload during a freeze SYNOPSIS
seeded-in-ubuntu [options] package... DESCRIPTION
Lists all the current daily images containing the specified packages. Or whether the package is part of the supported seed. If it isn't on an image, it should be safe to upload. During the final freeze, one should avoid packages in the supported seed too. An index of the current manifests is downloaded from UbuntuWire. OPTIONS
-b, --binary The packages specified are binary packages. This is faster than source packages, as otherwise we must query LP to determine the binary packages that every specified source package builds. -u URL, --data-url=URL URL for index of seeded packages. Default: UbuntuWire's service at http://qa.ubuntuwire.org/ubuntu-seeded-packages/seeded.json.gz. -h, --help Display a help message and exit EXAMPLES
All the images that contain unity: seeded-in-ubuntu -b unity AUTHORS
seeded-in-ubuntu and this manpage were written by Stefano Rivera <stefanor@ubuntu.com>. Both are released under the terms of the ISC License. ubuntu-dev-tools December 2011 seeded-in-ubuntu(1)
All times are GMT -4. The time now is 10:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy