kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* syscalls performance
@ 2011-02-25 17:03 Mauro Romano Trajber
  2011-02-25 17:15 ` Daniel Baluta
  0 siblings, 1 reply; 13+ messages in thread
From: Mauro Romano Trajber @ 2011-02-25 17:03 UTC (permalink / raw)
  To: kernelnewbies

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 

^ permalink raw reply	[flat|nested] 13+ messages in thread
[parent not found: <D3CBA33B-3809-4AF5-9F66-0F2D256C4A82@cs.ucsd.edu>]

end of thread, other threads:[~2011-02-26  4:31 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-25 17:03 syscalls performance Mauro Romano Trajber
2011-02-25 17:15 ` Daniel Baluta
2011-02-25 18:22   ` Mauro Romano Trajber
2011-02-25 20:15     ` Daniel Baluta
2011-02-25 20:30       ` Mauro Romano Trajber
2011-02-25 20:42         ` Enrico Granata
2011-02-25 20:59           ` Jim Kukunas
2011-02-25 21:00             ` Enrico Granata
2011-02-25 22:03               ` Mauro Romano Trajber
2011-02-25 22:06                 ` Daniel Baluta
2011-02-25 22:14                   ` Enrico Granata
2011-02-26  4:31           ` Mulyadi Santosa
     [not found] <D3CBA33B-3809-4AF5-9F66-0F2D256C4A82@cs.ucsd.edu>
2011-02-25 17:14 ` Enrico Granata

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).