View previous topic :: View next topic |
Author |
Message |
oma Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Monkey Island/Monkey_Island_-_Guybrush3.gif)
Joined: 17 Feb 2004 Posts: 302 Location: /home/markus/heiligenhaus
|
Posted: Tue Aug 01, 2006 7:27 am Post subject: CPUs abschalten? |
|
|
Hallo Leute,
weiß einer ob ich bei Gentoo CPUs abschalten kann? Ich habe hier eine Kiste mit 2xXeon, wird also als 4 CPU Maschine im /proc/cpuinfo angezeigt, und ich möchte gerne zu testzwecken eine physikalische CPU deaktivieren sodaß ich im /proc/cpuinfo nur 2 CPUs angezeigt bekomme. Im Bios kann ich das leider nicht und einen "nicht-SMP Kernel" laden ist auch nicht das richtige.
Hat da jemand eine Idee ob das geht und welches packet/Kernelflags ich brauche?
Thanks4Input
Oma _________________ "...ich bin Guybrush Threepwood - ein mächtiger Pirat!" |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
schmutzfinger Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/12992294553fc7612a902c7.jpg)
Joined: 26 Oct 2003 Posts: 1287 Location: Dresden/Germany
|
Posted: Tue Aug 01, 2006 12:59 pm Post subject: |
|
|
Also aus Sicht des Betriebssystems ist das nicht ganz einfach. Da müssen alle Prozesse von der jeweilgen CPU auf eine andere migriert werden. Also wenn ich das richtig verstehe willst du das online machen, ob Linux das kann weiss ich nicht. Der "nicht-SMP-Kern" wäre ne Lösung funktioniert allerdings nur mit reboot. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Totenmond n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 27 Mar 2006 Posts: 15
|
Posted: Tue Aug 01, 2006 1:04 pm Post subject: |
|
|
schmutzfinger wrote: | Der "nicht-SMP-Kern" wäre ne Lösung funktioniert allerdings nur mit reboot. |
Wäre er nicht, der Herr möchte ja gerne 2 Cpus und dafür wird der SMP Kernel benötigt.
Anderer Lösungsvorschlag: Du hast 2x Xeon, das gibt 4 CPUs nach deiner Aussage, was bedeuten würde dass diese Xeons Hyperthreading benutzen. Schaltest du das Hyperthreading im Bios ab, müssten sich daraus doch 2 CPUs ergeben richtig? ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
think4urs11 Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/8534934054bad29b51e5fa.jpg)
Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Totenmond n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 27 Mar 2006 Posts: 15
|
Posted: Tue Aug 01, 2006 1:41 pm Post subject: |
|
|
ganz dumm: temporär eine CPU ausbauen? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
andix Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/12698962564496c63fea4a2.png)
Joined: 10 Jul 2004 Posts: 263 Location: Eisenstadt, Austria
|
Posted: Tue Aug 01, 2006 4:01 pm Post subject: |
|
|
Der Kernel kann doch CPU-Hot-Swapping, also sollte das doch irgendwie möglich sein eine CPU zu deaktivieren, weil sonst könnte man sie nicht rausnehmen.
Allerdings habe ich mich noch nicht damit beschäftigt... ![Rolling Eyes :roll:](images/smiles/icon_rolleyes.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
firefly Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
Joined: 31 Oct 2002 Posts: 5331
|
Posted: Tue Aug 01, 2006 4:09 pm Post subject: |
|
|
ich glaube für CPU-Hotswapping muss auch das MB da mit spielen ![Wink ;)](images/smiles/icon_wink.gif) _________________ Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Qubit Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 23 Sep 2002 Posts: 136 Location: /dev/urandom
|
Posted: Tue Aug 01, 2006 7:11 pm Post subject: |
|
|
Wie wär es mit den kernel-paramtern - >
nosmp [SMP] Tells an SMP kernel to act as a UP kernel.
maxcpus= [SMP] Maximum number of processors that an SMP kernel
should make use of
/usr/src/linux/Documentation/kernel-parameters.txt
Gruß Daniel. _________________ ©Qubit |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
andix Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/12698962564496c63fea4a2.png)
Joined: 10 Jul 2004 Posts: 263 Location: Eisenstadt, Austria
|
Posted: Tue Aug 01, 2006 8:21 pm Post subject: |
|
|
Ich hab irgendwo einmal gelesen, dass fast jedes Board es erlaubt CPUs zu entfernen, hinzufügen wird wohl nur bei expliziter Unterstützung funktionieren. Ich habe aber gemeint wenn der Kernel Hotswapping unterstützt kann er auch einzelne CPUs zu- und wegschalten. Ich denke das wäre ein Ansatz. Durch ein bisschen Googeln habe ich leider nichts brauchbares dazu gefunden.
@oma: Probier es doch einmal mit maxcpus, wie Quibit geschrieben hat. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|