A better example would be to do an interactive top (just run top) in one window, and then do a top n 1 in another. (top n 1 means to just do 1 iteration and exit) For some reason the CPU states do not match. (top n 1 never gets updated)

Does anyone else have this problem?

Paul Rech [rechpj at earthlink.net] wrote:
> Do you mean the line with 92.1% idle?
> 
> If it's like vmstat, the first line is cumulative since startup.
> 
> Paul Rech
> 
> 
> Clay Fandre wrote:
> 
> > Can someone explain why the first line is always the same?
> >
> > ac:/# top q b n 2 | grep "CPU st"
> > CPU states:   6.1% user,   1.7% system,   0.1% nice,  92.1% idle
> > CPU states:  53.3% user,  46.7% system,   0.0% nice,   0.0% idle
> > ac:/# top q b n 2 | grep "CPU st"
> > CPU states:   6.1% user,   1.7% system,   0.1% nice,  92.1% idle
> > CPU states:  33.3% user,  66.7% system,   0.0% nice,   0.0% idle
> > ac:/# top q b n 2 | grep "CPU st"
> > CPU states:   6.1% user,   1.7% system,   0.1% nice,  92.1% idle
> > CPU states:  53.8% user,  46.2% system,   0.0% nice,   0.0% idle
> > ac:/# top q b n 2 | grep "CPU st"
> > CPU states:   6.1% user,   1.7% system,   0.1% nice,  92.1% idle
> > CPU states:  50.0% user,  50.0% system,   0.0% nice,   0.0% idle
> > ac:/# top q b n 2 | grep "CPU st"
> > CPU states:   6.1% user,   1.7% system,   0.1% nice,  92.1% idle
> > CPU states:  75.0% user,  25.0% system,   0.0% nice,   0.0% idle
> > ac:/#
> >
> >   ------------------------------------------------------------------------
> >    Part 1.2Type: application/pgp-signature
> 
> _______________________________________________
> tclug-list mailing list
> tclug-list at mn-linux.org
> https://mailman.mn-linux.org/mailman/listinfo/tclug-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://shadowknight.real-time.com/pipermail/tclug-list/attachments/20010825/7172334f/attachment.pgp