GNU bug report logs - #67490
[PATCH v2] tail: fix tailing sysfs files on large page kernels

Previous Next

Package: coreutils;

Reported by: dann frazier <dann.frazier <at> canonical.com>

Date: Mon, 27 Nov 2023 17:31:02 UTC

Severity: normal

Tags: patch

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Pádraig Brady <P <at> draigBrady.com>, dann frazier <dann.frazier <at> canonical.com>, 67490 <at> debbugs.gnu.org
Subject: bug#67490: [PATCH v2] tail: fix tailing sysfs files on large page kernels
Date: Thu, 30 Nov 2023 17:54:03 -0800
On 11/30/23 12:11, Pádraig Brady wrote:
> Though that will generally give 128K, which is good when processing all 
> of a file,
> but perhaps overkill when processing just the last part of a file.

The 128 KiB number was computed as being better for apps like 'sed' that 
typically read all or most of the file. 'tail' sometimes behaves that 
way (e.g., 'tail -c +10') and so 'tail' should use 128 KiB in those 
cases. The simplest way to do that is for 'tail' to use 128 KiB all the 
time - that would cost little for uses like plain 'tail' and it could be 
a significant win for uses like 'tail -c +10'.

(As an aside, the 128 KiB number was computed in 2014. These days 256 
KiB might be better if someone could take the time to measure....)




This bug report was last modified 1 year and 174 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.