Re: [PATCH] syscall latency improvement #1

From: Andrew Morton (akpm@zip.com.au)
Date: Fri Jan 25 2002 - 21:10:12 EST


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/



This archive was generated by hypermail 2b29 : Thu Jan 31 2002 - 21:00:38 EST