Query regarding write system call.

2009-05-16 Thread Abhiman Yashpal Karkera
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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Query regarding write system call.

2009-05-16 Thread Saifi Khan
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.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org