Your best source of information and news about software , windows and windows on the internet Ihre beste Quelle von Informationen und Neuigkeiten rund um Software, Windows und Windows im Internet

Vista ARTICLES Vista ARTIKEL TOP 50 TOP 50 Spyware Virus Spyware-Virus Vista SOFT Vista SOFT Vista HELP Vista HILFE

Enabling Multiple CPUs (SMP) in Ubuntu Aktivieren Mehrere CPUs (SMP) in Ubuntu


Many of today's computers have multiple CPUs. Viele der heutigen Computer verfügen über mehrere CPUs. Some are physically distinct, and others are virtual, such as hyper-threading and dual-core. Einige sind physisch voneinander getrennt, und andere sind virtuelle, wie Hyper-Threading und Dual-Core. In any case, these processors support symmetric multiprocessing (SMP) and can dramatically speed up Linux. In jedem Fall werden diese Prozessoren für symmetrisches Multiprocessing (SMP) und kann dramatisch beschleunigen Linux.

The kernel supports multiple CPUs and hyper-threading. Der Kernel unterstützt mehrere CPUs und 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. Wenn Ihr Computer hat zwei CPUs, dass beide für die Hyper-Threading, dann wird das System zu haben scheinen insgesamt vier CPUs.

Older versions of Ubuntu, such as Hoary and Breezy, had different kernels available for SMP. Ältere Versionen von Ubuntu, wie Hoary und Breezy, hatte verschiedene Kernel für SMP. To take advantage of multiple processors, you would need to install the appropriate kernel. Um von mehreren CPUs zu profitieren, würden Sie installieren müssen die entsprechenden Kernel.

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. Ohne Installation eines SMP-Kernel, Sie würden nur ein CPU auf einem SMP-System.

Dapper changed this requirement. Dapper verändert diese Anforderung. Under Dapper, all of the default kernels have SMP support enabled. Unter Dapper, die alle den Standard-Kernel mit SMP-Unterstützung aktiviert ist. 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. Die Entwickler festgestellt, dass es keine signifikanten Auswirkungen von Geschwindigkeit mit einem SMP-Kernel auf einem Nicht-SMP-System, und dieses vereinfachte die Zahl der Kernel sie für die Aufrechterhaltung.

There are a couple of ways to tell if your SMP processors are enabled in both the system hardware and kernel. Es gibt ein paar Möglichkeiten zu sagen, wenn Ihr SMP-Prozessoren in die Lage versetzt werden, sowohl das System des Kernels und der Hardware.

• /proc/cpuinfo-This file contains a list of all CPUs on the system. • / proc / cpuinfo-Diese Datei enthält eine Liste aller CPUs auf dem System.

• top-The top command shows what processes are running. • Die Top-Top-Befehl zeigt, welche Prozesse ausgeführt werden. If you run top and press 1, the header provides a list of all CPUs individually and their individual CPU loads. Wenn Sie nach oben und drücken Sie 1, die Header enthält eine Liste aller CPUs individuell und ihrer einzelnen CPU-Belastung. (This is really fun when running on a system with 32 CPUs. Make sure the terminal window is tall enough to prevent scrolling!) (Das ist wirklich lustig, wenn Sie auf einem System mit 32 CPUs. Stellen Sie sicher, dass das Terminal-Fenster ist groß genug, um zu verhindern, dass Scrollen!)

• System Monitor-The System Monitor applet can be added to the Gnome panels. • System-Monitor-Die System-Monitor-Applet können hinzugefügt werden, um die Gnome-Panels. When you click it, it shows the different CPU loads. Wenn Sie darauf klicken, es zeigt die verschiedenen CPU-Belastung.

In each of these cases, if only one CPU is listed, then you are not running SMP. In jedem dieser Fälle, wenn auch nur ein CPU aufgelistet ist, dann sind Sie nicht ausgeführt wird SMP. Multiple CPUs in the listings indicate SMP mode. Mehrere CPUs in den Auflistungen zeigen SMP-Modus.



Disabling SMP Deaktivieren von SMP
In some situations, such as application benchmarking or hardware debugging, you may want to disable SMP support. In einigen Situationen, wie zum Beispiel Anwendung Benchmarking-oder Hardware-Debugging, können Sie zum Deaktivieren der SMP-Unterstützung. 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. Dies kann mit dem Kernel-Parameter oder nosmp maxcpus = 1.If dies einen vorübergehenden Bedarf, können Sie einfach Booten des Systems, fangen Grub in der Menüebene durch Drücken von ESC, Boot-und Schreibarbeiten nosmp maxcpus = 1 an der Eingabeaufforderung ein. 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. Wenn Sie mehrere Boot-Optionen, dann kann es notwendig sein, editieren Sie die kernel Zeile und fügen Sie nosmp maxcpus = 1 zu den Kernel-Boot-Linie. Warning, some kernels do not work with nosmp, but in my experience maxcpus=1 always works. Achtung, einige Kernel funktionieren nicht mit nosmp, aber nach meiner Erfahrung maxcpus = 1 immer funktioniert.

For a longer-term solution, consider adding these boot parameters to the Grub configuration. Für eine längerfristige Lösung, diese in Erwägung ziehen, weitere Boot-Parameter an den Grub-Konfiguration.

1. As root, edit /boot/grub/menu.lst. Als root, editieren Sie / boot / grub / menu.lst.

2. Scroll down to your kernel. Blättern Sie zu Ihren Kernel.

3. Add a kernel option for disabling SMP. Fügen Sie einen Kernel-Option zum Deaktivieren von SMP. For example: kernel /boot/vmlinuz-2.6.15-26-686 root=/dev/hda1 ro splash maxcpus=1 Zum Beispiel: kernel / boot/vmlinuz-2.6.15-26-686 root = / dev/hda1 ro splash maxcpus = 1

4. Save your changes. Speichern Sie die Änderungen.

The next reboot will use your new changes. Die nächsten Neustart wird mit Ihrem neuen Änderungen. 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. Wenn Sie der Datei / boot / grub / menu.lst, sich bewusst sein, dass der Inhalt überschrieben werden könnten Sie das nächste Mal eine Aktualisierung des Kernels oder starten Sie update-grub.



SMP not working SMP nicht funktioniert
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. Wenn Sie feststellen, dass Sie nur einen aktiven CPU auf einem mehrere CPU-System, versuchen Sie es mit der Installation der ausdrücklichen SMP-Kernel: 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. Darüber hinaus gibt es nur wenige generische Debugging-Optionen und das Problem ist unwahrscheinlich, im Zusammenhang mit Ubuntu-es ist wahrscheinlich eine allgemeine Linux-Kernel Problem.

Check with the motherboard manufacturer and see if Linux supports their chipset. Erkundigen Sie sich bei den Motherboard-Hersteller und sehen, ob Linux unterstützt ihre Chipsatz. For example, I have an old dual-CPU motherboard that is not supported by Linux. Zum Beispiel, ich habe einen alten Dual-CPU-Motherboard, das nicht von Linux unterstützt wird.

Check the Linux Hardware FAQ for the motherboard or chipset. Überprüfen Sie die Linux-Hardware-FAQ für das Mainboard oder Chipsatz. This will tell you if other people managed to get it to work. Dies wird Ihnen sagen, wenn andere Menschen es geschafft, bekommen sie zu arbeiten. 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. Websites wie https: / / wiki.ubuntu.com / HardwareSupport und / http: / / www.faqs.org / docs / Linux-HOWTO / SMP-HOWTO.html sind gute Plätze zu starten.

If all else fails, post a query to any of the Linux or Ubuntu hardware forums. Wenn alles andere scheitert, eine Anfrage an eine der Linux oder Ubuntu Hardware-Foren. Maybe someone else knows a workaround. Vielleicht hat jemand anderes weiß, ein Workaround. Some good forums include http://www.ubuntuforums.org/, http://www.linuxhardware.org/, and http://www.linuxforums.org/forum/. Einige gute Foren sind http://www.ubuntuforums.org/, http://www.linuxhardware.org/, und http://www.linuxforums.org/forum/. Be sure to include details such as the make and model of the motherboard, Ubuntu version, and other peripherals. Achten Sie darauf, Details wie die Marke und Modell des Motherboards, Ubuntu-Version, und andere Peripheriegeräte. It is generally better to provide too much information when asking for help, rather than providing too little. Es ist in der Regel besser, zu viele Informationen, wenn bittet um Hilfe, anstatt zu wenig.

Unfortunately, if SMP is not enabled after installing the linux-686-smp kernel, then it probably will not work. Leider, wenn SMP nicht aktiviert ist nach der Installation des Linux-686-SMP-Kernel, dann ist es wahrscheinlich nicht funktionieren wird. But you might get lucky-if someone has a patch then you will probably need to recompile the kernel. Aber, könnten Sie Glück-wenn jemand hat einen Patch, dann könnte es nötig sein, Übersetzen Sie den Kernel.

Source of Information : Hacking Ubuntu Serious Hacks Mods and Customizations Informationsquelle: Hacking Ubuntu schweren Hacks Mods und Anpassungen Popularity: 1% Popularity: 1%


Written by magakos. Geschrieben von magakos. Read more great feeds at is source Lesen Sie mehr auf große Feeds ist Quelle WEBSITE WEBSITE
1 comment 1 Kommentar . .
Read more articles on Lesen Sie mehr Artikel über Ubuntu Linux Ubuntu Linux and und otherSoftware otherSoftware . .

Related articles Verwandte Artikel

1 comment 1 Kommentar

Read the comments left by other users below, or: Lesen Sie die Kommentare von anderen Benutzern unten, oder:

Holen Sie sich Ihre eigenen Gravatar, indem Sie gravatar.com juraj Juraj
#1 # 1 . November 15th, 2008, at 7:18 AM. . 15. November 2008, am 7.18.

Thanks for great tips. Vielen Dank für große Tipps. I had doubts about my old 2-CPU server, Ich hatte Zweifel an meiner alten 2-CPU-Server,
if the system is using them both. Wenn das System ist mit ihnen beiden. Now I know, everythig is ok. Nun weiß ich,, everythig ist ok.

Leave your comment... Lassen Sie Ihren Kommentar ...

If you want to leave your comment on this article, simply fill out the next form: Wenn Sie möchten, verlassen Sie Ihren Kommentar zu diesem Artikel, füllen Sie einfach das nächste Formular aus:




You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> . Sie können diese XHTML-Tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i > <strike> <strong>.