LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 03-10-2010, 08:49 PM   #1
alfplayer
LQ Newbie
 
Registered: Mar 2009
Location: Ciudad de Buenos Aires, Argentina
Distribution: Parabola GNU/Linux-libre
Posts: 23

Rep: Reputation: 0
Emulate a slow computer


I'd like to emulate a slow computer. I'm on a modern Core 2 Duo and I'd like to test software that will be run on an old Pentium III 886 MHz with a 5400 RPM hard drive (as old as the PIII). I could limit the CPU launching my virtual machine with cpulimit.

How can I also limit hard disk and system memory speeds to get closer to the real hardware? Is there anything else I can do to achieve this? I know it is very difficult (if not impossible) to do this accurately.

Buying a new faster computer is an option but is not cheap to me because of my country's currency value and high import duties.

Thank you.
 
Old 03-10-2010, 11:26 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Use VMware, create a vm and give it very low resource shares ?
 
Old 03-10-2010, 11:51 PM   #3
alfplayer
LQ Newbie
 
Registered: Mar 2009
Location: Ciudad de Buenos Aires, Argentina
Distribution: Parabola GNU/Linux-libre
Posts: 23

Original Poster
Rep: Reputation: 0
Thanks for responding.

I have to say I'm not a virtualization expert, I'm a network administrator. I'm reading about resource pools on VMware products an it seems it is only available on VMware's enterprise-level ESX Server and that it allows to limit CPU speed but it only allows to define the amount (not the speed) of the memory, and it also doesn't allow to limit disk access speeds.

I'm looking for a solution for the workstation (like an program or a kernel patch) and hopefully free, as I don't plan to do this kind of testing very often.

A virtual disk that can throttle I/O speeds might be part of the solution.
 
Old 03-11-2010, 05:53 AM   #4
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
what do you mean by resource shares?

I have successfully run DOS and NW-DOS under qemu with kvm support disabled, but unless you really need a VM, you can simply use dosemu instead
 
Old 03-11-2010, 11:21 AM   #5
alfplayer
LQ Newbie
 
Registered: Mar 2009
Location: Ciudad de Buenos Aires, Argentina
Distribution: Parabola GNU/Linux-libre
Posts: 23

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by dyasny View Post
what do you mean by resource shares?

I have successfully run DOS and NW-DOS under qemu with kvm support disabled, but unless you really need a VM, you can simply use dosemu instead
Thanks, but I need to test linux apps.
 
Old 03-11-2010, 10:29 PM   #6
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
VMware's ESX/i products allow you to define how many shares of cpu, memory and disk the vm is allowed to use. You can also limit cpu in terms of Mhz which would provide most of the requirements to emulate a slow machine.

cheers
 
Old 03-11-2010, 10:44 PM   #7
alfplayer
LQ Newbie
 
Registered: Mar 2009
Location: Ciudad de Buenos Aires, Argentina
Distribution: Parabola GNU/Linux-libre
Posts: 23

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kbp View Post
VMware's ESX/i products allow you to define how many shares of cpu, memory and disk the vm is allowed to use. You can also limit cpu in terms of Mhz which would provide most of the requirements to emulate a slow machine.

cheers
Limiting CPU speed seems to be the easiest thing to do. I believe hard drive access speeds have been significantly increased and are very different from modern values, and this is specially relevant testing an application's load time, which is something that I want to do. I'll add that I currently only have faster and modern 7200 RPM drives on my workstation.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow computer.. oshgosh General 12 12-15-2006 01:19 PM
computer terribly slow Atmchicago Linux - Hardware 2 08-02-2005 12:38 AM
computer is slow blackman890 Mandriva 6 12-04-2004 09:14 AM
Why is my computer so SLOW? Kairelyn Linux - Newbie 7 09-17-2004 04:57 PM
Slow old computer javax Linux - General 16 11-05-2002 12:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 08:14 PM.

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