Ubuntu Forums Archive Viewer

Howto optimize your ubuntu as guest OS for VMWare

Archived thread 1012762 from Outdated Tutorials & Tips. Markdown source: Outdated_Tutorials_&_Tips/thread_1012762_Howto_optimize_your_ubuntu_as_guest_OS_for_VMWare.md

Original URL About this archive
#1

My company has given me a lazy laptop with the laziest harddisk i’ve seen! And since i abuse from vmware and have usually 2 or 3 VM’s running, i’ve had to make some tunnings to my ubuntu.

My thoughts beside any optimization:

* The disk is slow, i cant persist vmware memory on a harddisk file *I have 4G of RAM, i want to use and abuse from it * Ubuntu by default writes the modification timestamp… i want to avoid disk IO * Do i really need my laptop to work as a laptop? no…

So… here it goes…

on /etc/vmware/config or in each vmx mainMem.useNamedFile = FALSE tmpDirectory=”/dev/shm”

#let’s garantee that we’ve have a steady memory… prefvmx.useRecommendedLockedMemSize=”TRUE” prefvmx.minVmMemPct=”100″ MemTrimRate = “0″ MemAllowAutoScaleDown = “FALSE”

#to collapse the memory shared pool mem.ShareScanTotal=0 mem.ShareScanVM=0 mem.ShareScanThreshold=4096 sched.mem.maxmemctl=0 sched.mem.pshare.enable = “FALSE”

  • To remove the acccess timestamp i’ve modified/etc/fstab and put the noatime in each hdd mount

/etc/default/tmpfs SHM_SIZE=4G

  • Increase the shared memory size

-disabling laptop tools sudo chmod -x /usr/lib/pm-utils/power.d/laptop-tools

vm.swappiness = 0 vm.overcommit_memory = 1 vm.dirty_background_ratio = 5 vm.dirty_ratio = 10 vm.dirty_expire_centisecs = 1000 dev.rtc.max-user-freq = 1024 vm.laptop_mode = 0

  • Some /etc/sysctl.conf magic

And that’s it :) My life is shining!! :)

My post at: http://cmartinstekzone.wordpress.com/2008/11/20/my-ubuntus-optimization-to-vmware/