Oskar Pearson <oskar@is.co.za> writes:
> Hi
>
> I run: strace -o squid.out -p 28554 -T
> and then push it though Michael's script:
>
> System call Count Total time Time per call % total
> getrusage 3 0.0004 0.000149 0.00031
> fcntl 10 0.0012 0.000120 0.00083
> open 10 0.0030 0.000304 0.00211
> gettimeofday 158 0.0193 0.000122 0.01342
> close 10 0.0213 0.002130 0.01478
> getdents 20 0.1009 0.005043 0.07000
> write 603 0.1183 0.000196 0.08212
> stat 10 0.3404 0.034043 0.23626
> oldselect 159 143.4838 0.902414 99.58017
> Total time elapsed: 144.088741
Remember than my script it measuring wall clock time, not CPU. So
these numbers are exactly what you'd expect: squid would spend most of
it's time sleeping in select().
> Now this squid is completely idle... any idea why it's going moggy about with
> the CPU? My machine has no idle CPU when I run it, so I guess things aren't
> wonderful..
Check to see if it's the main thread burning CPU, or one of the child
threads...
Michael.
Received on Tue Jul 29 2003 - 13:15:46 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:11:42 MST