The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache MPM Prefork (default) or Worker for I7?

Discussion in 'Workarounds and Optimization' started by chrismfz, Jun 6, 2010.

  1. chrismfz

    chrismfz Well-Known Member

    Joined:
    Jul 4, 2007
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Greece
    cPanel Access Level:
    DataCenter Provider
    On servers with newer I7 or Xeons (4 cores hyperthreading 8 cores)
    does anyone made tests which module runs better on Apache?

    EasyApache uses by default Prefork.
    I am testing both in one live server
    with only one php site without heavy use
    (200-300 users avg 40-50 req/sec)

    and I see that with worker it's a little faster.
    I am little worried about server load which reaches and exceeds 1.5
    and that's ridiculous if you think that one I7 920 serves only one site
    but anyway I can live with that.

    I don't know if with Prefork and other configuration than default
    may benefit those CPUs, that's why I am opening this thread,
    to see any opinions and other experiences with those modules.
     
  2. cmanns

    cmanns Member

    Joined:
    Nov 22, 2006
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi

    Please give MPM_Event a try and mod_fcgid if you use lots of PHP, ensure you have ram.

    Also pop open google and learn to tune a system, sometimes a load of 1.5 could be normal.
     
  3. chrismfz

    chrismfz Well-Known Member

    Joined:
    Jul 4, 2007
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Greece
    cPanel Access Level:
    DataCenter Provider
    Google is our friend :) but it just may be Drupal's problem (yes this one site is drupal based) and when they bloat it with almost every module they see it's going mad...

    I am using and testing now with Fcgid and Worker MPM. suExec on and I got
    status like that:

    Code:
    Server Version: Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 mod_fcgid/2.3.5
    Server Built: Jun 6 2010 14:43:24
    Current Time: Sunday, 06-Jun-2010 20:35:29 EEST
    Restart Time: Sunday, 06-Jun-2010 16:01:36 EEST
    Parent Server Generation: 3
    Server uptime: 4 hours 33 minutes 53 seconds
    Total accesses: 496081 - Total Traffic: 4.2 GB
    CPU Usage: u35.77 s5 cu0 cs0 - .248% CPU load
    30.2 requests/sec - 269.4 kB/second - 8.9 kB/request
    70 requests currently being processed, 80 idle workers
    Anyway I will test Prefork again tomorrow to see loads/performance with
    the same visits - requests and Event maybe the day after tomorrow why not... :)
     
Loading...

Share This Page