DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 27th July 2010
rohitk rohitk is offline
New User
 
Join Date: Jul 2010
Location: India
Posts: 3
Default OpenBSD 4.7 Kernel threads support

Hi All,

I want to build a new OpenBSD kernel image that has support of more than 100 kernel threads to test system performance with this support, against OpenBSD kernel than has support of few kernel threads. So, I want to know how can I tune kernel thread parameter or flag (using either sysctl or ulimit or something else) to add maximum kernel thread support?

Any guidance would be really helpful.
Reply With Quote
  #2   (View Single Post)  
Old 27th July 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,052
Default

AFAIK, threads in OpenBSD are not kernel managed, they are handled by a userland library. See pthreads(3). Source code to the library can be found in src/lib/libpthread/.
Reply With Quote
  #3   (View Single Post)  
Old 27th July 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,052
Default

Oh, before you invest a great deal of time and effort in threading technologies, you may want to review some of the more enlightening and interesting responses to the initial post in the misc@ thread that begins here:

http://marc.info/?l=openbsd-misc&m=127302600522776&w=2
Reply With Quote
  #4   (View Single Post)  
Old 27th July 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,052
Default

Just one more clarification. Rthreads in OpenBSD is entirely experimental. It requires a custom kernel, and a replacement of the libpthread library, several unique patches, and AFAIK, has not been touched since 2008.
Reply With Quote
  #5   (View Single Post)  
Old 27th July 2010
rohitk rohitk is offline
New User
 
Join Date: Jul 2010
Location: India
Posts: 3
Default

Thanks jggimi for your response.

Actually I already have some idea about that that threads are handles by userland libraries like pthread(POSIX), but my requirement is such that is some what similar to linux kernel threads which can be tuned thru proc as max-threads. So I need some solution on the similar line.

But Rthreads as you said, I can explore more and find apply some kernel patches so that those will be useful somwhow.
Reply With Quote
  #6   (View Single Post)  
Old 27th July 2010
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

I'm afraid you are using the wrong OS if multithreading performance is your numero unno concern. It's just one of those technologies that hell will freeze over before OpenBSD makes a huge dive towards it. Look towards multiple processes where possible in unix systems.

Personally I like threads in concept, not in scattershot practice.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #7   (View Single Post)  
Old 28th July 2010
rohitk rohitk is offline
New User
 
Join Date: Jul 2010
Location: India
Posts: 3
Default

Multi processes can be changes dynamically in openbsd and i have tested with that change already, but didn't get much performance gain, so looking into some multithreading sort of solution that would be useful. I have some idea that there is one kernel variable for threading in openbsd which can be set thru but it was long time back when i did that,so won't that actually that's why exploring forums to get to know about that..[Hoping to remember that soon...][/Hoping to remember that soon...]
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenBSD OpenBSD kernel internals ocicat News 0 28th June 2010 06:59 PM
OpenBSD Call for testing: pcc and the OpenBSD kernel J65nko News 1 29th December 2009 05:29 PM
OpenBSD OpenBSD Reliability Fix: kernel NULL pointer dereference in getsockopt() J65nko News 0 28th October 2009 11:56 PM
disappearing threads crayoxide Feedback and Suggestions 9 13th August 2008 01:07 AM
Does OpenBSD support WPA? Dazhelpwiz OpenBSD General 3 25th May 2008 01:26 AM


All times are GMT. The time now is 01:09 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick