LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 07-13-2010, 12:58 PM   #1
dap263
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Rep: Reputation: 0
Question VMware RHEL5 guest OS memory cache release


From everything I have read, RHEL will use all available/unused RAM for caching to increase performance.

However, this becomes an issue for me in a VMware environment. VMware (ESX4) looks for guest OS to let it (ESX) know when the guest is done using the memory so it will make it available it to another server.

So lets say I have a guest that has a dB, the dB runs an intensive job, it finishes and now its idle. But since it cached all the memory, VMware still thinks that the dB server needs it, so it doesnt release the RAM to be used by my webserver that needs the extra RAM. Sure I can live with as many guests as I have RAM, but that is a waste of a huge virtualization feature, since over all my CPU utilization is under 10% and my RAM utilization (as far as VMware knows) is 75%.

Any suggestions on how to tell ESX or RHEL to release the memory?
 
Old 07-13-2010, 04:42 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,474

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Have ESX set hard limits on the VMs?

You could tell RHEL to drop its disk caches with
Code:
echo 3 > /proc/sys/vm/drop_caches
 
Old 07-14-2010, 08:41 AM   #3
dap263
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by AlucardZero View Post
Have ESX set hard limits on the VMs?

You could tell RHEL to drop its disk caches with
Code:
echo 3 > /proc/sys/vm/drop_caches
That serves the purpose for a single use.

Should I cron that? However, would that just kill the performance on the server?

I was hoping there was a setting/tweak that could be done to limit the time cache was kept.
 
  


Reply

Tags
cache, esx, memory, rhel5, vmware


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux guest on Vmware is not communicating to other guest machines Saravana Linux - Virtualization and Cloud 2 10-25-2009 11:14 PM
RHEL5 running as a VMware guest ursusca Red Hat 5 10-13-2009 04:58 PM
Communication between Host(RHEL5) and VMware Guest OS(RHEL5) riteshanand40 Linux - Newbie 2 08-02-2009 10:52 PM
Configuration to access internet from vmware(host=winXP, guest on vmware=linux-5) afz_linux Linux - Newbie 3 12-30-2008 12:20 AM
Virtualbox/VMWare XP Guest Memory Requirements gmcauley Linux - Software 6 10-12-2008 03:11 PM


All times are GMT -5. The time now is 12:13 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration