233 lines
4.0 KiB
HTML
233 lines
4.0 KiB
HTML
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>Linux General Optimization</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.60"><LINK
|
|
REL="HOME"
|
|
TITLE="Securing and Optimizing Linux"
|
|
HREF="index.html"><LINK
|
|
REL="UP"
|
|
TITLE="Security, Optimization and Upgrade"
|
|
HREF="Secure-optimize.html"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="System is compromised !"
|
|
HREF="chap5sec63.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="The /etc/profile file"
|
|
HREF="chap6sec64.html"></HEAD
|
|
><BODY
|
|
CLASS="chapter"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><DIV
|
|
CLASS="NAVHEADER"
|
|
><TABLE
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TH
|
|
COLSPAN="3"
|
|
ALIGN="center"
|
|
>Securing and Optimizing Linux: RedHat Edition -A Hands on Guide</TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="left"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="chap5sec63.html"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
></TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="chap6sec64.html"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="chapter"
|
|
><H1
|
|
><A
|
|
NAME="pr3ch6lglc"
|
|
>Chapter 6. Linux General Optimization</A
|
|
></H1
|
|
><DIV
|
|
CLASS="TOC"
|
|
><DL
|
|
><DT
|
|
><B
|
|
>Table of Contents</B
|
|
></DT
|
|
><DT
|
|
>6.1. <A
|
|
HREF="chap6sec64.html"
|
|
>The /etc/profile file</A
|
|
></DT
|
|
><DT
|
|
>6.2. <A
|
|
HREF="chap6sec65.html"
|
|
>Benchmark Results</A
|
|
></DT
|
|
><DT
|
|
>6.3. <A
|
|
HREF="chap6sec66.html"
|
|
>Benchmark results-i586</A
|
|
></DT
|
|
><DT
|
|
>6.4. <A
|
|
HREF="chap6sec67.html"
|
|
>Benchmark results -i486</A
|
|
></DT
|
|
><DT
|
|
>6.5. <A
|
|
HREF="chap6sec68.html"
|
|
>The bdflush parameters</A
|
|
></DT
|
|
><DT
|
|
>6.6. <A
|
|
HREF="chap6sec69.html"
|
|
>The buffermem parameters</A
|
|
></DT
|
|
><DT
|
|
>6.7. <A
|
|
HREF="chap6sec70.html"
|
|
>The ip_local_port_range parameters</A
|
|
></DT
|
|
><DT
|
|
>6.8. <A
|
|
HREF="chap6sec71.html"
|
|
>The <TT
|
|
CLASS="filename"
|
|
>/etc/nsswitch.conf</TT
|
|
> file</A
|
|
></DT
|
|
><DT
|
|
>6.9. <A
|
|
HREF="chap6sec72.html"
|
|
>The file-max parameter</A
|
|
></DT
|
|
><DT
|
|
>6.10. <A
|
|
HREF="x4733.html"
|
|
>The ulimit parameter</A
|
|
></DT
|
|
><DT
|
|
>6.11. <A
|
|
HREF="chap6sec73.html"
|
|
>The atime and noatime attribute</A
|
|
></DT
|
|
><DT
|
|
>6.12. <A
|
|
HREF="chap6sec74.html"
|
|
>Tuning <SPAN
|
|
CLASS="acronym"
|
|
>IDE</SPAN
|
|
> Hard Disk Performance</A
|
|
></DT
|
|
><DT
|
|
>6.13. <A
|
|
HREF="chap6sec75.html"
|
|
>Better manage your <SPAN
|
|
CLASS="acronym"
|
|
>TCP/IP</SPAN
|
|
> resources</A
|
|
></DT
|
|
></DL
|
|
></DIV
|
|
><DIV
|
|
CLASS="highlights"
|
|
><A
|
|
NAME="AEN4337"
|
|
></A
|
|
><P
|
|
> At this stage of your configuration, you should now have a Linux server optimally configured and secured. Our server contains the most essential package and programs installed to be able to work properly and the most essential
|
|
general security configuration. Before we continue and begin to install the services we want to share with our clients/users, it is important to now tune our Linux server. The tuning we will perform in the
|
|
following chapter will be applied to the whole system. It also applies to present as well as future programs, such as services that we will later install.
|
|
</P
|
|
><P
|
|
> Generally, if you don't use a x386 Intel processor, Red Hat Linux out
|
|
of the box is not optimized for your specific CPU architecture, most people now run Linux on a Pentium processor. The sections below will guide you through different steps to optimize your Linux server for your specific
|
|
processor, memory, and network, as well as your file system.
|
|
</P
|
|
></DIV
|
|
></DIV
|
|
><DIV
|
|
CLASS="NAVFOOTER"
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"><TABLE
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="chap5sec63.html"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="index.html"
|
|
>Home</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="chap6sec64.html"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>System is compromised !</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="Secure-optimize.html"
|
|
>Up</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>The /etc/profile file</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |