Skip to contentSkip to conversation

Kernel threads and SMP programming

DISCUSSION Emmanuel Fleury 2 participants 4 messages Oct 24, 2003

lore
Share & tools
lore
#0 lore raw

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

Signature · 6 lines
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:  [email protected]
#1 lore raw

Em Fri, Oct 24, 2003 at 10:28:21AM +0200, Emmanuel Fleury escreveu:

Quoted 6 lines

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

#2 lore raw
Quoted 9 lines · Arnaldo Carvalho de Melo

Em Fri, Oct 24, 2003 at 10:28:21AM +0200, Emmanuel Fleury escreveu:

Quoted 6 lines

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.

Quoted 2 lines

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 ! :)

Quoted 1 line

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

Signature · 6 lines
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:  [email protected]
#3 lore raw

Em Fri, Oct 24, 2003 at 10:55:49AM +0200, Emmanuel Fleury escreveu:

Quoted 7 lines

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