9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] latency & jitter resistant stats
@ 2009-11-20  5:54 erik quanstrom
  0 siblings, 0 replies; only message in thread
From: erik quanstrom @ 2009-11-20  5:54 UTC (permalink / raw)
  To: 9fans

i was having some trouble with stats reporting higher
ethernet throughput when my connection to the cpu
server was getting busy.  here's a little experiment that
works around the problem by reducing the sleep time
by the time it takes to make the samples.  as a secondary
connection, if the sampling time exceedes 1/4 of the
sample rate, the sample time is doubled.  the sample
rate will be reduced if the sample rate goes to 1/32 of
the adjusted rate.

/n/sources/contrib/quanstro/src/stats.c

while this was quick and easy and fairly accurate, a
better solution would be to calculate the rate on the remote.

i also switched the ethernet scale to be prop. to link
speed rather than the number of processors and added
tracing for /net.alt/ether1.

there was also a bug that will divide by zero if
sleepsecs < 1.0 when displaying ethernet errors.

also included, a fix for numbers too big to fit in 32 bits,
such as the packet counts in /net*/ether?/stats.  i submitted
this fix as a patch.

- erik



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-11-20  5:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-20  5:54 [9fans] latency & jitter resistant stats erik quanstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).