lkml.org 
[lkml]   [2002]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] syscall latency improvement #1
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/

\
 
 \ /
  Last update: 2005-03-22 13:15    [W:0.051 / U:1.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site