Enabling Multiple CPUs (SMP) in Ubuntu L'attivazione di più CPU (SMP) in Ubuntu
Many of today's computers have multiple CPUs. Molti degli attuali computer dispone di più CPU. Some are physically distinct, and others are virtual, such as hyper-threading and dual-core. Alcuni sono fisicamente distinti, e altri sono virtuali, come Hyper-Threading e dual-core. In any case, these processors support symmetric multiprocessing (SMP) and can dramatically speed up Linux. In ogni caso, questi processori sostegno multiprocessing simmetrico (SMP) e può accelerare drasticamente Linux.
The kernel supports multiple CPUs and hyper-threading. Il kernel supporta più CPU e Hyper-Threading. If your computer has two CPUs that both support hyper-threading, then the system will appear to have a total of four CPUs. Se il computer dispone di due CPU che sia il supporto Hyper-Threading, quindi il sistema sembrano avere un totale di quattro CPU.
Older versions of Ubuntu, such as Hoary and Breezy, had different kernels available for SMP. Le versioni precedenti di Ubuntu, come Hoary e Breezy, ha avuto diversi kernel disponibili per il latte scremato in polvere. To take advantage of multiple processors, you would need to install the appropriate kernel. Per usufruire di più processori, si avrebbe bisogno di installare il kernel appropriati.
sudo apt-get install kernel-image-2.4.27-2-686-smp sudo apt-get install kernel-image-2.4.27-2-686-smp
Without installing an SMP kernel, you would only use one CPU on an SMP system. Senza l'installazione di un kernel SMP, si dovrebbe utilizzare solo uno di CPU su un sistema SMP.
Dapper changed this requirement. Dapper cambiato questo requisito. Under Dapper, all of the default kernels have SMP support enabled. Sotto Dapper, tutti i kernel di default hanno attivato il supporto multiprocessore. The developers found that there was no significant speed impact from using an SMP kernel on a non-SMP system, and this simplified the number of kernels they needed to maintain. Gli sviluppatori accertato che non vi era alcun impatto significativo velocità da utilizzando un kernel SMP su una non-SMP, sistema, e questo semplificato il numero di kernel, di cui avevano bisogno per mantenere.
There are a couple of ways to tell if your SMP processors are enabled in both the system hardware and kernel. Ci sono un paio di modi per dire se il tuo LSP trasformatori sono attivati sia nel sistema hardware e kernel.
• /proc/cpuinfo-This file contains a list of all CPUs on the system. • / proc / cpuinfo-Questo file contiene un elenco di tutte le CPU sul sistema.
• top-The top command shows what processes are running. • La "top-top comando mostra che cosa sono i processi in esecuzione. If you run top and press 1, the header provides a list of all CPUs individually and their individual CPU loads. Se si esegue superiore e premere 1, l'intestazione fornisce un elenco di tutte le CPU e le loro individualmente i singoli carichi di CPU. (This is really fun when running on a system with 32 CPUs. Make sure the terminal window is tall enough to prevent scrolling!) (Questo è davvero divertente, quando viene eseguito su un sistema con 32 CPU. Assicurarsi che la finestra del terminale è abbastanza alto per evitare lo scorrimento!)
• System Monitor-The System Monitor applet can be added to the Gnome panels. • Monitor di sistema-System Monitor Il applet può essere aggiunto a pannelli di Gnome. When you click it, it shows the different CPU loads. Quando si fa clic su di esso, che mostra i diversi carichi di CPU.
In each of these cases, if only one CPU is listed, then you are not running SMP. In ciascuno di questi casi, se una sola CPU è elencato, quindi si esegue LSP non. Multiple CPUs in the listings indicate SMP mode. CPU multiple nel inserzioni indicare modalità SMP.
Disabling SMP Disattivare il latte scremato in polvere
In some situations, such as application benchmarking or hardware debugging, you may want to disable SMP support. In alcune situazioni, come ad esempio l'applicazione di benchmarking o di debug hardware, si consiglia di disabilitare il supporto multiprocessore. This can be done with the kernel parameters nosmp or maxcpus=1.If this is a temporary need, you can just boot the system, catch Grub at the menu by pressing ESC, and typing boot nosmp maxcpus=1 at the prompt. Questo può essere fatto con i parametri del kernel nosmp o maxcpus = 1.Qualora si tratta di una necessità temporanea, si può fare il boot del sistema, le catture a Grub il menu premendo ESC, e digitando il boot nosmp maxcpus = 1 al prompt. If you have multiple boot options, then you may need to edit the kernel line and add nosmp maxcpus=1 to the kernel boot line. Se si dispone di più opzioni di avvio, quindi potrebbe essere necessario modificare il kernel di linea e aggiungere nosmp maxcpus = 1 alla linea di avvio del kernel. Warning, some kernels do not work with nosmp, but in my experience maxcpus=1 always works. Attenzione, alcuni kernel non funzionano con nosmp, ma nella mia esperienza maxcpus = 1 semper opere.
For a longer-term solution, consider adding these boot parameters to the Grub configuration. Per una strategia a lungo termine la soluzione, prendere in considerazione l'aggiunta di questi parametri di avvio per la configurazione di Grub.
1. As root, edit /boot/grub/menu.lst. Come utente root, aprite / boot / grub / menu.lst.
2. Scroll down to your kernel. Scorrere verso il basso per il kernel.
3. Add a kernel option for disabling SMP. Aggiungere una opzione del kernel per disattivare il latte scremato in polvere. For example: kernel /boot/vmlinuz-2.6.15-26-686 root=/dev/hda1 ro splash maxcpus=1 Ad esempio: kernel / boot/vmlinuz-2.6.15-26-686 root = / dev/hda1 ro splash maxcpus = 1
4. Save your changes. Salvare le modifiche.
The next reboot will use your new changes. Il successivo riavvio verranno utilizzati i nuovi cambiamenti. If you modify /boot/grub/menu.lst, be aware that the contents could be overwritten the next time you upgrade the kernel or run update-grub. Se si modifica / boot / grub / menu.lst, essere consapevoli del fatto che il contenuto potrebbe essere sovrascritto la prossima volta che si effettua l'aggiornamento del kernel o eseguire update-grub.
SMP not working SMP non funziona
If you find that you only have one active CPU on a multiple CPU system, try installing the explicit SMP kernel: sudo apt-get install linux-686-smp. Se si trova che hai solo uno attivo della CPU su un sistema più CPU, prova a installare il kernel SMP esplicito: sudo apt-get install linux-686-smp. Beyond that, there are few generic debugging options and the problem is unlikely related to Ubuntu-it is probably a general Linux kernel problem. Oltre a ciò, vi sono poche opzioni di debug generici e il problema è improbabile relativi a Ubuntu-it è probabilmente un generale problema del kernel Linux.
Check with the motherboard manufacturer and see if Linux supports their chipset. Verificare con il produttore della scheda madre e vedere se Linux supporta il loro chipset. For example, I have an old dual-CPU motherboard that is not supported by Linux. Ad esempio, ho un vecchio dual-CPU scheda madre che non è supportato da Linux.
Check the Linux Hardware FAQ for the motherboard or chipset. Controllare il Linux Hardware FAQ per la scheda madre o del chipset. This will tell you if other people managed to get it to work. Questo vi dirà se altre persone sono riusciti a farla funzionare. Web sites such as https://wiki.ubuntu.com/HardwareSupport and/http://www.faqs.org/docs/Linux-HOWTO/SMP-HOWTO.html are good places to start. Siti Web come pagina https: / / wiki.ubuntu.com / HardwareSupport e / http: / / www.faqs.org / docs / Linux-HOWTO / LSP-HOWTO.html sono buoni posti per cominciare.
If all else fails, post a query to any of the Linux or Ubuntu hardware forums. Se tutto il resto fallisce, posta una query ad uno qualsiasi degli Ubuntu Linux o hardware forum. Maybe someone else knows a workaround. Forse qualcuno conosce una soluzione. Some good forums include http://www.ubuntuforums.org/, http://www.linuxhardware.org/, and http://www.linuxforums.org/forum/. Alcune buone forum includere http://www.ubuntuforums.org/, http://www.linuxhardware.org/, e http://www.linuxforums.org/forum/. Be sure to include details such as the make and model of the motherboard, Ubuntu version, and other peripherals. Assicurati di includere dettagli, come la marca e il modello della scheda madre, versione di Ubuntu, e altre periferiche. It is generally better to provide too much information when asking for help, rather than providing too little. È generalmente meglio per fornire troppe informazioni quando chiedono aiuto, piuttosto che fornire troppo poco.
Unfortunately, if SMP is not enabled after installing the linux-686-smp kernel, then it probably will not work. Purtroppo, se il latte scremato in polvere non è attivato dopo l'installazione di linux-686-smp del kernel, allora probabilmente non funzionerà. But you might get lucky-if someone has a patch then you will probably need to recompile the kernel. Ma si potrebbe avere la fortuna-se qualcuno ha una patch allora si avrà probabilmente bisogno di ricompilare il kernel.
Source of Information : Hacking Ubuntu Serious Hacks Mods and Customizations Fonte delle informazioni: l'hacking Ubuntu grave hack Mods e personalizzazioni
Written by magakos. Scritto da magakos. Read more great feeds at is source Per saperne di più grande al feed è fonte WEBSITE SITO WEB
no comments nessun commento . .
Read more articles on Per saperne di più articoli su Ubuntu Linux Ubuntu Linux and e otherSoftware otherSoftware . .
- [+] Digg [+] Digg : Feature this article : Feature questo articolo
- [+] Del.icio.us [+] Del.icio.us : Bookmark this article : Aggiungi ai preferiti questo articolo
- [+] Furl [+] Furl : Bookmark this article : Aggiungi ai preferiti questo articolo















