From 55efc5f3ee485b3e31a91c331f07c89aeccc4e89 Mon Sep 17 00:00:00 2001 From: Pádraig Brady
Date: Fri, 6 Mar 2009 22:30:55 +0000 Subject: cat,cp,mv,install,split: Set the minimum IO block size used to 32KiB This is following on from this change: [02c3dc9d 2008-03-06 cat: use larger buffer sizes ...] which increased the IO block size used by cat by 8 times, but also capped it at 32KiB. * NEWS: Mention the change in behavior. * src/system.h: Add a new io_blksize() function that returns the max of ST_BLKSIZE or 32KiB, as this was seen as a good value for a minimum block size to use to get good performance while minimizing system call overhead. * src/cat.c: Use it. * src/copy.c: ditto * src/split.c: ditto --- NEWS | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index fd101a400..b6cdcbce7 100644 --- a/NEWS +++ b/NEWS @@ -24,6 +24,11 @@ GNU coreutils NEWS -*- outline -*- Previously -k1,1b would have caused leading space from field 2 to be included in the sort while -k2,3.0 would have not included field 3. +** Changes in behavior + + cp,mv,install,cat,split: now read and write a minimum of 32KiB + at a time. This was seen to increase throughput. Up to 2 times + when reading cached files on linux for example. * Noteworthy changes in release 7.1 (2009-02-21) [stable] -- cgit v1.2.3-70-g09d2