Thread (12 messages) 12 messages, 5 authors, 2011-02-26

syscalls performance

From: Mauro Romano Trajber <hidden>
Date: 2011-02-25 17:03:24

I was doing some performance tests of system calls and I find an interesting
behavior.
Using RDTSC to count the CPU cycles, a single call to the getpid() consumes
about 7k of CPU clock cycles and ten calls consume approximately 9,800
cycles.
The fact is that from the second call, the CPU cycles grows at a rate of
about 350 CPU cycles per call.
Why does this happen? There is some hardware optimization when the syscall
ID is already in EAX register ?

Any ideias ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110225/006d5510/attachment.html 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help