Monday, 30 April 2012

Apache Prefork vs Worker

Lower memory usage by 22% and higher performance with apache2-mpm-worker

Apache Multi-Processing Modules (MPM) prefork is the original like apache 1.3 implementation which is used where multi-threading could cause issues i.e. PHP hosting. The worker MPM is a multi-threaded and claims to provide higher performance and lower memory footprint than prefork.
When the time came to update one of our hosting servers, we decided to included the move to the worker mpm implementation, I tested the performance mpm implementation and found that it achieved a savings of 17.4MiB - 20.8 MiB and 8 less child processes:

Apache MPM Prefork

After clean apache reboot:
    $ ./ps_mem.py
    Private  +   Shared  =  RAM used       Program
    64.7 MiB +  11.8 MiB =  76.5 MiB       apache2 (23)
After each of our sites was accessed once:
    $  ./ps_mem.py
    Private  +   Shared  =  RAM used       Program
    245.8 MiB +  12.8 MiB = 258.6 MiB       apache2 (31)

Apache MPM Worker

Results with apache2-mpm-worker module after a clean apache reboot:
    $  ./ps_mem.py
    Private  +   Shared  =  RAM used       Program
    53.1 MiB +   6.0 MiB =  59.1 MiB       apache2 (20)
After each site was hit once with an web browser:
    $  ./ps_mem.py
    Private  +   Shared  =  RAM used       Program
    225.7 MiB +  12.1 MiB = 237.8 MiB       apache2 (21)
From this semi scientific test it is clearly worthwhile using apache2-mpm-worker on a server that is purely serving and hosting django projects.

50 comments:

  1. Thanks for Nice and Informative Post. This article is really contains lot more information about This Topic.
    Thesis Help Services

    ReplyDelete
  2. I personally like your post, you have shared good article. It will help me in great deal.
    Linear Programming Homework Help

    ReplyDelete
  3. Great Information,it has lot for stuff which is informative.I will share the post with my friends.
    Java Assignment Help

    ReplyDelete
  4. I hope everyone like this information they shared as I do. Really great information.
    Physics Homework Help

    ReplyDelete
  5. I personally like your post, you have shared good article. It will help me in great deal.
    Statistics Homework Help

    ReplyDelete
  6. Mathematics Assignment Help Assignment and Online Homework Help Mathematics Assignment Help Mathematics is an interestingand a practical academic discipline.

    ReplyDelete
  7. Great Information,it has lot for stuff which is informative.I will share the post with my friends.
    MICROECONOMICS Economics Assignment Help

    ReplyDelete
  8. I personally like your post, you have shared good article. It will help me in great deal.
    Matlab Symbolic Math Help

    ReplyDelete
  9. I hope everyone like this information they shared as I do. Really great information.
    Case Operations Management Homework help

    ReplyDelete
  10. Mike Jasson is an academic writer of the Accounting Assignment Help. Who writes quality academic papers for students to help them in accomplishing their goals.
    SURGICAL PROCEDURE Assignment Help

    ReplyDelete
  11. I loved the way you discuss the topic great work thanks for the share.
    Pepsico Inc Oost Of Capital Case Solution

    ReplyDelete
  12. This is really great work. Thank you for sharing such a useful information here in the blog for students.
    Systat Project Help

    ReplyDelete
  13. What a great information you shared with us, I am inspired with the method for stage. It kept joined me constantly. Keep doing awesome. Thanks for sharing this blog article.
    Assignment Help

    ReplyDelete
  14. To get the best Australia homework help visit our site allhomeworkhelp.com.

    ReplyDelete
  15. I am happy to find this post very useful for me, as it contains lot of information. I always prefer to read the quality content and this thing I found in you post. Thanks for sharing.
    Assignment Help

    ReplyDelete
  16. Thanks for your suggestion. I really appreciate that you took all this time to try and help us. Keep up the good work. Keep on taking action.
    Assignment Help

    ReplyDelete
  17. Well, nothing I want to say but great! I hope you'll make more useful post in the next few days.
    Call Center Outsourcing Services

    ReplyDelete
  18. This blog is so nice to me. I will continue to come here again and again. Visit my link as well. Good luck
    obat aborsi
    cara menggugurkan kandungan
    obat telat datang bulan
    obat penggugur kandungan

    ReplyDelete
  19. A government credit may come as a sponsored Stafford advance, unsubsidized Stafford advance, or PLUS (Parent Loans for Undergraduate Students) advance. On account of the sponsored Stafford advance, the national government pays for the intrigue accumulated amid the length of the course until such time that the understudy has officially graduated and gets to be distinctly prepared to make the reimbursements themselves. cash advance chicago

    ReplyDelete
  20. They are not excessively troublesome or excessively muddled, but rather you require, making it impossible to comprehend a couple of prerequisites before you apply. payday loans

    ReplyDelete
  21. Amazing post! I really amazed to see the great information that you have shared with us. I want to say that you are doing the great job. Keep this great work up. talented plumber Denver co

    ReplyDelete
  22. I was on your website and reading your blog. You have shared very informative blog for everyone. Please keep update from your more blogs. Thanks for sharing this with me. Packagingboxessupplier.com

    ReplyDelete
  23. Getting a decent moneylender and an educated monetary guide are fundamental parts of the entire procedure. Acquiring the land credit easily depends altogether on you. auto title loans online

    ReplyDelete
  24. There are two sorts of manufactured home advances accessible, credits to purchase a trailer with the land and advances to purchase a trailer without the land. At the point when the land does not come into thought, the fund foundations give a credit for manufactured homes in parks, rented parts, family arrive, or any circumstance where the house is not deeded as genuine property. Payday Loans Chicago

    ReplyDelete
  25. Once the payday propel advance is affirmed, the loan specialists will store the cash into your financial records on the off chance that you have coordinate store abilities. At the time the propel credit is permitted you will take the exchange of overnight stores as indicated by a couple payday loan specialists. check cashing

    ReplyDelete
  26. good a breath more than plastic ones. Nevertheless, https://bestcribmattressz.com so you shouldn't be fretted about mold and mildew advancement nice.

    ReplyDelete
  27. Great successfully install 9apps apk on your PC or lap. Download 9Apps APK and install apk for your android phone. This app Fine.

    ReplyDelete
  28. good stream offline and on-line material. There are lots of done in Kodi APK These Android TV boxes been available in numerous best.

    ReplyDelete
  29. good Google releases a new version of the Google play store Download Play Store methods of downloading as well as mounting the Google nice.

    ReplyDelete
  30. Our office is opened 24/7. So, you can find us all time. United Check Cashing offering you the best services with 100% satisfaction within very short period.
    check cashing Harrisburg

    ReplyDelete
  31. Delight in watching flicks directly in your PC desktop in showbox download for pc for downloading showbox for mac, after that you must.

    ReplyDelete
  32. Adaptable Repayment Options - Borrowed a credit yet don't know whether you can reimburse it in time? Numerous payday loan specialists envision this and along these lines offer purchasers an installment game plan to reimburse their assets over a more drawn out timeframe.
    Check Cashing San-diego

    ReplyDelete
  33. The issue is addressed and also you could now see the apps names. tutu helper apk download In this Chinese app store, you can also mount Pokemon go

    ReplyDelete
  34. AN inspiring article. Very well researched. Essay typer

    ReplyDelete
  35. ShowBox app is truly amazing. It allows users to keep track of the latest news in Hollywood as well as new releases. In fact, new releases, both in Television and in movies, are added every single day. The only thing that can be said is that the download speeds can be improved. But it still is the best app to use for streaming videos and downloading them. The choices are exhaustive. ishowboxapk.info

    ReplyDelete
  36. Couldn't be written any better. Reading this post reminds me of my old roommate! He always kept talking about this Freelance Jobs| candid photographer

    ReplyDelete
  37. We feel much concerned of the value of your property, safety and security more than our profit or anything else, actually dedicated to our services bathroom renovation https://www.ajrinconstruction.com/bathroom-remodeling/ and hold out till our Clients’ functions are served to satisfaction
    bathroom renovation nyc

    ReplyDelete
  38. There are as yet numerous nations where separate isn't lawfully perceived. Albeit most industrialized nations around the globe allow separate, there are a couple of amazing special cases. denver divorce lawyer

    ReplyDelete
  39. I think that worker should be given more priority as due to workers companies are running properly and earning well https://bestgrillsking.com

    ReplyDelete

  40. البيت الراقي هي شركة تنظيف فلل بالرياضهي واحدة من اقوي شركات المتخصصة في مجال التنظيف بالرياض بافضل الوسائل التي تسهل عليك عملية التنظيف الشاقة وتكون جيدة ومتقنة للغاية في كل جزء من اجزاء الفلل وباسرع وقت ممكن وبكل دقة وكفاءة عالية لكسب ثقة عملائنا فكل ذلك يكون نتاج تعب خبراء شركة تنظيف فلل بالرياض ودقتهم في اعطاء عملائنا الخدمة المطلوبة وبأعلي مستوي من النظافة كما يوضح خبراء شركة تنظيف بيوت بالرياض انهم يقومون بعملية التنظيف والتعطير سواء كانت الفيلا جديدة او مفروشة لتحقيق الاسترخاء والتمتع بجو صحي ونظيف فمع البيت الراقي نشرح لكم اهم الطرق للحفاظ علي جمال ورونق الفلل بأسهل الطرق وأبسطها ومعرفة المواد الفعالة في عملية التنظيف
    شركة تنظيف قصور بالرياض
    يجب ان تقوم ربة المنزل بتنظيف الاثاث من كنب ومجالس وغيرهم بشكل يومي وتنظيفهم من الاتربة لعدم تراكم الاتربة وبالتالي يصعب ازالتها مع الوقت .
    شركة تنظيف شقق بالرياض
    افضل شركة تنظيف فلل بالرياض تنصح ايصا بالاهتمام بتنظيف الستائر وغسيل الموكيت والسجاد بشكل مستمر للحفاظ علي رونقها ونظافتها واناقتها كما اننا ننصح بالتخلص من الاشياء التي ليس لها اي اهمية اوقيمة لعدم التراكم الزايد عن اللزوم .
    كما اننا ننصح بالاهتمام بالتنظيف الدوري للمطبخ بكل مافية لعدم تراكم الدهون ومن ثم يصعب ازالتها فيما بعد والاهتمام بتنظيف الصحون اول بأول لعدم جلب الحشرات والروائح الكريهة وايضا الحمام لابد من تنظيفةو تعقيمة بشكل دوري لصحتك وصحة اسرتك مع استخدام المطهرات الفعالة .
    شركة تنظيف منازل بالرياض
    شركة تنظيف فلل بالرياض تنصحك ايضا سيدتي بالاهتمام بنظافة الشبابيك الداخلي والخارجي لانة يعطي لمسة جمالية رائعة للفيلا الخاصة بك وتشعرك بالراحة عن نظفاتها.
    شركة تنظيف خزانات بالرياض
    فعندما تريد ان تعتني بالفيلا الخاصة بك لابد ان تستعين بأهل الخبرة في تنظيف الفلل وشركة تنظيف فلل بالرياض لديها اخبراء والمتدربين والماهرين في تأدية واجبتهم ولتدريبهم علي احدث اجهزة التنظيف بالبخار واستخدامهم اقوي المواد الفعالة وطرق استخدامها بعناية فائقة.
    شركة نقل عفش بالطائف
    افضل شركة تنظيف فلل بالرياض توضح لكم ان عملية تنظيف الفلل ليس بسهلة ولا بسيطة وقد تستغرق وقتا طويل ولكن بفريق عملنا ومعدتنا الحديثة تجعل الموضوع اسهل مما يمكن بأعلي جودة ممكنة وبأقل الاسعار الممكنة .
    برجاء الاتصال بنا في شركة البيت الراقي شركة تنظيف بالرياض

    ReplyDelete
  41. This is a great web site. Good sparkling user interface and very informative blogs. I will be coming back in a bit, thanks for the great article. I have found it enormously useful.
    "Online gaming is so popular among people of all ages, and whatever kinds of games you want you're bound to find something to suit you online.You might also be shocked to know there are lots of websites which may enable you to play free football friv games for so long as you like without having to shell out a penny. If you're a fan of flash RPG matches you won't be disappointed as there are free internet adventure games that you may enjoy."

    ReplyDelete
  42. Lamentably, in the event that you are not watchful, you can resemble a ton of the borrowers who end up getting restricted into a consistent obtaining cycle.quick cash advance chicago

    ReplyDelete

  43. تنظيف المكيفات ببريدة والقصيم
    تواجه مشاكل مع مكيف الهواء الخاص بك؟ العديد من المشاكل التي لديك مع مكيف الهواء الخاص بك قد تحل ببساطة تفعل ذلك بنفسك خطوات الصيانة التي يمكنك اتخاذها. القول المأثور "يبقيه بسيط غبي" يقطع شوطا طويلا. قبل افتراض أن لديك مشكلة تقنية الرئيسية التي يتطلب اصلاح مكيف لإصلاحها بعد اتهام لك ثروة، تبدأ من خلال القيام ببعض الخطوات البسيطة صيانة أجهزة تكييف الهواء وفحص بعض المشاكل واضحة.
    شركة تنظيف مكيفات بالقصيم
    شركة تنظيف مكيفات ببريدة
    شركة تنظيف مكيفات بعنيزة
    شركة تنظيف مكيفات بالبكيرية
    أولا عليك دائما أن تكون على يقين لديك فلتر الهواء النقي في النظام الخاص بك. إذا كنت وحدة لم التبريد وهل لاحظت تراكم الجليد أو حول وحدتك في الأماكن المغلقة أو في الهواء الطلق يجب إيقاف مكيف الهواء وإيقاف المروحة على لمدة 6-8 ساعات للسماح الجليد لذوبان الجليد. تذكر
    الجليد ترى من خارج النظام الخاص بك ليست سوى جزء صغير منه. معظم البناء الجليد حتى على المبخر أو لفائف داخل عمل القناة الخاص بك ان كنت لا تستطيع رؤية ذلك تأكد من السماح لها ذوبان الجليد لمدة 6-8 ساعات قبل ان يتحول حدتك مرة أخرى. بمجرد تحويله يعود على يقين الفلتر نظيف، جميع سجلات مفتوحة، والمنطقة المحيطة عن العرض والعودة السجلات هو واضح. إذا كان النظام يتجمد مرة أخرى بمجرد تشغيله سوف تحتاج إلى استدعاء المؤهلين اصلاح مكيف الهواء. يمكن أن النظام الخاص
    بك تكون منخفضة على الفريون. إذا يضيف الفريون ولكن غير قادر على تحديد موقع تسرب يمكنك محاولة "الفريون طقم إصلاح تسرب" تباع عبر الإنترنت التي هي سهلة لوضعها في النظام الخاص بك.
    شركة تنظيف مكيفات بالقصيم
    شركة تنظيف مكيفات ببريدة
    شركة تنظيف مكيفات بعنيزة
    شركة تنظيف مكيفات بالبكيرية

    ReplyDelete