From owner-freebsd-hackers@freebsd.org Tue Jan 7 21:13:03 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BDCAC1F2CB1 for ; Tue, 7 Jan 2020 21:13:03 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: from puchar.net (puchar.net [194.1.144.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47slTV3stbz4dhf for ; Tue, 7 Jan 2020 21:13:02 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.15.2/8.15.2) with ESMTPS id 007LCxeD021660 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 7 Jan 2020 22:12:59 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=puchar.net; s=default; t=1578431579; bh=3dNcb03G+NJgbDk9j+0Pyy/0Xle9s4s4Bj22htgaPWI=; h=Date:From:To:Subject; b=kkOnnrlRamOtz5D4eY46IoFwgK8DyLpO6GMfGL6rGOFrWa+QgigT/+8nT733gghAb reYQO9JiXkvAu6PYMeQtLXrO2SDD31N3a5jmpZ7TizH09QrbQK1iVF2cgOspztoOaC Ij9+BVq1A6qOLy98EECe7z8pEQageBCKwi+IOcjo= Received: from localhost (puchar-wojtek@localhost) by puchar.net (8.15.2/8.15.2/Submit) with ESMTP id 007LCxaW021657 for ; Tue, 7 Jan 2020 22:12:59 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) Date: Tue, 7 Jan 2020 22:12:59 +0100 (CET) From: Wojciech Puchar To: freebsd-hackers@freebsd.org Subject: maximum MAXBSIZE Message-ID: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Rspamd-Queue-Id: 47slTV3stbz4dhf X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=fail (rsa verify failed) header.d=puchar.net header.s=default header.b=kkOnnrlR; dmarc=none; spf=pass (mx1.freebsd.org: domain of wojtek@puchar.net designates 194.1.144.90 as permitted sender) smtp.mailfrom=wojtek@puchar.net X-Spamd-Result: default: False [-4.37 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_REJECT(1.00)[puchar.net:s=default]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; DMARC_NA(0.00)[puchar.net]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[puchar.net:-]; RCVD_IN_DNSWL_NONE(0.00)[90.144.1.194.list.dnswl.org : 127.0.10.0]; IP_SCORE(-3.07)[ip: (-8.12), ipnet: 194.1.144.0/24(-4.06), asn: 43476(-3.25), country: PL(0.07)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:43476, ipnet:194.1.144.0/24, country:PL]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jan 2020 21:13:03 -0000 default MAXBSIZE is 128kB. badly low for todays magnetic disks. i have it set to 2MB on all computers that have magnetic disks. Great improvement with large files. especially when more than one are read/wrote in parallel. And no problems experienced But for optimal performance MAXBSIZE should be transfered in few times longer than average seek time. todays disk do 200-250MB/s so 2MB is transfered below 10ms. 8-16MB seems like good choice. is there any reason not to set it that high?