bug-coreutils
[Top][All Lists]
Advanced

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

Re: dd interface to posix_fadvise


From: Paul Eggert
Subject: Re: dd interface to posix_fadvise
Date: Thu, 15 Mar 2007 00:34:29 -0700
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Pádraig Brady <address@hidden> writes:

>> If it's purely a performance improvement, I'd be inclined to
>> enable it all the time.  That's even simpler, from the user's
>> point of view. 
>
> Well it's specific to the future data usage whether it's
> better to cache or not, and dd can't know this.

But posix_fadvise is supposed to tell the OS how the current
application (in this case, 'dd') will behave.  It is not supposed to
tell the OS how other applications will behave.

Since the advice is only about what 'dd' will do, and 'dd' is always
sequential, POSIX_FADV_SEQUENTIAL seems entirely appropriate; I don't
see why it'd be wrong, except if the OS has a performance bug of some
sort.




reply via email to

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