Re: [Patch][RFC] Disabling per-tgid stats on task exit intaskstats

From: Andrew Morton
Date: Wed Jun 21 2006 - 17:53:38 EST


On Wed, 21 Jun 2006 14:45:01 -0700
Jay Lan <jlan@xxxxxxxxxxxx> wrote:

> > Won't it suffice to make delivery of these stats best effort, with
> > userspace dealing with missing data,
>
> How do you recover the missed data?

I suspect the best we can do is to let userspace know that data was lost.
Is the -ENOBUFS reliable?

> > rather than risk delaying exits ? The cases where exits are so
> > frequent as in this program should be
>
> This is very true. However, it was a 2p IA64 machine. I am too frightened to
> speak "512p"...

If we have 511 CPUs generating data faster than one CPU can handle it,
something bad will happen. We either throttle the 511 CPUs or drop data.

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