From owner-freebsd-hackers Wed May 22 10:22:21 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from sirius.pc.cis.udel.edu (sirius.pc.cis.udel.edu [128.4.133.24]) by hub.freebsd.org (Postfix) with ESMTP id 1A5BD37B401 for ; Wed, 22 May 2002 10:22:16 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by sirius.pc.cis.udel.edu (8.11.3/8.11.3) with ESMTP id g4MHLic36024 for ; Wed, 22 May 2002 13:21:45 -0400 (EDT) (envelope-from jain@sirius.pc.cis.udel.edu) Date: Wed, 22 May 2002 13:21:44 -0400 (EDT) From: Manish Jain To: Subject: sendto syscall Message-ID: <20020522122956.P35666-100000@sirius.pc.cis.udel.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, I am working on a bandwidth measurment tool where I need to send udp packets with fixed interspacing. For this purpose, I am trying to measure the latency of sendto syscall. In one experiment, I set the socket buffer ( both send and receive ) equal to the size of the packet for that experiment ( 512 bytes in that case). Then I do (several) pair of back-to-back sendto and measure their latency using gettimeofday. I repeat the same experiment with a very high value of socket buffer. In first case (socket buffer = pkt size ), I was expecting to see the latecny of second sendto higher relatively to first one since second sendto would block. In the second case , the latency of two sendto should have been of same order. The results of the experiment donot show any trend in the first case nor in the second case. Does anyone have any first thoughts on this ? Does the sendto return after copying the data from user space to kernal space or returns after the packet leaves the interface card ? Thanks, manish http://www.cis.udel.edu/~jain To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message