DragonFly kernel List (threaded) for 2007-06
DragonFly BSD
DragonFly kernel List (threaded) for 2007-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: SMP TCP userland access


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 7 Jun 2007 10:00:10 -0700 (PDT)

:Hey,
:
:while talking to a colleague this came up:
:
:how does userland access to TCP connections play together with SMP and
:TCP threads?  Is there still a lock?  Would it be beneficial if we lose
:this synchronization and do it more DragonFly-ish?  I.e. will a
:receiving process benefit from a different implementation without locks
:(I've seen sblock() calls, so I guess it is still locked, dunno how this
:plays into the TCP threads thing)
:
:cheers
:  simon

    The sockbuf is access synchronously (aka reading and writing).
    Everything else is accessed asynchronously via a message from the user
    process context to the protocol thread context.  For example,
    listen(), connect(), accept() ,etc... those are actually all messaged.

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]