LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 05-14-2007, 09:19 PM   #1
fabmejia
LQ Newbie
 
Registered: Feb 2007
Location: Bogota, Colombia
Distribution: Linux Mint 15 X64, Mageia 2, Red Hat Enterprise, Centos 6.x
Posts: 20

Rep: Reputation: 0
Question memory configuration


Hello ,

I got a question for all of you in the community, i have two servers with 20GB of ram(RHEL AS 4U4) and and a load balancing software, that assign users one machine or the other according to the load of each system.
The problem is that it takes into account the amount of free ram instead of the load of the processors. the 2 servers have in any given time 17 to 19.1GB of ram assigned to cache and buffers; and this causes problems with the load balancing soft. I know that Linux manages the memory cache dynamically.
The question is: Can i set in any part of the system a max limit to the ram assigned to cache, let's say to a max of 60% of the total ram?.
Any advice from you will be very appreciated.

Thanks
 
Old 05-15-2007, 01:54 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
I don't think so. Linux unlike UNIX is designed to do put it all in cache and buffers automatically so it will be more quickly available (theoretically) for processes that need it.

Question is how does your load balance software determine "free" memory? If you issue the Linux free command you see something like:
total used free shared buffers cached
Mem: 255144 231740 23404 0 36824 84856
-/+ buffers/cache: 110060 145084
Swap: 0 0 0

If you could force the load balancing software to use the value for "free" in the line that says "-/+ buffers/cache" then it would be a more realistic load balance.
 
Old 05-15-2007, 05:06 PM   #3
fabmejia
LQ Newbie
 
Registered: Feb 2007
Location: Bogota, Colombia
Distribution: Linux Mint 15 X64, Mageia 2, Red Hat Enterprise, Centos 6.x
Posts: 20

Original Poster
Rep: Reputation: 0
I would like to give more info about my systems, the 2 systems that take all the available ram for cache have the kernel 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:32:02 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux.

And we have here other hosts with RHEL AS 3u8 with the kernel 2.4.21-47.ELsmp #1 SMP Wed Jul 5 20:30:30 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux and the same load balancing software, and these machines doesn't use all the ram for caching, they leave at least 14GB free of 20GB.

Thankyou for your feedback
 
Old 05-15-2007, 05:15 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
If the 2.4 behaviour is sufficient for you requirements, try looking at swappiness on the 2.6 system. Setting it to 0 (zero) replicates the old behaviour.

If you're lucky that might solve this for you.
 
Old 05-17-2007, 11:27 AM   #5
fabmejia
LQ Newbie
 
Registered: Feb 2007
Location: Bogota, Colombia
Distribution: Linux Mint 15 X64, Mageia 2, Red Hat Enterprise, Centos 6.x
Posts: 20

Original Poster
Rep: Reputation: 0
Thumbs up swapiness

Thankyou syg00,

That solved my particular situation, i setup vm.swappiness=0 in sysctl.conf and now these machines are only using about 1.1 GB to 2.0 GB of ram for cache, leaving the rest as free memory.

 
  


Reply

Tags
cache, memory, ram, setting



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory configuration sandiegon Linux - General 1 06-28-2004 12:53 AM
Low memory configuration?? Mercutio701 Linux - Newbie 4 02-07-2004 12:16 PM
Help!?! RH 8 Memory Mapping -High Memory-Virtural Memory issues.. Merlin53 Linux - Hardware 2 06-18-2003 04:48 PM
startup configuration of shared memory chapzilla Linux - Newbie 13 05-23-2003 03:49 PM
Memory configuration Ismark Linux - Newbie 0 12-30-2001 05:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 10:36 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration