syscalls performance

Enrico Granata egranata at ucsd.edu
Fri Feb 25 17:14:05 EST 2011


same behavior if you strip away the function call and call syscall() directly inside the for() loop:

	for (i = 0; i < qtd; i++) {
		start = RDTSC();
		syscall(SYS_getpid);
		end = RDTSC();
		printf("%lld\n",  (end - start));
	}

I do not have the source code for syscall() available ATM but I would look into that to see if something there looks like it may be caching information

Enrico Granata
Computer Science & Engineering Department (EBU3B) - Room 3240
office phone 858 534 9914
University of California, San Diego

On Feb 25, 2011, at 2:06 PM, Daniel Baluta wrote:

> On Sat, Feb 26, 2011 at 12:03 AM, Mauro Romano Trajber
> <trajber at gmail.com> wrote:
>> Same behavior for a new syscall created from scratch.
> 
> Instruction caching?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110225/1e997eb6/attachment-0001.html 


More information about the Kernelnewbies mailing list