Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CPUs abschalten?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
oma
Guru
Guru


Joined: 17 Feb 2004
Posts: 302
Location: /home/markus/heiligenhaus

PostPosted: Tue Aug 01, 2006 7:27 am    Post subject: CPUs abschalten? Reply with quote

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
View user's profile Send private message
schmutzfinger
Veteran
Veteran


Joined: 26 Oct 2003
Posts: 1287
Location: Dresden/Germany

PostPosted: Tue Aug 01, 2006 12:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
Totenmond
n00b
n00b


Joined: 27 Mar 2006
Posts: 15

PostPosted: Tue Aug 01, 2006 1:04 pm    Post subject: Reply with quote

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? :)
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Tue Aug 01, 2006 1:08 pm    Post subject: Reply with quote

Totenmond wrote:
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? :)

Aber dummerweise zwei physikalische, er möchte aber eine physikalische mit HT aktiv haben ;)

@oma:
Evtl. reicht dir die Variante bestimmte Prozesse fix an eine CPU zu binden?
Kuckst du
http://www.cyberciti.biz/tips/setting-processor-affinity-certain-task-or-process.html
http://www.linuxjournal.com/article/6799
http://www-128.ibm.com/developerworks/linux/library/l-affinity.html
_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
Totenmond
n00b
n00b


Joined: 27 Mar 2006
Posts: 15

PostPosted: Tue Aug 01, 2006 1:41 pm    Post subject: Reply with quote

ganz dumm: temporär eine CPU ausbauen?
Back to top
View user's profile Send private message
andix
Apprentice
Apprentice


Joined: 10 Jul 2004
Posts: 263
Location: Eisenstadt, Austria

PostPosted: Tue Aug 01, 2006 4:01 pm    Post subject: Reply with quote

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... :roll:
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5331

PostPosted: Tue Aug 01, 2006 4:09 pm    Post subject: Reply with quote

ich glaube für CPU-Hotswapping muss auch das MB da mit spielen ;)
_________________
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
View user's profile Send private message
Qubit
Tux's lil' helper
Tux's lil' helper


Joined: 23 Sep 2002
Posts: 136
Location: /dev/urandom

PostPosted: Tue Aug 01, 2006 7:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
andix
Apprentice
Apprentice


Joined: 10 Jul 2004
Posts: 263
Location: Eisenstadt, Austria

PostPosted: Tue Aug 01, 2006 8:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum