using splice system call in smbd

korann korann at accel.cornell.edu
Thu Dec 14 16:06:12 GMT 2006


An article with better high-level explanation is available at: 
http://kerneltrap.org/node/6505  Another shorter description but with 
more history and references is included in the description of 2.6.17: 
http://kernelnewbies.org/Linux_2_6_17
	Mch

On Thursday 14 December 2006 08:41, saeed bishara wrote:
> > > Hi,
> > >   Linux kernel 2.6.17 introduced new system calls, the splice()
> > > and tee(), see http://kerneltrap.org/node/6505. using those
> > > system calls supposed to eliminate the copy_to/from_user in when
> > > writing files, the same way the sendfile does for reads. so is
> > > there any body how tried to use those functions in samba server?
> >
> > Not that I'm aware of.  I'd be interested in performance
> > comparisons against sendfile (in a patched version of Samba).
>
> The sendfile is actually changed to use the splice see
> http://lwn.net/Articles/181170/.  so I don't expect changes in the
> read direction. the interesting test will be writing to Samba server,
> here I'm expecting significant improvement, since with splice, the
> buffers will not be copied from the kernel socket to the user then
> copied back to kernel file buffer. I'm I right?
>
> saeed

-- 

	Mch(Michael Hammond)
	korann at accel.cornell.edu	(607)255-8575	mch22 at cornell.edu
	korann at blueblaze.com	(607)277-4565voice	(607)277-2216fax


More information about the samba-technical mailing list