Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Measurement of Computing power

Measurement of Computing power

Scheduled Pinned Locked Moved The Lounge
help
7 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ravish
    wrote on last edited by
    #1

    Hai, Are there any standard methods which help in finding the total computing power needed to run a particular application. For ex say app X needs 1000 CPU cycles Thanx

    N T R J J 5 Replies Last reply
    0
    • R Ravish

      Hai, Are there any standard methods which help in finding the total computing power needed to run a particular application. For ex say app X needs 1000 CPU cycles Thanx

      N Offline
      N Offline
      NormDroid
      wrote on last edited by
      #2

      Yeah but they probably *ONLY* exist in Linux platforms. Sorry... must. stop. myself...

      1 Reply Last reply
      0
      • R Ravish

        Hai, Are there any standard methods which help in finding the total computing power needed to run a particular application. For ex say app X needs 1000 CPU cycles Thanx

        T Offline
        T Offline
        Tim Smith
        wrote on last edited by
        #3

        That would be hard to do, since applications require different resources. Some apps are CPU hogs. Some are memory hogs. Some are I/O hogs. etc... Tim Smith Descartes Systems Sciences, Inc.

        1 Reply Last reply
        0
        • R Ravish

          Hai, Are there any standard methods which help in finding the total computing power needed to run a particular application. For ex say app X needs 1000 CPU cycles Thanx

          R Offline
          R Offline
          Robert Dickenson
          wrote on last edited by
          #4

          You could use performance monitor, set to log results to file, then run a typical session with the application. Analyse the results later (don't know what with however). On Windows you could access the performance counters directly using your own 'cycle counter' program, which you could of couse customise to show whatever metric you have in mind. On Linux you can access the proc filesystem to achieve much the same thing (albeit a simpler API, but you'll have more trouble finding the relevant variables) Given the cost of hardware and the fact you don't have much choice (if your app only needs a Pentium 200 were would you get them) it all seems like a lot of trouble. If your thinking of gaining real time response on powerfull enough PC's your bigger problem will be with the OS's. :((

          1 Reply Last reply
          0
          • R Ravish

            Hai, Are there any standard methods which help in finding the total computing power needed to run a particular application. For ex say app X needs 1000 CPU cycles Thanx

            J Offline
            J Offline
            Jonathan Gilligan
            wrote on last edited by
            #5

            First, solve the halting problem. (In other words, if you can find a general algorithm to determine simply whether an arbitrary application needs finite versus inifinite resources, much less how finite the resources will be, you will become rich and famous).

            1 Reply Last reply
            0
            • R Ravish

              Hai, Are there any standard methods which help in finding the total computing power needed to run a particular application. For ex say app X needs 1000 CPU cycles Thanx

              J Offline
              J Offline
              Jonas Larsson
              wrote on last edited by
              #6

              Hmmmm. I think I read something that could help you in petzold's book last week (or was it in Richter's book?). Anwyway, in Windows you can get the amount of time your process has been non-signaled, that is the amount of time it's been excecuting on the processor. I guess you could use this together with some code for measuring the clock-freq. on the computer to get a rough estimate on how many cycles it took. I can look it up tomorrow at work if I remember it. :)

              J 1 Reply Last reply
              0
              • J Jonas Larsson

                Hmmmm. I think I read something that could help you in petzold's book last week (or was it in Richter's book?). Anwyway, in Windows you can get the amount of time your process has been non-signaled, that is the amount of time it's been excecuting on the processor. I guess you could use this together with some code for measuring the clock-freq. on the computer to get a rough estimate on how many cycles it took. I can look it up tomorrow at work if I remember it. :)

                J Offline
                J Offline
                Jonas Larsson
                wrote on last edited by
                #7

                Ok, I found it (and I remembered to look it up. I must be younger than I think ;P ) The functions are GetProcessTimes and GetThreadTimes. look them up in MSDN.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups