Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've read through other threads on performance differences between RHEL 6 and RHEL 5, but none seem a tight match to mine.

My issue manifests itself in slightly slower average response time (20ms) per request. I have about 10/10 servers of the same hardware spec with CentOS 6.1 and CentOS 5.6. The issue is consistent across the group.

I am running Ruby on Rails with Passenger.

  • Apache config is identical (checked out from the same SVN repo)
  • Ruby and Passenger are identical builds.
  • Application is identical and being served traffic round robin.
  • mod_worker

An interesting clue from server-status: The CentOS 6.1 servers have a steady 20-40 threads in the "Reading Request" state while the CentOS 5.6 servers have around 1. I'm graphing this so I can see it trend over time.

I also have a bunch of much newer machines that are significantly faster and are running CentOS 6.1. They dust all the older machines in response time, but I can see they also have a steady 20-40 threads in the "Reading Request" state. This makes me believe I can get their response time down, if I can figure out what is holding up these requests.

My gut is telling me that I need to tune some network setting in sysctl, but I haven't figured it out yet.

share|improve this question
ooh. interesting one. There are bonkers loads of metrics and settings that you could pull here to find out. – Tom H May 9 '12 at 0:06
How many requests per second are you serving avg? whats the current cache and buffers? – Tom H May 9 '12 at 0:14
each individual server gets to around 40/sec – daniel May 9 '12 at 0:35
there is a good amount of free memory, if that's what you are asking CentOS6: MemTotal: 8061920 kB MemFree: 1898468 kB Buffers: 92748 kB Cached: 2422552 kB CentOS 5.6: MemTotal: 8174968 kB MemFree: 1107736 kB Buffers: 147204 kB Cached: 4750620 kB – daniel May 9 '12 at 0:37
Apache versions? – Mike Fiedler May 9 '12 at 2:13

One FAQ in this area is that memory mgmt in RHEL6 is different and mulit-threaded apps can suffer. Try running apache under MALLOC_ARENA_MAX=1 and see if it makes a difference.

share|improve this answer

Wild shot #1: Any chance you're logging hostnames instead of IP addresses? If yes is that on both? If yes is one of them running nscd?

Wild shot #2: Is LDAP involved in any way there? I.e. is the apache or any other component of the request running as an ldap user?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.