On Tue, Jun 24, 2014 at 04:14:05PM -0400, Mike Tancsa wrote:
> But if I do
> # cat /dev/zero > /nfsbackup/test
>
> Its down to 25Mb/s
>
> Now, if this were consistent across all my boxes, I would not be too
> interested.
>
> Why is cat with a redirect so much slower, and why slower just on some
> boxes and not others ?!?!
cat(1) tries to determine optimal I/O block size by evaluating
st_blksize of its stdout. Try to run:
ktrace cat /dev/zero > /nfsbackup/test
And then use kdump and see what block size does cat(1) use
while writing to stdout?
Eugene Grosbein
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"