tailieunhanh - Practical mod_perl-CHAPTER 15:Improving Performance Through Build Options

Tham khảo tài liệu 'practical mod_perl-chapter 15:improving performance through build options', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Page 525 Thursday November 18 2004 12 43 PM CHAPTER 15 Improving Performance Through Build Options It s important how you build mod_perl-enabled Apache. The build process influences the size of the httpd executable for example some irrelevant modules might slow down performance. When you build Apache it strips the debug symbols by default so you don t have to strip them yourself. For production use you definitely shouldn t build mod_perl with debugging options enabled. Apache and mod_perl do not add these options unless you explicitly require them. In Chapter 21 we talk about debug build options in detail. Server Size as a Function of Compiled-in Features You might wonder if it s better to compile in only the required modules and mod_ perl hooks or if it doesn t really matter. To answer this question let s first make a few compilations and compare the results. We ll build mod_perl starting with panic perl APACHE_SRC . src DO_HTTPD 1 USE_APACI 1 and followed by one of these option groups in turn Default no arguments Minimum APACI_ARGS --disable-module env --disable-module negotiation --disable-module status --disable-module info --disable-module include --disable-module autoindex --disable-module dir --disable-module cgi 525 Page 526 Thursday November 18 2004 12 43 PM --disable-module asis --disable-module imap --disable-module userdir --disable-module access --disable-module auth mod_perl s EVERYTHING EVERYTHING 1 mod_perl s EVERYTHING and debug EVERYTHING 1 PERL_DEBUG 1 After recompiling with the arguments of each of these groups in turn we can summarize the results as follows Build group httpd size bytes Difference ----------------------------------------- Minimum 892928 0 Default 994316 101388 Everything 1044432 151504 Everything Debug 1162100 269172 Clearly when you strip most of the defaults the server size is slimmer. But the savings become insignificant because you don t multiply the added size by the number of

TỪ KHÓA LIÊN QUAN