Subject: Re: NEWPIPE: benchmark performance diff microtime(9) vs. =
To: Jaromir Dolecek <email@example.com>
From: Alfred Perlstein <firstname.lastname@example.org>
Date: 10/23/2001 20:27:10
* Jaromir Dolecek <email@example.com> [011023 17:36] wrote:
> Index: sys/pipe.h
> RCS file: /cvsroot/syssrc/sys/sys/pipe.h,v
> retrieving revision 1.7
> diff -u -p -r1.7 pipe.h
> --- sys/pipe.h 2001/07/23 19:34:36 1.7
> +++ sys/pipe.h 2001/10/23 22:34:35
> @@ -65,7 +65,7 @@
> #if defined(__FreeBSD__)
> #define PIPE_MINDIRECT 8192
> #elif defined(__NetBSD__)
> -#define PIPE_MINDIRECT PAGE_SIZE
> +#define PIPE_MINDIRECT (2*PAGE_SIZE)
What about arches that have 16k pages or something? I know the
8192 is ugly, but it sort of makes sense as a hardcoded value
rather than using some arbitrary multiple of PAGE_SIZE.
Btw, if you wouldn't mind sharing, what would make this faster
than FreeBSD's version? The optimized timestamp? Or is there
something else FreeBSD can learn from your implementation?
-Alfred Perlstein [firstname.lastname@example.org]
'Instead of asking why a piece of software is using "1970s technology,"
start asking why software is ignoring 30 years of accumulated wisdom.'