Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Measure the amount done and measure (or calculate) the number of cycles and divide one by the other. Measuring the amount done, of course, is not uncontroversial.
Last edited by salasi; 03-07-2009 at 07:26 AM.
Reason: ...spelling...
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731
Rep:
Hi,
Quote:
Originally Posted by salasi
Measure the amount done and measure (or calculate) the number of cycles and divide one by the other. Measuring the amount done, of course, is not uncontroversial.
Most of your requested information is temporary or simply not available. A CPU does not store how many work it has done.
Hi,
Most of your requested information is temporary or simply not available. A CPU does not store how many work it has done.
No, its a useless answer, but not for that reason. The CPU does not store how much work it has done, but you measure the time that it takes to do some predetermined amount of work. So, for example, you can carry out some mathematical calculation noting the time at the start and at the end. The difference between the two is the time taken.
You can measure the number of cycles per second with a logic analyser or a 'scope (although most people effectively measure from the crystal clock and multipliers, but that does have a slight innaccuracy due to the spreads in crystal frequencies, although that's not usually a worthwhile thing to get worried about).
The big trouble comes with the predetermined item of work that you use; if you decide on one particular work item, you'll find that it doesn't scale anywhere like the same way across architectures when you change work loads. So it only really works if you do the benchmarking on the actual workload that you will use.
This is inconvenient, particularly if you won't have the real workload until after you have bought the computer. It is also inconvenient if the workload is very mixed and/or you can't decide what represents an actual workload.
It is also inconvenient if someone else does the testing; if you only have an approximate idea of your workload, they would probably have even less idea of what your workload would turn out to be.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.