From owner-freebsd-questions@FreeBSD.ORG Sat May 16 15:31:13 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 332411065670 for ; Sat, 16 May 2009 15:31:13 +0000 (UTC) (envelope-from abhiman.yashpal@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.173]) by mx1.freebsd.org (Postfix) with ESMTP id 099418FC14 for ; Sat, 16 May 2009 15:31:12 +0000 (UTC) (envelope-from abhiman.yashpal@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so1307496wfg.7 for ; Sat, 16 May 2009 08:31:12 -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=UDo4cLu693ELyjK92wlVS6PcZdG+YiVy0NccGnr8X+0=; b=som4joTVwz3py/3cIWXZySM+OngwyOoAN7dwl94kOjtxlhEtfJcfyb7Mr7fvG3fiTO kbUTDXJyM6FIXq6RN5QhgkwIy8vlNE6DgmwM3HqnHBD7apRnpCgwOlVICblkLX3ySKAd My96tuZ0MloYVdFCD45W770nmd5nZoUBnB5d4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=YKs3Hnz96AWD/Wm1OU0cbAWFZqJt61OacEp8EfEOyLPIGq6yH36qw7CHjv765SjRG3 NaIsD7BzcQou0yiC1YBmWpT7YLPz6roBrRicwLyiNYInuljoMQ79tcAW55HXLLhbNk8h fnpq8A0LAfhQ64z8D5hPUwYjCX9eerTUFNej8= MIME-Version: 1.0 Received: by 10.142.242.11 with SMTP id p11mr1393811wfh.132.1242487872712; Sat, 16 May 2009 08:31:12 -0700 (PDT) Date: Sat, 16 May 2009 21:01:12 +0530 Message-ID: <38534d590905160831i1c812806qb03bbfc26caa2b62@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 "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:31:13 -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