mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Kernel threads and SMP programming
@ 2003-10-24  8:28 Emmanuel Fleury
  2003-10-24  8:48 ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 4+ messages in thread
From: Emmanuel Fleury @ 2003-10-24  8:28 UTC (permalink / raw)
  To: linux-kernel

Hi,

I have been googling a bit and looking on kernelnewbies, but I didn't
find any documentation on how to code kernel-space programs for SMP...

Can somebody give me a hint ?

Thanks
-- 
Emmanuel Fleury

Computer Science Department, |  Office: B1-201
Aalborg University,          |  Phone:  +45 96 35 72 23
Fredriks Bajersvej 7E,       |  Fax:    +45 98 15 98 89
9220 Aalborg East, Denmark   |  Email:  fleury@cs.auc.dk


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Kernel threads and SMP programming
  2003-10-24  8:28 Kernel threads and SMP programming Emmanuel Fleury
@ 2003-10-24  8:48 ` Arnaldo Carvalho de Melo
  2003-10-24  8:55   ` Emmanuel Fleury
  0 siblings, 1 reply; 4+ messages in thread
From: Arnaldo Carvalho de Melo @ 2003-10-24  8:48 UTC (permalink / raw)
  To: Emmanuel Fleury; +Cc: linux-kernel

Em Fri, Oct 24, 2003 at 10:28:21AM +0200, Emmanuel Fleury escreveu:
> Hi,
> 
> I have been googling a bit and looking on kernelnewbies, but I didn't
> find any documentation on how to code kernel-space programs for SMP...
> 
> Can somebody give me a hint ?

http://www.linux-mag.com/2000-12/gear_01.html

Perhaps outdated, haven't checked, but this is an article by Alessandro
Rubini with the suggestive title "The Design of an In-Kernel Server", so
what was you using as keywords on google? :-)

- Arnaldo

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Kernel threads and SMP programming
  2003-10-24  8:48 ` Arnaldo Carvalho de Melo
@ 2003-10-24  8:55   ` Emmanuel Fleury
  2003-10-24  9:01     ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 4+ messages in thread
From: Emmanuel Fleury @ 2003-10-24  8:55 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo; +Cc: linux-kernel

On Fri, 2003-10-24 at 10:48, Arnaldo Carvalho de Melo wrote:
> Em Fri, Oct 24, 2003 at 10:28:21AM +0200, Emmanuel Fleury escreveu:
> > Hi,
> > 
> > I have been googling a bit and looking on kernelnewbies, but I didn't
> > find any documentation on how to code kernel-space programs for SMP...
> > 
> > Can somebody give me a hint ?
> 
> http://www.linux-mag.com/2000-12/gear_01.html

Thanks.

> Perhaps outdated, haven't checked, but this is an article by Alessandro
> Rubini with the suggestive title "The Design of an In-Kernel Server", so

Hum, I should have guessed ! :)

> what was you using as keywords on google? :-)

I was stupidly using: SMP kernel thread coding

The truth is that I have a piece of code running in the kernel which is
performing OK when running on a mono-processor and which is just a
disaster on SMP... (about 10 time slower).

I'm trying to understand the reason of this, so even out dated
documentation is welcome (the concept can be more important than the
details).

Regards
-- 
Emmanuel Fleury

Computer Science Department, |  Office: B1-201
Aalborg University,          |  Phone:  +45 96 35 72 23
Fredriks Bajersvej 7E,       |  Fax:    +45 98 15 98 89
9220 Aalborg East, Denmark   |  Email:  fleury@cs.auc.dk


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Kernel threads and SMP programming
  2003-10-24  8:55   ` Emmanuel Fleury
@ 2003-10-24  9:01     ` Arnaldo Carvalho de Melo
  0 siblings, 0 replies; 4+ messages in thread
From: Arnaldo Carvalho de Melo @ 2003-10-24  9:01 UTC (permalink / raw)
  To: Emmanuel Fleury; +Cc: linux-kernel

Em Fri, Oct 24, 2003 at 10:55:49AM +0200, Emmanuel Fleury escreveu:
> The truth is that I have a piece of code running in the kernel which is
> performing OK when running on a mono-processor and which is just a
> disaster on SMP... (about 10 time slower).
> 
> I'm trying to understand the reason of this, so even out dated
> documentation is welcome (the concept can be more important than the
> details).

So take a look also at:

http://lwn.net/Articles/driver-porting/

This is a series of very good articles by Jonathan Corbet, some related
to SMP.

- Arnaldo

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-10-24  9:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-24  8:28 Kernel threads and SMP programming Emmanuel Fleury
2003-10-24  8:48 ` Arnaldo Carvalho de Melo
2003-10-24  8:55   ` Emmanuel Fleury
2003-10-24  9:01     ` Arnaldo Carvalho de Melo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome