From owner-freebsd-net Fri Sep 8 22:39:53 2000 Delivered-To: freebsd-net@freebsd.org Received: from mail.m.iinet.net.au (opera3.iinet.net.au [203.59.24.51]) by hub.freebsd.org (Postfix) with SMTP id D9B8437B50D for ; Fri, 8 Sep 2000 22:39:48 -0700 (PDT) Received: (qmail 2497 invoked by uid 666); 9 Sep 2000 05:35:20 -0000 Received: from reggae-20-230.nv.iinet.net.au (HELO jules.elischer.org) (203.59.85.230) by mail.m.iinet.net.au with SMTP; 9 Sep 2000 05:35:20 -0000 Message-ID: <39B9CC11.41C67EA6@elischer.org> Date: Fri, 08 Sep 2000 22:35:13 -0700 From: Julian Elischer X-Mailer: Mozilla 3.04Gold (X11; I; FreeBSD 5.0-CURRENT i386) MIME-Version: 1.0 To: Alfred Perlstein Cc: net@freebsd.org, chat@freebsd.org Subject: Re: threading tcp/ip is fun. References: <20000908154320.J12231@fw.wintelcom.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Alfred Perlstein wrote: > > http://www.wintelcom.net/~bright/thrsock.diff > > Should refresh every two minutes as I progress through the tcp/ip > code in an attempt to thread it. > > If you have suggestions or works in progress please let me know. There is a lot of use of "atomic_ad_long()" nearly always with an increment of '1'. Would there be any advantage of having an "atomic_increment_long()"? (a_incl()) with the introduction of heavier weight operations at low level (e.g."atomic_add_long(a , 1);" vs "a += 1;" the optimal way if unrolling loops and threading decision trees may change.. e.g. if (XXX) a_incl(a); if (YYY) a_incl(b); if (ZZZ) a_incl(c); might be slower than: small_lock() if (XXX)a+=1; if (YYY)b+=1; if (ZZZ)c+=1; drop_small_lock(); (in this case not likely, but it's something to keep in mind I guess.) > > -- > -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] > "I have the heart of a child; I keep it in a jar on my desk." > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000 ---> X_.---._/ presently in: Perth v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message