1 |
John Jolet wrote: |
2 |
> On Saturday 01 October 2005 14:59, gentuxx wrote: |
3 |
> |
4 |
> |
5 |
>>>- Mark Shields |
6 |
>> |
7 |
>>IIRC, RedHat kernels are relatively generic in that they have almost |
8 |
>>everything turned on, and/or build the modules so that they can |
9 |
>>maximize the hardware compatibility. So it is likely that there will |
10 |
>>be tones of stuff that was turned on, or had modules build for it, |
11 |
>>that you didn't need. The same will likely be the case for the gentoo |
12 |
>>kernel. You're best bet is to spend the time on one system going |
13 |
>>through each kernel option (within reason), if you don't know what it |
14 |
>>does, read the help and/or turn it off (it will give a recommended |
15 |
>>setting in the Help). Once you've got your config, use that to build |
16 |
>>the kernels for the rest fo your systems. |
17 |
>> |
18 |
>>I know it's a lot of work, but once you've done it, subsequent |
19 |
>>configs/compiles for kernel upgrades, security patches, etc. will go |
20 |
>>MUCH faster. 1) Because you'll have a pre-defined kernel config. 2) |
21 |
>>You'll know what most of the kernel options are (at least |
22 |
>>superficially) and which ones you need enabled. You'll just have to |
23 |
>>read the help for any new ones that pop up. ;-) |
24 |
>> |
25 |
>>HTH |
26 |
>> |
27 |
> |
28 |
> I've done all that, in terms of drivers/features turned on/off/modules. I |
29 |
> meant more in terms of things like threads per process, processes per user |
30 |
> (ulimit and friends), max data stack, that sort of thing. |
31 |
|
32 |
For that take a look at |
33 |
http://www.gentoo.org/news/en/gwn/20050808-newsletter.xml |
34 |
section "Tips and Tricks" |
35 |
|
36 |
The "sys-kernel/hardened-sources" give some more flexibility but the |
37 |
fact is not so widely used, as (on amd64) the vanilla ones has to be |
38 |
considered. |
39 |
|
40 |
Also setting ulimit and sysctl apply to every linux system not only |
41 |
gentoo and should be always checked, also if you trust that the distro |
42 |
you are using is optimized to be used as server. |
43 |
|
44 |
Also to consider: |
45 |
CONFIG_HZ=100 |
46 |
CONFIG_PREEMPT_NONE=y |
47 |
IOSCHED_AS || IOSCHED_DEADLINE || IOSCHED_CFQ |
48 |
|
49 |
HTHToo |
50 |
-- |
51 |
gentoo-user@g.o mailing list |