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: "Simon 'corecode' Schubert" <corecode@xxxxxxxxxxxx>
Date: Thu, 07 Jun 2007 19:16:34 +0200

Matthew Dillon wrote:
: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)
    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.

Do you think it would be beneficial to make the sockbuf access lockless as well? Beneficial as in: better throughput for the receiving application (maybe even overall? imagine the tcp thread being blocked because of readers on other CPUs)


cheers
 simon

--
Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low €€€ NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \

Attachment: signature.asc
Description: OpenPGP digital signature



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