Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jan 2004 13:02:16 +0200
From:      Ian Freislich <if@hetzner.co.za>
To:        "Poul-Henning Kamp" <phk@phk.freebsd.dk>
Cc:        current@freebsd.org
Subject:   Re: Is BUFSIZ too small ? 
Message-ID:  <E1AjcbI-00050I-00@hetzner.co.za>
In-Reply-To: Your message of "Mon, 19 Jan 2004 22:13:37 %2B0100." <98907.1074546817@critter.freebsd.dk> 

next in thread | previous in thread | raw e-mail | index | archive | help
"Poul-Henning Kamp" wrote:
> In message <200401192111.i0JLBYVk004060@apollo.backplane.com>, Matthew Dillon
 w
> rites:
> >
> >:I noticed that we still have BUFSIZ in stdio.h defined to only 1024,
> >:and wonder if that should be increased these days.
> >:
> >:Is there anybody who could devise and run some benchmarks to find
> >:out what effect it would have to increase it to for instance 4096 ?
> >:
> >:-- 
> >:Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
> >:phk@FreeBSD.ORG         | TCP/IP since RFC 956
> >
> >    Very few programs use BUFSIZ for the actual I/O ops [...]
> 
> I share many of your doubts, but I would still like to see some
> benchmarks :-)

Perhaps ftp is one of those things that uses BUFSIZ for the actual
I/O ops.  All of it's reads and writes if you truss it are 1024
bytes which impacts its performance (here at least).

--
Ian Freislich



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1AjcbI-00050I-00>