login
Header Space

 
 

Re: revivesa status 2008/07/09

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Mindaugas Rasiukevicius <rmind@...>
Cc: Jason Thorpe <thorpej@...>, <gathorpe79@...>, <tech-kern@...>
Date: Thursday, July 24, 2008 - 12:53 pm

On Thu, Jul 24, 2008 at 11:07:36AM +0100, Mindaugas Rasiukevicius wrote:
ly,
..

That would be the exact same LWP usage as a 1:1 threading model would=20
give. The SA process spends the time creating the LWPs between blocking=20
events while the 1:1 process created all of the same LWPs at initial=20
thread creation time.

Yes, the SA process also has an extra LWP sitting around per VP, but that=
=20
is a constant so it really only should count against process startup.

One other thing to consider is how long different context switches take.=20
The two important ones are intra-process-same-space switches (inter-LWP in=
=20
the kernel and inter-thread in SA userland) and user-kernel switches. When=
=20
I was starting the Wasabi iSCSI target, I asked around before we used (SA)=
=20
pthreads to implement this. I asked a number of NetBSD threading folks=20
about this.

The answer I was given was that user-kernel switches are NOTABLY more=20
expensive. Like 10x. Their numbers, not mine. So while SA is adding extra=
=20
steps, they are steps that aren't the most expensive thing around.

What I don't understand, though, is why we're discussing this issue like=20
this. I don't see what the NetBSD kernel loses by having both 1:1 AND SA=20
threading support. While the SA code is a fresh port, it is a fresh port=20
of the NetBSD 4 code. So it actually is something we're familiar with as a=
=20
project. People on this list have shown that SA does better on some work=20
loads, and other people have shown (quite spectacularly) that 1:1 performs=
=20
stunningly.

Yes, we had a nasty discussion when 1:1 was brought into current. But=20
looking back, I think most of the nastiness was due to the fact that it=20
was presented as an either-or proposition. We now have an entirely=20
differnt case. Re-adding SA does NOT mean losing 1:1.

Take care,

Bill
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
revivesa status, Bill Stouder-Studenmund, (Tue Jul 1, 7:29 pm)
Re: revivesa status 2008/07/09, Bill Stouder-Studenmund, (Thu Jul 10, 2:31 am)
Re: revivesa status 2008/07/09, David Holland, (Sat Jul 12, 3:28 pm)
Re: revivesa status 2008/07/09, Andy Shevchenko, (Thu Jul 10, 3:28 am)
Re: revivesa status 2008/07/09, Bill Stouder-Studenmund, (Thu Jul 10, 2:39 pm)
Re: revivesa status 2008/07/09, Andrew Doran, (Fri Jul 11, 8:47 am)
Re: revivesa status 2008/07/09, Manuel Bouyer, (Fri Jul 11, 3:30 pm)
Re: revivesa status 2008/07/09, Jason Thorpe, (Wed Jul 23, 6:39 pm)
Re: revivesa status 2008/07/09, Havard Eidnes, (Thu Jul 24, 6:31 am)
Re: revivesa status 2008/07/09, Andrew Doran, (Fri Jul 25, 3:19 am)
Re: revivesa status 2008/07/09, Jason Thorpe, (Thu Jul 24, 12:19 pm)
Re: revivesa status 2008/07/09, Havard Eidnes, (Thu Jul 24, 5:09 pm)
Re: revivesa status 2008/07/09, David Holland, (Fri Jul 25, 11:45 am)
Re: revivesa status 2008/07/09, Antti Kantee, (Thu Jul 24, 12:51 pm)
Re: revivesa status 2008/07/09, Jason Thorpe, (Thu Jul 24, 1:28 pm)
Re: revivesa status 2008/07/09, SODA Noriyuki, (Fri Jul 25, 1:54 am)
Re: revivesa status 2008/07/09, Jason Thorpe, (Mon Jul 28, 11:35 pm)
Re: revivesa status 2008/07/09, SODA Noriyuki, (Mon Jul 28, 11:58 pm)
Re: revivesa status 2008/07/09, Andrew Doran, (Fri Jul 25, 3:40 am)
Re: revivesa status 2008/07/09, SODA Noriyuki, (Fri Jul 25, 4:37 am)
Re: revivesa status 2008/07/09, Jason Thorpe, (Mon Jul 28, 11:30 pm)
Re: revivesa status 2008/07/09, Eric Haszlakiewicz, (Sat Jul 12, 2:38 pm)
Re: revivesa status 2008/07/09, Tonnerre Lombard, (Sun Jul 13, 4:03 am)
Re: revivesa status 2008/07/09, Thor Lancelot Simon, (Fri Jul 11, 4:28 pm)
Re: revivesa status 2008/07/09, Andrew Doran, (Thu Jul 24, 4:35 am)
Re: revivesa status 2008/07/09, Jason Thorpe, (Wed Jul 23, 6:41 pm)
Re: revivesa status 2008/07/09, Mindaugas Rasiukevicius, (Sat Jul 12, 6:41 am)
Re: revivesa status 2008/07/09, Bill Stouder-Studenmund, (Sun Jul 13, 4:12 pm)
Re: revivesa status 2008/07/09, Bill Stouder-Studenmund, (Fri Jul 11, 2:13 pm)
Re: revivesa status 2008/07/09, Mindaugas Rasiukevicius, (Fri Jul 11, 12:18 pm)
Re: revivesa status 2008/07/09, Gary Thorpe, (Sat Jul 12, 1:07 pm)
Re: revivesa status 2008/07/09, Andrew Doran, (Thu Jul 24, 4:26 am)
Re: revivesa status 2008/07/09, Jason Thorpe, (Wed Jul 23, 6:49 pm)
Re: revivesa status 2008/07/09, Mindaugas Rasiukevicius, (Thu Jul 24, 6:07 am)
Re: revivesa status 2008/07/09, Bill Stouder-Studenmund, (Thu Jul 24, 12:53 pm)
Re: revivesa status 2008/07/09, Mindaugas Rasiukevicius, (Thu Jul 24, 5:57 pm)
Re: revivesa status 2008/07/09, Alan Barrett, (Fri Jul 25, 12:10 pm)
Re: revivesa status 2008/07/09, Havard Eidnes, (Fri Jul 25, 8:46 am)
Re: revivesa status 2008/07/09, Dieter Baron, (Fri Jul 25, 9:14 am)
Re: revivesa status 2008/07/09, Bill Stouder-Studenmund, (Fri Jul 25, 12:37 am)
Re: revivesa status 2008/07/09, Matthew Mondor, (Mon Jul 28, 2:39 am)
Re: revivesa status 2008/07/09, SODA Noriyuki, (Wed Jul 23, 9:49 pm)
Re: revivesa status 2008/07/09, SODA Noriyuki, (Wed Jul 23, 9:52 pm)
Re: revivesa status 2008/07/09, Jason Thorpe, (Thu Jul 24, 12:25 pm)
Re: revivesa status 2008/07/09, SODA Noriyuki, (Thu Jul 24, 1:39 pm)
Re: revivesa status 2008/07/09, Bill Stouder-Studenmund, (Fri Jul 11, 3:13 pm)
Re: revivesa status 2008/07/09, David Brownlee, (Fri Jul 11, 9:04 am)
Re: revivesa status 2008/07/09, Aleksey Cheusov, (Mon Jul 14, 4:49 pm)
Re: revivesa status 2008/07/09, Thor Lancelot Simon, (Mon Jul 14, 7:29 pm)
Re: revivesa status 2008/07/09, Andrew Doran, (Fri Jul 11, 7:25 pm)
Re: revivesa status 2008/07/09, Bill Stouder-Studenmund, (Fri Jul 11, 9:24 pm)
re: revivesa status 2008/07/09 , matthew green, (Fri Jul 11, 7:40 pm)
Re: revivesa status 2008/07/09, Andrew Doran, (Thu Jul 24, 4:29 am)
Re: revivesa status 2008/07/09, Jason Thorpe, (Thu Jul 24, 12:24 pm)
speck-geostationary