People rarely "tune" the kernel by recompiling it. When I say "tune", I mean adjust the values of certain structures. Interacting with procfs, "/proc" is generally a better method. You could of course tune the kernel's source code and then recompile it if you wanted to, but this generally requires more knowledge than the majority of Linux users have, therefore it's not common. In regard to performance tuning, kernel recompilation would most likely involve adding additional features, or changing current implementations, through the use of patches. For example, you might want to add a different scheduler or virtual memory implementation.
The "echo" your describing is a very common way for adjusting parameters, it can not add any new functionality into the kernel. When you "echo" something, you are interacting with procfs inside the kernel. Therefore this allows you to see the values of certain permissible structures and possibly modify the contents. Note that files in procfs don't really exist like other files do, it's simply a means to "peak" into the kernel's data structures. Regards, John Matthews -----Original Message----- From: Robert Vaughn [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 08, 2002 6:08 PM To: RedHat Subject: Kernel Tuning: echo vs. recompiling I'm new to performance tuning Linux. I have noticed that a lot of Kernel modifications can be implemented by 'echoing' the changes into /proc/sys See the example... These reduce the amount of work the TCP stack has to do: echo 0 > /proc/sys/net/ipv4/tcp_sack echo 0 > /proc/sys/net/ipv4/tcp_timestamps I have also heard about tuning a Kernel through recompiling. What would the advantage be for recompiling when there seems to be a great variety of changes that can be simply 'echoed' in? Thanks, ...Robert __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list