Re: Is BUFSIZ too small ?

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Mon, 19 Jan 2004 22:13:37 +0100
In message <200401192111.i0JLBYVk004060_at_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_at_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 :-)

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk_at_FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
Received on Mon Jan 19 2004 - 12:13:45 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:39 UTC