Query regarding "write" system call.



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@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Query regarding the write sysem call
    ... I had a query regarding performing writes onto ... a disk. ... processes user space to the kernel buffer and hand this buffer to the device ...
    (freebsd-questions)
  • Re: seek within a large file
    ... >> I have a huge (GBs) file on my disk that I would like to read from the ... >> OS automatically search the file using the harddisk head or the OS will ... >> exhausitively read in every thing into kernel buffer starting from the first ...
    (comp.os.linux.hardware)
  • Re: seek within a large file
    ... >> I have a huge (GBs) file on my disk that I would like to read from the ... >> OS automatically search the file using the harddisk head or the OS will ... >> exhausitively read in every thing into kernel buffer starting from the first ...
    (comp.os.linux.misc)
  • Re: Query regarding "write" system call.
    ... I had a query regarding performing writes onto ... a disk. ... processes user space to the kernel buffer and hand this buffer to the device ... Zero-copy networking is an illustration of RDMA. ...
    (freebsd-questions)
  • Re: seek within a large file
    ... > OS automatically search the file using the harddisk head or the OS will ... disk using the "harddisk head", and everything that is read from disk is ... cached in a kernel buffer), and no, neither happens. ...
    (comp.os.linux.misc)