samba-technical@lists.samba.org
[Top] [All Lists]

Re: using splice system call in smbd

Subject: Re: using splice system call in smbd
From: "saeed bishara"
Date: Thu, 14 Dec 2006 15:41:28 +0200
> 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

<Prev in Thread] Current Thread [Next in Thread>