From owner-freebsd-current@FreeBSD.ORG Mon May 11 23:06:40 2015 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D108C4A7 for ; Mon, 11 May 2015 23:06:40 +0000 (UTC) Received: from mail-wg0-x22a.google.com (mail-wg0-x22a.google.com [IPv6:2a00:1450:400c:c00::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 67AF31982 for ; Mon, 11 May 2015 23:06:40 +0000 (UTC) Received: by wggj6 with SMTP id j6so7605066wgg.3 for ; Mon, 11 May 2015 16:06:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=TNFhjXHnhcUqyN2PVzODkpY6EZeXfjhxhCzY9BZfEMU=; b=NJ6oupuSxbOXDeZlT6FvT/XZJ+nvRdw78SjI/S2/4Bp0Fi+XkWKNTp9wyATOwV6kks 5SBFKnt0ARgVk80NFznnaqZd1Wnc2WM89KVYSseF3Rr8OdsL1L0e0jXUJpJZwexyONRU /9VO/I6PdGHkEvwb9wlWsoy66WgP7Ui5+9oUDDm+uHMQzjkbwvfFTJnl6Y2uH6VTIWii n9amLGs3pWjywMavUlG0iLum3iHyeSG3yaaK+vpR516uUVT+RM9eQW0B2D0+jXkVCKQb Q09sKnzmMXicWmK7VnZjIP1gZ/r7GZdk43axZdOUSsC6NgZkDb+/XSKjN9UJEbyhjU3l ThFg== X-Received: by 10.180.88.99 with SMTP id bf3mr24538368wib.75.1431385598801; Mon, 11 May 2015 16:06:38 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by mx.google.com with ESMTPSA id n1sm47042wix.0.2015.05.11.16.06.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 May 2015 16:06:37 -0700 (PDT) Sender: Baptiste Daroussin Date: Tue, 12 May 2015 01:06:35 +0200 From: Baptiste Daroussin To: current@FreeBSD.org Subject: Increase BUFSIZ to 8192 Message-ID: <20150511230635.GA46991@ivaldir.etoilebsd.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k+w/mQv8wyuph6w0" Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 May 2015 23:06:40 -0000 --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--