[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensolaris-dtrace-discuss
Subject:    Re: [dtrace-discuss] UDP Packet processing
From:       Donour Sizemore <donour () unm ! edu>
Date:       2009-08-26 18:24:09
Message-ID: 5347C21C-CC60-47BA-9FCC-A3CEF9F020EC () unm ! edu
[Download RAW message or body]


On Aug 26, 2009, at 10:58 AM, Vishal Ahuja wrote:

> Hi Donour,
>
>                 Thanks for the reply. So what I understand is that I  
> could measure the time spent in each of the syscalls - starting from  
> ip_input, all the way down to e1000g0_intr. Is that correct?

Sort of, but it's not so simple. If you use the wall clock to measure  
a socket read(), then some of the time will be spend waiting for data  
to arrive over the network. My impression is that you really only want  
time spent on the cpu, not time blocked.

FYI: ip_input() is a kernel function, not a system call.

> Also, would you know how to take into account the copy from the  
> kernel space to the user space for the packets...

Yes. I don't have a nice example in front of me, but if you trace a  
recv(), you should see a so_copy function. That's the ticket....I  
think. :-p

donour

_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic