Re: Why is 2.4.32 four times faster than 2.6.14.6??




>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.


Jan Engelhardt
--
| Alphagate Systems, http://alphagate.hopto.org/
| jengelh's site, http://jengelh.hopto.org/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Why is 2.4.32 four times faster than 2.6.14.6??
    ... >Given that the first command is the first one accessing access_log at ... the second time, access_log is already cached and ... Grant. ... More majordomo info at http://vger.kernel.org/majordomo-info.html ...
    (Linux-Kernel)
  • Re: XP shut down
    ... shut down a second time it shuts down normally. ... Any ideas how to make it shut down on the first command? ... For shutdown problems, first make sure your computer is completely virus/malware-free: ... MS-MVP Windows - Shell/User ...
    (microsoft.public.windowsxp.general)
  • Re: printf to pad with spaces BUT trips over when data being padded contains spaces
    ... >>In the first command, awk operates on the contents of $variable, in the ... Oops, didn't notice the ARGV. ... Prev by Date: ...
    (comp.unix.shell)
  • Re: Why I can not use functions with "using"?
    ... >The first command works find, ... You need parentheses around the expression, just as in your 1st example. ... Ethan A Merritt ... Prev by Date: ...
    (comp.graphics.apps.gnuplot)