papykun
06/05/2007, 00h15
Code:
Install par defaut debian2:~# cat /proc/cpuinfo processor : 0 vendor_id : AuthenticAMD cpu family : 6 model : 6 model name : AMD Athlon(tm) MP 1600+ stepping : 2 cpu MHz : 1400.103 cache size : 256 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov bogomips : 2803.02 debian2:~#
# apt-get upgrade
# cd /usr/src
# apt-get install debconf-utils dpkg-dev debhelper
# apt-get install build-essential kernel-package
# apt-get install libncurses5-dev (pour le make menuconfig)
# apt-get install linux-source-2.6.18
# tar -xvjf linux-source-2.6.18.tar.bz2
# ls -l
debian2/usr/src# ls -l
total 40460
drwxr-xr-x 19 root root 4096 2007-04-09 18:49 linux-source-2.6.18
-rw-r--r-- 1 root root 41381108 2007-04-09 20:10 linux-source-2.6.18.tar.bz2
# ln -s linux-source-2.6.18 linux
# ls -l
debian2:/usr/src# ls -l
total 40460
lrwxrwxrwx 1 root src 19 2007-05-05 11:57 linux -> linux-source-2.6.18
drwxr-xr-x 19 root root 4096 2007-04-09 18:49 linux-source-2.6.18
-rw-r--r-- 1 root root 41381108 2007-04-09 20:10 linux-source-2.6.18.tar.bz2
# cp /boot/config-2.6.18-4-486 /usr/src/linux/.config
# cd linux
# make menuconfig

Processor type and features ---> Symmetric multi-processing support (a cocher pour activer le smp)
Processor type and features ---> Maximum number of CPUs (2-255) (NEW) (j ai laisser 8 par defaut)
Processor type and features ---> SMT (Hyperthreading) scheduler support (NEW) (je ne l ai pas activer car je n ai pas un pross multi-coeur, peux etre interessant suivant le pross)
Processor type and features ---> Timer frequency (1000 HZ) (par defaut 250 Hz indiquer)
Vous sauvegarder les changements : Save Configuration to an Alternate File
et vs sortez
il demande pour un nom de fichier, par defaut, puis enregistrer le nouveau kernet : oui. On est revenu sur putty
# make-kpkg --append-to-version "custom-papy1600" --initrd kernel_image modules_image kernel_headers (custom-papy1600 : Vous mettez ce que vous voulez, ayant 2 serveurs, prefere sauvegarder en ayant une difference rapide, pross : Bi mp 2100 et Bi mp 1600 )
Patience, le temps de compilation depend de la machine. J ai mis une heure la premiere fois sur le Bi mp 2100
# cd ..
# dpkg -i linux-image-2.6.18custom-papy_2.6.18custom-papy-10.00.Custom_i386.deb
Et on reboot
# shutdown -r now
Verifier que Grub prend bien le nouveau noyau.
# cat /proc/cpuinfo
Code:
debian2:~# cat /proc/cpuinfo processor : 0 vendor_id : AuthenticAMD cpu family : 6 model : 6 model name : AMD Athlon(tm) MP 1600+ stepping : 2 cpu MHz : 1400.103 cache size : 256 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mp mmxext 3dnowext 3dnow ts bogomips : 2801.99 processor : 1 vendor_id : AuthenticAMD cpu family : 6 model : 6 model name : AMD Athlon(tm) MP stepping : 2 cpu MHz : 1400.103 cache size : 256 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mp mmxext 3dnowext 3dnow ts bogomips : 2799.75
Bonne journer