views:

455

answers:

9

Hi,

We have some users which are using lower cpu powered machines and they're encountering slow rersponse times using our web application. Is there anyway for me to be able to do testing so that I can simulate lower cpu rates?

For example, I have 2.3 ghz right now computing power, can i lower it to somehow 1.6 ghz or lower so that i may be able to test it?

Btw, our customers are using windows. I have to simulate low computing power on Internet Explorer as browser.

thanks

+1  A: 

I would recommend to start something on the background which eats up all your processor cycles.

A program which finds primenumbers or something similar.

Toad
Or do something really processor intensive like starting outlook ;^)
Toad
"I'm not playing games, I'm testing!" pew pew pew
Jon Seigel
+5  A: 

Create some virtual machines.

You can use VirtualPC or VirtualBox both are free.

Nifle
+1: so true!!!!!
jldupont
Can these virtual pc's be CPU throttled? VMware doesn't seem to be able to do it
Toad
Not even VirtualBox according to this post: http://www.mail-archive.com/[email protected]/msg06567.html. It can be done with VMWare ESX.
Daniel Vassallo
I was checking vmware fusion, which can not do it.
Toad
hyper-v server can do it
dkackman
Even Virtual PC cannot do that according to this 2007 blog post: http://blogs.msdn.com/virtual_pc_guy/archive/2007/05/14/slowing-down-virtual-machines.aspx
Daniel Vassallo
daniel: haha that makes this answer a high upvoted answer for something which is incorrect.
Toad
I think this is very difficult to simulate, even with server virtualization software likve VMWare ESX, Hyper-V and Virtual Server. Remember that virtualization is focused on the opposite: Making direct use of CPU resources as much as possible.
Daniel Vassallo
same here, don't know how to actually set the virtual machiens to only use this much cpu. afaik, you can set th e number of cpu's that the virtual machine would use.
grassbl8d
I believe QEMU can do it, since it can simulate arbitrary architectures. I think you could just specify the same chip your customers are using. When running in this mode, you can't use KVM, however, which potentially will make it slower than you want.
rmeador
+1  A: 

Another big difference between high-performance and low-performance CPUs is the number of cores available. This can realistically differ by a factor of 4, way more than the difference in clock frequency you're likely to encounter.

You can solve this by setting the thread affinity. Even IE6 will use 13 threads just to show google.com. That means it will benefit from a multi-core CPU. But if you set the thread affinity to one core only, all 13 IE threads will have to share that one core.

MSalters
A: 

The virtual machine Bochs(pronounced boxes) allows you to set a instructions per second directive. It's probably the slowest emulator out there as it is though...

Earlz
+4  A: 

Most new CPUs multiplier can easily be lowered (Intel: Speedstep, AMD: PowerNow!). This is used to save power. With RMclock you can manually adjust your multiplier and thus lower your frequency and make your pc slower. I use this tool myself so I can tell you that it works.

http://cpu.rightmark.org/products/rmclock.shtml

DaMacc
thanks a lot!i'll take a look at this
grassbl8d
+1  A: 

Just fire up internet explorer.

Anon
A: 

i've also seen obrut as one possible solution

grassbl8d
A: 

Another slight option in addition to those above is to boot windows in a lower resource config. Go to the start menu,, select run and type MSCONFIG. You can go to the boot tab, click on advanced options and limit the memory and number of of processsors. It's not as robust as the above, but it does give you another option.

Nissan Fan
+1  A: 

Lowering the CPU clock doesn't always give expected results.

Newer CPUs feature architecture improvements which make them more efficient on an equvialent clock basis than older chips. Incidentally, because of this virtual machines are a bad way of testing performance for "older" tech as well.

Your best bet is to simply buy a couple of older machines. Using similar RAM (types and amounts), processor, motherboard chipsets, hard drives, and video cards. All of which feed into the total performance of the machine itself.

I bring the other components up because changing just one of them can have an impact on even browser performance. A prime example is memory. If your clients are constrained to something like 512MB of RAM, the machines could be performing a lot of hard drive access for VM swaps, even for just running the browser. In this situation downgrading the clock speed on your processor while still retaining your 2GB (assuming) of RAM would still not perform anywhere near the same even if everything else was equal.

Chris Lively