Slashdot Mirror


Quick, Standard Measurement for CPU Power?

captnitro asks: "A particular research project I'm developing right now needs to compare 'potential' (idle/none) and 'load' for various hardware capabilities, and quickly -- maybe up to a several times every minute. For disk space, for RAM, it's relatively easy -- find what's used and what's not and report the ratio. For CPU, I have plenty of time to test 'potential' when the app starts. But for testing CPU load, I need a standard 'ruler' that will be able to compare across varying platforms and processors (e.g., x86, PowerPC, embedded, single and multi-proc) -- so for example, idle percentage won't work. At the same time, I don't have the ability to time 'openssl speed' every 25 seconds without bringing the system to a halt. I'm willing to sacrifice precision of the measurement for generalization of the unit -- that is, the operations that this test is for would be primarily mathematical and not say, text sorts -- but I'd prefer a generic, quick test of the current processor load rather than an average of 25 different tests. Regardless of hardware, the OS distribution is mostly *nix-based -- NetBSD, Linux, and even Mac OS X. Wild ideas are perfectly acceptable -- any thoughts?"

3 of 31 comments (clear)

  1. Potential CPU available ??? by MerlynEmrys67 · · Score: 4, Informative
    Well, first off - it is CPU available above a certain priority. I may be running a 100% cpu usage process at a very low priority - so there is no "left over" cpu to utilize, but an application can come in and get 100% of the CPU.

    I am not even sure there is a way of measuring what you want. There are so many variables (Disk I/O, memory bandwidth, etc.) that you can't get a reasonable measurement of how much CPU is left over to do useful work for your process.

    The other thing is that many things can take down a CPU as well - a huge burst of network traffic can take an "idle" CPU and peg it at 100% in kernal usage.

    Your best bet would probably be to hook into the various schedulers and get deep knowledge of what is really going on - pain in the butt, but doable

    --
    I have mod points and I am not afraid to use them
  2. SPEC by machinecraig · · Score: 4, Informative

    It sounds like you are looking for a way to normalize and compare system (and application?) performance across different hardware platforms.
    Say hello to SPEC. This is exactly what the organization was formed for. Take a look at their CPU benchmarks. I know you're looking for more of a snapshot, and less of a benchmark - but I would think SPEC is a good place to start.

  3. Easy - CPU Speeds by Anonymous Coward · · Score: 4, Funny

    Quick
    Fast
    Freakin Fast
    Holy Shit
    Dude you r0x0r
    OMFG

    Oh, just so you know, you should always buy at the Holy Shit level. If you buy OMFG you pay too much and you will soon regret buying anything less than Freakin Fast. But Holy Shit and you will be happy for a couple to three years without paying too much.