VMware and RHEL5

Long time no blog I know. Very remiss of me :(

Been real busy at work with VMware and RHEL. A bit of struggle getting everything to work. Still can’t get DB2 to start automatically at boot or find reliable scripts for IBM’s HTTP Admin Server for /etc/rc.d/init.d. Rather frustrating.

I did learn a lot about the apps though and got some interesting tuning stuff out of it. Most of the stuff comes off of various pages which I referenced in del.icio.us. Here’s the gist – I hope it will be useful for you :)

Never swap – keep Virtual Machine memory usage under 75% of installed RAM on laptop

VMware Fusion: use 2.0.1 with Preferences->”Optimize for Mac OS application performance” and “Never optimize mouse for games”

/etc/grub/grub.conf

add noapic nolapic apci=off clocksource=acpi_pm elevator=noop to kernel line like this:

kernel /vmlinuz-2.6.18-92.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet noapic nolapic apci=off clocksource=acpi_pm elevator=noop

/etc/security/limits.conf

domino          soft    nofile          16384

domino          hard    nofile          65535

domino          soft    nproc           16384

domino          hard    nproc           65535

db2adm9         soft    nofile          16384

db2adm9         hard    nofile          65535

db2adm9         soft    nproc           16384

db2adm9         hard    nproc           65535

/etc/pam.d/login

session required pam_limits.so

/etc/system/sysctl.conf

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

.vmx Options to add:

MemAllowAutoScaleDown = “FALSE”

MemTrimRate = “0″

mainMem.useNamedFile = “FALSE”

sched.mem.pshare.enable = “FALSE”

host.useFastClock = “FALSE”

monitor_control.virtual_rdtsc = “FALSE”

mem.ShareScanTotal=0

mem.ShareScanVM=0

mem.ShareScanThreshold=4096

sched.mem.maxmemctl=0

autostop = “softpoweroff”

prefvmx.useRecommendedLockedMemSize=”TRUE”

prefvmx.minVmMemPct=”100″

tmpDirectory=”/dev/shm”

About these ads

About mfinocchiaro

IT Architecture Guru for large PLM software company but dabbling in Web 2.0 and other stuff.
This entry was posted in LINUX, VMware and tagged , , , . Bookmark the permalink.

One Response to VMware and RHEL5

  1. Pingback: 2010 in review | Fino’s Weblog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s