Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 May 2015 01:06:35 +0200
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        current@FreeBSD.org
Subject:   Increase BUFSIZ to 8192
Message-ID:  <20150511230635.GA46991@ivaldir.etoilebsd.net>

next in thread | raw e-mail | index | archive | help

--k+w/mQv8wyuph6w0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

I would like to change the default value of BUFSIZ to 8192.

After testing various applications that uses BUFSIZ like changing it in libmd I
can often see performance improvements:

For example with md5(1):
Current BUFSIZ (1024)
0.13 real         0.04 user         0.09 sys
New BUFSIZ (8192)
0.08 real         0.04 user         0.03 sys

sha256(1):
Before:
0.44 real         0.39 user         0.04 sys
After:
0.37 real         0.35 user         0.01 sys

This is done on a small amd64 Lenovo S20 laptop

Review available here:
https://reviews.freebsd.org/D2515

Any opinion?
Best regards,
Bapt

--k+w/mQv8wyuph6w0
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlVRNfsACgkQ8kTtMUmk6Ews+wCgkk/8OWO/DVpvzFgpPqgwhxaj
7dkAoJQw0rRLbnpNL3gdr7BprYWnZOnH
=yWcN
-----END PGP SIGNATURE-----

--k+w/mQv8wyuph6w0--



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