On Wed, May 05, 2010 at 02:00:17PM +0200, Benny L?fgren wrote:
> Jan Stary wrote:
>> On May 04 22:15:09, Juan Miscaro wrote:
>>> What is the current state of multiprocessing and multithreading in
>>> OpenBSD?  Also, what applications are multithreaded?  In particular,
>>> someone told me that pf is "garbage" because it is not multithreaded?
>>> What truth is there to this?  Under what kind of load would an OpenBSD
>>> firewall's performance suffer due to it being non-multithreaded?
>>
>> STFU, GTFO, and all that.
>
> Still, I think the question itself merits some discussion.

Not really.  Threads are mostly stupid, humans are mostly stupid.
Combine the two and you end up with some really really stupid software.

> If we filter out the op:s PF nonsense, the state of rthreads development  
> is relevant to several well-used software packages, the first one that  
> comes to mind being MySQL.

Which is a steaming pile of german scheisse.  A prime example as to why
threads are mostly stupid.

> I run several webservers using OpenBSD for my customers with PHP and  
> MySQL as important ingredients, and while I couldn't agree more to those  
> that would immediately say "dump MySQL, use PostgreSQL" it isn't always  
> possible to do so.

Sure that is a real live problem but no amount of code and fixes will
ever fix something as complex as mysqueel running with threads.  You are
stuck with the suck so make sure you can restart the individual pieces
easily and often.

> It is of course well known that MySQL doesn't run well (as in "as fast  
> as its potential allows") in a pthreads-environment, and yes, seven of  
> my gallant eight-core servers cores sits near idle waiting for the poor  
> MySQL process to finish up its work with the web server running rings  
> around it utilizing all cores very nicely. (Still, I use it with its  
> shortcomings, because I wouldn't trust any other os to do that kind of  
> heavily internet exposed work.)

I love the threads over multiple core argument :-)

Lets defeat caching on the cpus and fight continuously over locks!

> I'm constantly scanning the changelogs in the vain hope that some day  
> there will be a message about rthreads being promoted to be the default  
> threading model. :-)   Keep up the good work!

rthreads wont fix world hunger.  It might make shit software have less
peanuts and corn niblets in it.

Wouldn't it be adorable if people learned to program FSMs instead of
java in those fancy universities?

>
> /B
>
> -- 
> internetlabbet.se     / work:   +46 8 551 124 80      / "Words must
> Benny Lvfgren        /  mobile: +46 70 718 11 90     /   be weighed,
>                     /   fax:    +46 8 551 124 89    /    not counted."
>                    /    email:  be...@internetlabbet.se

Reply via email to