Re: CPU attachent and detachment in a running Linux system

2000-12-21 Thread Heiko . Carstens
Hi, >> That's a good point and it would probably work for attachment of cpus, but >> it won't work for detachment because there are some data structures that >> need to be updated if a cpu gets detached. For example it would be nice >> [...] >> So at least for detaching it would make sense to

Re: CPU attachent and detachment in a running Linux system

2000-12-20 Thread Anton Blanchard
> That's a good point and it would probably work for attachment of cpus, but > it won't work for detachment because there are some data structures that > need to be updated if a cpu gets detached. For example it would be nice > to flush the per-cpu cache of the detached cpu in the slabcache. The

Re: CPU attachent and detachment in a running Linux system

2000-12-18 Thread ferret
On Mon, 18 Dec 2000 [EMAIL PROTECTED] wrote: > Hi, > > >> I still wonder what you and other people think about the idea of an > >> interface where the parts of the kernel with per-cpu dependencies should > >> register two functions... > >Why not compile kernel with structeres big enough for 32

Re: CPU attachent and detachment in a running Linux system

2000-12-17 Thread Heiko . Carstens
Hi, >> I still wonder what you and other people think about the idea of an >> interface where the parts of the kernel with per-cpu dependencies should >> register two functions... >Why not compile kernel with structeres big enough for 32 processors, >and then just add CPUs up to the limit wit

Re: CPU attachent and detachment in a running Linux system

2000-12-16 Thread Pavel Machek
Hi! > I still wonder what you and other people think about the idea of an > interface where the parts of the kernel with per-cpu dependencies should > register two functions... Why not compile kernel with structeres big enough for 32 processors, and then just add CPUs up to the limit without cha

Re: CPU attachent and detachment in a running Linux system

2000-12-12 Thread Alan Cox
> thanks for your input but I think it won't work this way because the value > of smp_num_cpus needs to be increased by one right before a new cpu gets > started. Then one can imagine the following situation at one of the cpus > that needs to be captured: This is fine providing the code is aware

Re: CPU attachent and detachment in a running Linux system

2000-12-11 Thread Heiko . Carstens
>> sigp. To synchronize n CPUs one can create n kernel threads and give >> them a high priority to make sure they will be executed soon (e.g. by >> setting p->policy to SCHED_RR and p->rt_priority to a very high >> value). As soon as all CPUs are in synchronized state (with >> interrupts disab

Re: CPU attachent and detachment in a running Linux system

2000-12-11 Thread J . A . Magallon
On Mon, 11 Dec 2000 15:03:47 [EMAIL PROTECTED] wrote: > > Recently I had some thoughts on how to realise CPU attachment and > detachment in a running Linux system (based on the 2.4 kernel). > > CPU attachment and detachment would make sense on an S/390 when there > are several Linuxes running,

Re: CPU attachent and detachment in a running Linux system

2000-12-11 Thread Per Jessen
<[EMAIL PROTECTED]> >Sent: Monday, December 11, 2000 9:03 AM >Subject: CPU attachent and detachment in a running Linux system [snip] - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/

Re: CPU attachent and detachment in a running Linux system

2000-12-11 Thread Matthew D. Pitts
Heiko, If I'm not mistaken, this sort of thing has been done by the beowulf folks. Matthew D. Pitts [EMAIL PROTECTED] - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 11, 2000 9:03 AM Subject: CPU attachent and detachment i

CPU attachent and detachment in a running Linux system

2000-12-11 Thread Heiko . Carstens
Recently I had some thoughts on how to realise CPU attachment and detachment in a running Linux system (based on the 2.4 kernel). CPU attachment and detachment would make sense on an S/390 when there are several Linuxes running, each in its own logical partition. This way a CPU could be taken