« Home « Kết quả tìm kiếm

Practical mod_perl-CHAPTER 15:Improving Performance Through Build Options


Tóm tắt Xem thử

- This is the Title of the Book, eMatter Edition.
- Improving Performance Through Build Options.
- It’s important how you build mod_perl-enabled Apache.
- The build process influ- ences the size of the httpd executable—for example, some irrelevant modules might slow down performance..
- 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.
- We’ll build mod_perl starting with:.
- 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.
- 526 | Chapter 15: Improving Performance Through Build Options --disable-module=asis.
- --disable-module=imap.
- --disable-module=userdir.
- --disable-module=access.
- --disable-module=auth'.
- mod_perl’s EVERYTHING.
- mod_perl’s EVERYTHING and debug:.
- Clearly when you strip most of the defaults, the server size is slimmer.
- You can’t actually strip everything away, because there will be Apache modules and mod_perl options that you won’t be able to work without.
- But as a good system administra- tor’s rule says: “Run the absolute minimum of the applications.
- If you build in mod_status and you also set:.
- Perl Build Options | 527.
- Perl Build Options.
- The Perl interpreter is the brain of the mod_perl server.
- (Note that you have to build Perl before you build mod_perl-enabled Apache.
- If you have rebuilt the Perl interpreter, make sure to rebuild mod_perl as well, or the changes won’t affect mod_perl.).
- You can pass build options to Perl via the Configure script.
- You have a choice of using the native or Perl’s own malloc.
- Unless you know which of the two is better on yours, try both and compare the benchmarks..
- To build without Perl’s malloc.
- Perl’s malloc.
- 528 | Chapter 15: Improving Performance Through Build Options.
- When you build Apache and Perl, you can optimize the compiled applications to take advantage of the benefits of your machine’s architecture..
- This article describes some of the code optimization techniques used by the GNU C Compiler, in order to give the reader a feel of what code optimization is and how it can increase the efficiency of the generated object code..
- Chapter 6 of the online book Securing and Optimizing Linux, RedHat Edition: A Hands on Guide talks extensively about compiler flags

Xem thử không khả dụng, vui lòng xem tại trang nguồn
hoặc xem Tóm tắt