Dienstag, 1. April 2014

How can I increase VMware Workstation 8 performance?

FYI, this setting increased the performance of my guest box a lot. My host is a 64 bit Linux box with BFS and the timer is at 1500hz. If you can enjoy virtualization like I do I would like to recommend to check this out. My box has 6GB physical ram and I created a 5GB ramdisk but it should also work with only 2GB of physical ram. tmpfs seems to dynamically allocate wanted ram. host.cpukHz needs to be exactly the host box cpu speed. mem.ShareScanThreshold needs to be exactly the guest box ram size. Start the guest box and install the vmware tools and let it install the virtual drivers for the hardisk, video card and so on. I've created a guest box with Windows XP SP3 OS and it works like a charm. It could be a little faster but my box is cpu limited. It's only a 2.2Ghz 64 bit dual core cpu and it's doesn't support hyperthreading. It's also good if the guest box has enough ram (2GB).

    # create a ramdisk  
    tmpfs /dev/shm tmpfs defaults,size=5G,nr_inodes=5k,mode=700 0 0

    #temp directory
    tmpDirectory="/dev/shm"
    # bugfix
    host.cpukHz = "2400000"
    host.noTSC = "TRUE"
    ptsc.noTSC = "TRUE"
    # I/O fix
    prefvmx.useRecommendedLockedMemSize = "TRUE"
    prefvmx.minVmMemPct = "100"
    # temp file fix
    mainMem.useNamedFile = "FALSE"
    MemTrimRate=0
    MemAllowAutoScaleDown = "FALSE"
    # Cpu fix
    mem.ShareScanTotal=0
    mem.ShareScanVM=0
    mem.ShareScanThreshold=2024
    sched.mem.maxmemctl=0
    # Disable page sharing
    sched.mem.pshare.enable = "FALSE"
    # Disable 3d
    mks.enable3d = "true"
    roamingVM.enabled = "FALSE"
    roamingVM.useBackgroundSync = "FALSE"
    # Disable logging
    logging = "FALSE"
   # Disable unity
   isolation.tools.unity.disable = "TRUE"
   unity.allowCompositingInGuest = "FALSE"
   unity.enableLaunchMenu = "FALSE"
   unity.showBadges = "FALSE"
   unity.showBorders = "FALSE"
   unity.wasCapable = "TRUE"
   # Disable snapshot
   snapshot.disabled = "TRUE"
   mainMem.partialLazySave = "FALSE"
   mainMem.partialLazyRestore = "FALSE"
   priority.grabbed = "high"
   priority.ungrabbed = "normal"

Here is some explanation: http://vmfaq.com/entry/25/. It's also good to compile a kernel with max 1khz timer freqquency.

Turion Power Control config file for FSC Amilo XA 3530 @ 2400 Mhz

: PSTATESET pstate 0

vid 30
fid 16
did 0
enable

: PSTATESET pstate 1

vid 30
fid 12
did 0
enable

: PSTATESET pstate 2

vid 32
fid 8
did 0
enable

: PSTATESET pstate 3

vid 52
fid 16
did 1
enable

: PSTATESET pstate 4

vid 64
fid 16
did 2
enable

: PSTATESET pstate 5

vid 64
fid 12
did 2
enable

: GENERAL

psmax 6
psienable
nbvid 52
altvidslamtime 4
psithreshold 60
C1Eenable 0
C1Eenable 1

Flattr this blog