From owner-freebsd-questions@FreeBSD.ORG Sat May 16 15:58:45 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8AEBC1065670 for ; Sat, 16 May 2009 15:58:45 +0000 (UTC) (envelope-from saifi.khan@twincling.org) Received: from s217.sureserver.com (s217.sureserver.com [203.194.200.22]) by mx1.freebsd.org (Postfix) with ESMTP id BC4698FC16 for ; Sat, 16 May 2009 15:58:44 +0000 (UTC) (envelope-from saifi.khan@twincling.org) Received: (qmail 13005 invoked by uid 1002); 16 May 2009 15:58:42 -0000 Received: from unknown (HELO ?10.10.10.7?) (saifi.khan@twincling.org@59.92.164.209) by s217.sureserver.com with ESMTPA; 16 May 2009 15:58:42 -0000 Date: Sat, 16 May 2009 21:30:29 +0000 (GMT) From: Saifi Khan X-X-Sender: saifi@localhost To: Abhiman Yashpal Karkera In-Reply-To: <38534d590905160831i1c812806qb03bbfc26caa2b62@mail.gmail.com> Message-ID: References: <38534d590905160831i1c812806qb03bbfc26caa2b62@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-questions@freebsd.org Subject: Re: Query regarding "write" system call. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 May 2009 15:58:45 -0000 On Sat, 16 May 2009, Abhiman Yashpal Karkera wrote: > Hi all, > I am a newbie to Freebsd OS. I had a query regarding performing writes onto > a disk. > > Generally when we want to write some data we first copy the data from the > processes user space to the kernel buffer and hand this buffer to the device > driver who then goes and initiated a write to the h/w. > > Now my question here is that the kernel buffers are very limited in size , > what happens if i have a really huge chunk of data to be written, won't the > above mechanism of copying from userland to kernel buffer be slow ? > > thanks, > Abhiman RDMA is one possibility. Zero-copy networking is an illustration of RDMA. You may also want to look up VIA http://www.intel.com/intelpress/chapter-via.pdf thanks Saifi.