Kjetil Torgrim Homme wrote:
> Jesper Krogh <[EMAIL PROTECTED]> writes:
> 
>> Can you give us the time for doing a tar to /dev/null of the fileset.
>>
>> time tar cf /dev/null /path/to/maildir
>>
>> Then we have a feeling about the "actual read time" for the file of
>> the filesystem.
> 
> if you're using GNU tar, it will *not* read the files if you dump to
> /dev/null.  it will simply stat the files as necessary (you can check
> this with strace if you like.)

Thanks The numers actually surprised me when posted. I usually do a

tar cf - /path | pv > /dev/null

pv prints the speed of the stream, so I dont have to wait for it to 
complete to get a feeling.

> use /dev/zero to avoid this optimisation.

Thank, nice tip.

-- 
Jesper

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to