Re: athstats and flush stats



Daniel Dvoøák wrote:
Hello Sam and all,

could you tell me how to reset or flush the stats ?

I use athstats on ahdemo links to watch OFDM timing errors as you have told
me last time, but it seems it is cumulative stats and iface down and up, it
does not help.

How-to fulsh except for reboot the computer ?

There is no way (currently) to clear the kernel stat counters. It'd be
easy to add but I personally hate to lose data and would prefer that
reporting stats relative to an event or time be done by user code (e.g.
by recording the stat block and showing differences). Another option
might be keeping 2 stat blocks in the kernel and adding an ioctl that
snap's the state of the stats so user apps can report data relative to
the snapshot. This issue is really kinda generic (i.e. relevant to
all/many statistics kept in the kernel).

Sam
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Compiling a new RHEL-4 kernel
    ... But to get the kernel ... As far as your tape changer issue, verify that sg5 is indeed your ... If you get stats, read the mtx manpage about how to load/unload tapes. ... then manually issue a rewind at the end of the backup functions. ...
    (RedHat)
  • Re: kernel thread as real threads..
    ... the kernel sees has no specific correlation to a thread that exists in an application. ... Trying to associate stats with these threads is absolultely meaningless. ... and process scope threads, and that system scope threads behave mostly like 1:1 threads. ...
    (freebsd-current)
  • Re: How do I enable PLL in the Linux kernel?
    ... What does "0040 unsync" mean? ... kernel has NOT been "specially modified for ... pps | stats] ... Enables the kernel time discipline, ...
    (comp.protocols.time.ntp)
  • Re: kernel thread as real threads..
    ... threads are just a figment of the imagination of the kernel. ... The stats are kernel stats, not userland stats. ... at least not for purpose of showing stats for kernel ...
    (freebsd-current)