smp.txt 844 B

12345678910111213141516171819202122
  1. To set up SMP
  2. Configure the kernel and answer Y to CONFIG_SMP.
  3. If you are using LILO, it is handy to have both SMP and non-SMP
  4. kernel images on hand. Edit /etc/lilo.conf to create an entry
  5. for another kernel image called "linux-smp" or something.
  6. The next time you compile the kernel, when running a SMP kernel,
  7. edit linux/Makefile and change "MAKE=make" to "MAKE=make -jN"
  8. (where N = number of CPU + 1, or if you have tons of memory/swap
  9. you can just use "-j" without a number). Feel free to experiment
  10. with this one.
  11. Of course you should time how long each build takes :-)
  12. Example:
  13. make config
  14. time -v sh -c 'make clean install modules modules_install'
  15. If you are using some Compaq MP compliant machines you will need to set
  16. the operating system in the BIOS settings to "Unixware" - don't ask me
  17. why Compaqs don't work otherwise.