Re: clone() <-> getpid() bug in 2.6?

From: David S. Miller
Date: Sat Jun 05 2004 - 18:00:52 EST


On Sat, 05 Jun 2004 18:47:43 -0400
Robert Love <rml@xxxxxxxxxx> wrote:

> It is almost certainly done to improve the speed of some stupid
> microbenchmark - say, one that just calls getpid() repeatedly (simple
> because it is NOT slow) to measure system call overhead.

Luckily lmbench and friends use getppid() specifically because it
is impossible to cache that (as far as I can tell).
-
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/