at company, test performance of our usb , firewire devices under cpu strain.
there test code run loads cpu, , used in simple informal tests see happens our device's performance.
i took @ code this, , simple loop increments counter , calculation based on new value, storing result in variable.
running single instance use 1/x of cpu, x number of cores.
so, instance, if we're on 8-core pc , want see how our device runs under 50% cpu usage, can open 4 instances of @ once, , forth...
i'm wondering:
what decides how of cpu gets used up? run fast can on single thread in single threaded application?
is there way voluntarily limit maximum cpu usage program can use? can think of "sloppy" ways (add sleep commands or something), there way limit say, specified percent of available cpu or something?
cpu quotas on windows 7 , on linux.
also on qnx (i.e. blackberry tablet os) , lynuxworks
in case of broken links, articles named:
- windows -- "cpu rate limits in windows server 2008 r2 , windows 7"
- linux -- "cpu usage limiter linux"
- qnx -- "adaptive partitioning"
- lynuxworks - "partitioning operating systems" , "arinc 653"
Comments
Post a Comment