Re: Workaround for wrapping loadaverage

From: Herbert Poetzl
Date: Wed Nov 10 2004 - 01:23:10 EST


On Wed, Nov 10, 2004 at 08:49:41AM +1100, Con Kolivas wrote:
> Herbert Poetzl wrote:
> >but I agree that a higher resolution would be a good
> >idea ... also doing the calculation when the number
> >of running/uninterruptible processes has changed would
> >be a good idea ...
>
> This could get very expensive. A modern cpu can do about 700,000 context
> switches per second of a real task with the current linux kernel so I'd
> suggest not doing this.

hmm, right it can, do you have any stats about the
'typical' workload behaviour?

do you know the average time between changes of
nr_running and nr_uninterruptible?

TIA,
Herbert

> Cheers,
> Con


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