From owner-freebsd-questions@FreeBSD.ORG Sat May 16 15:33:03 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 2C23F106564A for ; Sat, 16 May 2009 15:33:03 +0000 (UTC) (envelope-from abhiman.yashpal@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.174]) by mx1.freebsd.org (Postfix) with ESMTP id 025408FC1E for ; Sat, 16 May 2009 15:33:02 +0000 (UTC) (envelope-from abhiman.yashpal@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so1307708wfg.7 for ; Sat, 16 May 2009 08:33:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=XOadrPs6Fsv38X8KvOP7u9+Bm4q8GgDweid6RmKthMk=; b=Wcki7WA+l8uehtauIHQ97/wyDBULS+gMFufKp9Hc7gc7xNxIrO8d206d0TTcvfMmxi X1THWc3/M4JTqeXMADpCIwb/auBgofy8JPLcCwohsBpuh0J0SpY51P43sFaIrOeLIdLO IW9IPnGDbb5M0Dak4CbYG1g3rJydNWctez9XE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=WBlTNMLRRR2hmOfoAr6h04vzmIsKEoclmtyfSJt1Wh3EBkOaXHZ7+PB3jFmJie499I 8dL8Y/mXgKMKolPGvdfJ0ke8G9lMAk5GzYUq4Ei/Dg2AxRNgijiPzDGsrm2+tqqynkrn qi/ThZBA6HjHaslacY+HbvpGXQMMvHjRV+Nzw= MIME-Version: 1.0 Received: by 10.142.246.20 with SMTP id t20mr1536599wfh.233.1242485992341; Sat, 16 May 2009 07:59:52 -0700 (PDT) Date: Sat, 16 May 2009 20:29:52 +0530 Message-ID: <38534d590905160759xfc82a23g4f2703dacb35aaf0@mail.gmail.com> From: Abhiman Yashpal Karkera To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Query regarding the write sysem 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:33:03 -0000 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