Claudia Goldbrunner wrote:
Hallo Liste Wir haben hier einen Dual Xeon Rechner stehen mit SuSE 8.1 Fuer Performance Tests (Grafik) benoetigen wir eine Moeglichkeit wie man jeder CPU einzeln explizit Prozesse zuweisen kann. Irgendjemand eine Idee ?? Gruss Claudia
PS: Bin nur Pratkikant hier und muss das fuer unseren admin recherchieren, daher bitte die Antworten so formulieren, dass auch ich als Linux Anfaenger jemanden anderen vermitteln kann ;-)
Aus der Linux SMP HOWTO vom Juli 2002: # Does Linux SMP support processor affinity? Standard kernel No and Yes. There is no way to force a process onto specific CPU's but the linux scheduler has a processor bias for each process, which tends to keep processes tied to a specific CPU. Patch Yes. Look at PSET - Processor Sets for the Linux kernel: The goal of this project is to make a source compatible and functionally equivalent version of pset (as defined by SGI - partially removed from their IRIX 6.4 kernel) for Linux. This enables users to determine which processor or set of processors a process may run on. Possible uses include forcing threads to separate processors, timings, security (a `root' only CPU?) and probably more. It is focused around the syscall sysmp(). This function takes a number of parameters that determine which function is requested. Functions include: * binding a process/thread to a specific CPU * restricting a CPU's ability to execute some processes * restricting a CPU from running at all * forcing a cpu to run _only_ one process (and its children) * getting information about a CPU's state * creating/destroying sets of processors, to which processes may be bound Linux' Kernel-Scheduler verteilt Prozesse optimal auf vorhandene Prozessoren, wenn es ein SMP-Kernel ist. Ansonsten wird nur mit einer CPU gearbeitet. Es gibt da wohl einen Patch (PSET) für den Linux Kernel um da manuell auf die Prozessoren zu verteilen. Habe keine Erfahrung damit. Folgendes ist vielleicht auch interessant: http://www.linux-magazin.de/Artikel/ausgabe/2000/12/SmpGrundlagen/SmpGrundla...