On Sun, 8 Jan 2006 13:04:22 +0100 (MET), Jan Engelhardt <[email protected]> wrote:
>
>>grant@deltree:~$ time grep -v 192\.168\. /var/log/apache/access_log |cut -c-96
>>
>>real 0m1.671s
>>user 0m0.550s
>>sys 0m0.300s
>>grant@deltree:~$ time grep -v 192\.168\. /var/log/apache/access_log |cut -c-96 >/dev/null
>>
>>real 0m0.510s
>>user 0m0.420s
>>sys 0m0.080s
>
>Given that the first command is the first one accessing access_log at
>all, then: the second time, access_log is already cached and
>therefore can be accessed faster.
I did repeat measurements to check for variation due to caching,
and that is not what is happening, we comparing going out over
ssh terminal to dumping output locally.
Grant.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]