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

syscalls performance

From: Mauro Romano Trajber <hidden>
Date: 2011-02-25 20:30:32

Sure, the code is attached.


On Fri, Feb 25, 2011 at 5:15 PM, Daniel Baluta [off-list ref]wrote:
On Fri, Feb 25, 2011 at 8:22 PM, Mauro Romano Trajber [off-list ref]
wrote:
quoted
Thanks Enrico and Daniel, you're right. glibc was caching getpid(); but
this
quoted
is not the root cause of this behavior.
Going further, I decide to use call getpid without glibc, using
 syscall(SYS_getpid) to test this behavior and it happened again.
Calling it once, the test consumes about 7k CPU cycles and 10 calls
consumes
quoted
about 10k CPU cycles.
Any ideas ?
Can you post a pointer to your code and information about how you got
this numbers?

thanks,
Daniel.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110225/f273b11b/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: syscallperf.c
Type: text/x-csrc
Size: 732 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110225/f273b11b/attachment.bin 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help