LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-06-2009, 08:33 AM   #1
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
Cycles


How do you measure the amount done per cycle on a processor?
 
Old 03-07-2009, 01:15 AM   #2
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
Hi,

the amount of what? No. of calculations?
 
Old 03-07-2009, 07:25 AM   #3
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
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...
 
Old 03-07-2009, 11:30 PM   #4
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
Hi,

Quote:
Originally Posted by salasi View Post
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.
 
Old 03-08-2009, 01:07 AM   #5
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770

Original Poster
Blog Entries: 52

Rep: Reputation: 68
How can one measure the efficiency of a processor?
 
Old 03-08-2009, 05:12 AM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Excellent philosophical question ... what are your criteria?
 
Old 03-08-2009, 05:51 AM   #7
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
This site might give you some answers:

http://www.phoronix.com/scan.php?page=home
 
Old 03-08-2009, 04:22 PM   #8
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
Originally Posted by mesiol View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Cycles and Simplicities LXer Syndicated Linux News 0 12-06-2008 12:41 PM
[SOLVED] Problem installing Apache, cycles between two dependencies procfs Linux - Newbie 2 12-04-2008 03:39 AM
Excessive hard drive load cycles tferero Linux - Hardware 4 10-29-2007 01:39 AM
quanta plus eating up clock cycles Mr_C Linux - Software 0 09-09-2004 05:11 PM
cycles in UTP network (a little off-topic) pe2338 Linux - Networking 2 01-21-2004 05:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration