Re: [PATCH] syscall latency improvement #1

Andrew Morton (akpm@zip.com.au)
Fri, 25 Jan 2002 18:10:12 -0800


Linus Torvalds wrote:
>
> It should be eminently testable. Just remove the cli from the standard
> kernel, and do before-and-after tests.
>

#include <unistd.h>

main()
{
int i = 100 * 1000 * 1000;

while (i--)
getpid();
}

With cli:
./a.out 22.05s user 15.31s system 99% cpu 37.361 total

without cli:
./a.out 18.29s user 17.42s system 99% cpu 35.731 total

That's 4.6%. Intel P3.

It's also 306 cycles per iteration. So the cli added 14 cycles.

-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/