SMP TCP userland access

Matthew Dillon dillon at apollo.backplane.com
Thu Jun 7 10:03:10 PDT 2007


: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 at backplane.com>





More information about the Kernel mailing list