Networking Forums

Networking Forums > Computer Networking > Linux Networking > TCP - total request time

Reply
Thread Tools Display Modes

TCP - total request time

 
 
erik.lindegren@gmail.com
Guest
Posts: n/a

 
      07-21-2006, 03:04 PM
Hi,

I'm running an Apache HTTP server on a Linux OS and would like to
measure the total time a request spends in the system. From the tcp
connection appears in the backlog queue until the response is sent. I
need to make this measurement available in a c-program. Is this
possible? Could I use the proc-system in some way? Also, is there an
easy way to see how many requests that are in the backlog queue?

Thanks,
Erik

 
Reply With Quote
 
 
 
 
Rick Jones
Guest
Posts: n/a

 
      07-21-2006, 05:43 PM
(E-Mail Removed) wrote:
> I'm running an Apache HTTP server on a Linux OS and would like to
> measure the total time a request spends in the system. From the tcp
> connection appears in the backlog queue until the response is
> sent. I need to make this measurement available in a c-program. Is
> this possible? Could I use the proc-system in some way?


I suspect only if you hack the kernel.

Or, if you were willing to spin and burn a bunch of cycles, you could
run tcpdump to get the timestamps of arriving SYNchronize segments and
compare them with the timestamps of accept() calls traced via truss.
Of course, with all that added overhead, either Heisenberg comes to
get you, or you are going to be scratched by Schrodinger's Cat. As it
were...


> Also, is there an easy way to see how many requests that are in the
> backlog queue?


IIRC there are some changes coming in later 2.6 kernels where either
the recv-q or the send-q field of netstat will show that.

rick jones
--
firebug n, the idiot who tosses a lit cigarette out his car window
these opinions are mine, all mine; HP might not want them anyway...
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ping Request Time Out sometimes Wilson Guerra Windows Networking 6 01-17-2008 01:34 AM
Use 2 minutes time, earn USD5000 monthly!You of part-time dream! veryannie@gmail.com Broadband 1 07-01-2007 07:01 AM
home based online part time full time jobs sachin Home Networking 0 11-22-2006 03:23 AM
Problem with Linux Machine's Request for Time from an XP Machine W. Watson Linux Networking 68 01-15-2005 10:01 PM
DHCP - last lease request time? Axel Müller Windows Networking 0 05-13-2004 09:38 AM



1 2 3 4 5 6 7 8 9 10 11