bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] Use posix_fadvise to improve archive creation performance


From: Uwe
Subject: Re: [Bug-tar] Use posix_fadvise to improve archive creation performance
Date: Fri, 31 Mar 2017 00:36:01 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

On 03/30/17 20:34, Ralph Corderoy wrote:
>>> I think it would be a good idea to add an option to tell tar whether
>>> to use POSIX_FADV_NOREUSE, POSIX_FADV_DONTNEED, or neither, since
>>> there may be cases where any of the three possibilities is best.
[...]
> I often want to run tar, sha1sum, grep, etc., on a huge file knowing
> that I won't do it again soon and I don't want it bullying the nice
> working-set cache out the door.  It seems crazy every command has to add
> options to twiddle POSIX_FADV_NOREUSE, like dd(1)'s nocache [io]flag
> IIRC.  We have stdbuf(1).  Perhaps a similar approach can be used to
> affect command, even if it can't work in all cases.
> 
>     fadvise --noreuse sha1sum big.foo

FWIW, there is https://github.com/Feh/nocache which I use in a tar
wrapper script for the backup software.

Yours, Uwe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]