In my earlier blogs (such as Computers: Antivirus), I discussed other aspects of the care & feeding of your computer. I originally wrote these tips specifically to tune Virtual Machines for VMWare server v7.5. However, if you ignore the VMWare specific settings and just perform the other actions, these instructions ought to work well to tune up any machine.
NOTE: that these specific directions are for WinXP systems, however, the general principals ought to apply to later Windows versions too.
Return to an earlier blog on computers: Computers: Antivirus
NOTE: that these specific directions are for WinXP systems, however, the general principals ought to apply to later Windows versions too.
- Host system prep
- Ensure the guest VM is not running!
- When possible, install VMs on internal, eSATA, or USB 3.0 capable external drives only.
- Ensure "Write caching" is enable on the hard drive on which the VM is installed (for internal drives this is the default setting)
- For external drives, ensure the "Better performance" radio button is selected in the Device Properties -> policy tab (this should already be selected)
- Remove unused files (recommend running ccleaner to do this)
- Defragment the OS (recommend running auslogics defrag on "Defrag and optimize" setting)
- Repeat as necessary until the defrags take less than 10 minutes to complete!
- WARNING: do not defragment the host hard drive while running a VM!
- NOTE: filesystems with multiple VMs can take many hours to defrag and optimize the first few times. Plan your defrags accordingly.
- Configure Win to perform weekly maintenance on your hard drive
- Run ccleaner on your hard drive at least once per week (contact me if you need instructions on how to do this.)
- Run defrag your hard drive at least once per week (contact me if you need instructions on how to do this.)
- Close applications and turn off services which use a lot of memory (such as web browsers) prior to launching your VM
- In Services, set "Indexing Service" to "Disabled"
- Create a fixed page file size of 1 – 2x your physical RAM (this is always a trade-off; using a larger value improves your run time performance BUT also permanently removes that space from your available drive space)
- Open Control Panel -> System -> Advanced -> Performance -> Settings -> Advanced -> Virtual Memory
- Click on [Change]
- Click the "Custom Size" radio button
- Enter the value "6192 or 12384" (for 6 GB RAM systems) or "8256 or 16512" (for 8 GB RAM systems) for "Initial size (MB)"
- Enter the value "6192 or 12384" (for 6 GB RAM systems) or "8256 or 16512" (for 8 GB RAM systems) for "Maximum size (MB)"
- Click on the [Set] button
- Click [OK] and [Close] to get all of the open windows closed
- Restart your host system before proceeding
- VM Workstation global settings (for VMWare workstation) –
- VM Workstation memory settings (Edit -> Preferences -> Memory – click the appropriate radio button)
- Otherwise set the VM workstation memory setting to "Allow some VM memory to be swapped"
- Set the amount of memory available for VMs with "Memory Allocated to Virtual Machines"
- Launch your normal set of host system applications
- Open your task manager -> Performance tab
- Check the values of "Physical Memory Usage" and "Total Physical Memory"
- Set the "Memory Allocated to Virtual Machines" to the lesser of
- The value found by (Total Physical Memory – Physical Memory Usage – 512 MB)
- 3684 MB
- VM Settings
- Set memory to a value of 100 MB smaller than the value found in 2.2.4
- NOTE: This value should be between 1.5 GB and 3.5 GB – see details below
- Add up the memory usage of the applications you intend to use in your VM – this should be the lowest value of memory usage you consider.
- 2 - 3.5 GB would be better if those values meet the other requirements
- NOTE: 32 bit OS (e.g. 32 bit WinXP VMs) cannot address more memory than 3584 MB (the exact amount is dependent upon your environment), so there is no reason to use a number larger than this.
- Set "CPU processors" to 1 processor
- Set "CPU cores per processor" to ½ of your cores rounded up (so not less than 1).
- Floppy drive – uncheck the "Connect at power on"
- Unset the CD/DVD drive auto-detect
- Disable/remove USB Controller
- Disable/remove printer
- Disable/remove soundcard
- When done only the following should appear under the "Devices" tab:
- Memory
- Processers
- Hard Disk
- CD/DVD – "Using drive [C|D|E]:"
- Floppy – Auto detect
- Network Adapter
- Display – Auto detect
- Guest system preparation
- Launch the VM (your VM must be running to make these changes)
- Start -> Control Panel -> System -> Hardware -> [Device manager]
- Disable Floppy drive
- Disable Com1
- Disable Com2
- Disable Lpt1
- Install latest version of VMTools – RMC on VMTools and click on the [Update] button
- Remove unused files (recommend running ccleaner to do this)
- Defragment the OS (recommend running auslogics defrag on "Defrag and optimize" setting) – repeat as necessary until the defrags take less than 10 minutes to complete!
- Shrink the VM – RMC on the VMTools and follow instructions on the VMTools SHRINK tab
- Create a fixed page file size of 1-2x the memory of your VM (the value set in 3.1)
- Open Control Panel -> System -> Advanced -> Performance -> Settings -> Advanced -> Virtual Memory
- Click on [Change]
- Click the "Custom Size" radio button
- Enter a value (e.g. "3584") for "Initial size (MB)"
- Enter a value (e.g. "3584") for "Maximum size (MB)"
- Click on the [Set] button
- Click [OK] and [Close] to get all of the open windows closed
- Close applications and turn off services that use a lot of memory (such as web browsers, etc.)
- In Services, set "Telephony" to "Automatic"
- In Services, set "Alerter" to "Disabled"
- In Services, set "Automatic Updates" to "Disabled" (NOTE: you will need to re-enable this in order to update the OS)
- In Services, set "Background Intelligent Transfer Service" to "Disabled" (NOTE: you will need to re-enable this in order to update the OS)
- In Services, set "ClipBook" to "Disabled"
- In Services, set "Computer Browser" to "Disabled"
- In Services, set "Error Reporting Service" to "Disabled"
- In Services, set "Help and Support" to "Disabled"
- In Services, set "Indexing Service" to "Disabled"
- In Services, set "Messenger" to "Disabled"
- In Services, set "NetMeeting Remote Desktop Sharing" to "Disabled"
- In Services, set "Remote Desktop Help Session Manager" to "Disabled"
- In Services, set "Remote Registry" to "Disabled"
- In Services, set "Terminal Services" to "Disabled"
- In Services, set "Themes" to "Disabled"
- In Services, set "Uninterruptible Power Supply" to "Disabled"
- In Services, set "Wireless Zero Configuration" to "Disabled"
- Restart the guest VM
- Test drive the performance settings
Return to an earlier blog on computers: Computers: Antivirus