Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Aug 1998 00:27:23 -0700
From:      David Greenman <dg@root.com>
To:        Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Cc:        net@FreeBSD.ORG
Subject:   Re: Next big network patch: specialized sosend for TCP 
Message-ID:  <199808270727.AAA05421@implode.root.com>
In-Reply-To: Your message of "Wed, 26 Aug 1998 21:55:19 EDT." <199808270155.VAA07365@khavrinen.lcs.mit.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
>Here's the next patch that's going into the TCP stack.  I am running
>this right now, so I'm certain it's not completely bogus, but have not
>stress-tested it as yet.  It does appear to be somewhat faster (having
>eliminated about a dozen branches), but -current is a very hostile
>environment for microbenchmarks of the sort I would usually use.
>
>Once again, any comments would be appreciated.
...
> 
> /*
>@@ -786,5 +791,230 @@
> 			tp->t_timer[TCPT_2MSL] = tcp_maxidle;
> 	}
> 	return (tp);
>+}
>+
>+#include <sys/malloc.h>
>+#include <sys/proc.h>
>+#include <sys/resource.h>
>+#include <sys/resourcevar.h>
>+#include <sys/uio.h>
>+
>+#define	SBLOCKWAIT(f)	(((f) & MSG_DONTWAIT) ? M_NOWAIT : M_WAITOK)

   #include's don't belong in the middle of a file.

-DG

David Greenman
Co-founder/Principal Architect, The FreeBSD Project

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808270727.AAA05421>