Recently I've seen several suggestions on this list for the enabling of "use sendfile" as a means to improve throughput. I thought this was peculiar since the doc says it is enabled by default. I guess it isn't. On both RHEL4 (Samba v3.0.10) and Fedora Core 4 (Samba v3.0.14) the entry for "use sendfile" in the smb.conf says: Default: use sendfile = yes Hmm. In fact I just discovered that sendfile is *not* enabled by default in these 2 environments. By doing a verbose output from testparm I see that in both these environments "use sendfile" is set to No. So what is going on here? Is the doc just wrong or is Red Hat disabling this option in their Samba packages? I'm running a Samba v3.0.10 server in RHEL4. The clients for this server are Linux, Win2K and WinXP machines. Given these circumstances, should I enable "use sendfile" to get better throughput? Thanks.
Steve Snyder wrote:> Recently I've seen several suggestions on this list for the enabling of "use > sendfile" as a means to improve throughput. I thought this was peculiar > since the doc says it is enabled by default. I guess it isn't. > > On both RHEL4 (Samba v3.0.10) and Fedora Core 4 (Samba v3.0.14) the entry > for "use sendfile" in the smb.conf says: > Default: use sendfile = yesdocumentation error (?), not sure if it's samba or redhat/fedora specific. I can say that from my install of samba-3.0.21b, 'man smb.conf' says: Default: use sendfile = false -- Rex
As I recall sendfile() is a compile option also so you have to make sure that samba is compiled with that flag. Not sureif it is that by default either. =) Cheers 1 feb 2006 kl. 20:40 skrev Steve Snyder:> Recently I've seen several suggestions on this list for the > enabling of "use > sendfile" as a means to improve throughput. I thought this was > peculiar > since the doc says it is enabled by default. I guess it isn't. > > On both RHEL4 (Samba v3.0.10) and Fedora Core 4 (Samba v3.0.14) the > entry > for "use sendfile" in the smb.conf says: > > Default: use sendfile = yes > > Hmm. In fact I just discovered that sendfile is *not* enabled by > default in > these 2 environments. By doing a verbose output from testparm I > see that > in both these environments "use sendfile" is set to No. > > So what is going on here? Is the doc just wrong or is Red Hat > disabling > this option in their Samba packages? > > I'm running a Samba v3.0.10 server in RHEL4. The clients for this > server > are Linux, Win2K and WinXP machines. Given these circumstances, > should I > enable "use sendfile" to get better throughput? > > Thanks. > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba
On Wednesday 01 February 2006 16:54, Henrik Zagerholm wrote:> As I recall sendfile() is a compile option also so you have to make ? > sure that samba is compiled with that flag. > Not sureif it is that by default either.According to "configure --help": --with-sendfile-support Check for sendfile support (default=yes) Without specifying it it builds. I do get this however: checking whether to check to support sendfile... yes checking for linux sendfile64 support... yes checking for linux sendfile support... yes checking for broken linux sendfile support... yes Samba seems to think my sendfile support is broken. Is this so? What can be done to fix it? Thanks. Chris
You are right. You can run the following to see if it was compiled in. smbd -b | grep -i sendfile Henrik Zagerholm wrote:> As I recall sendfile() is a compile option also so you have to make > sure that samba is compiled with that flag. > Not sureif it is that by default either. =) > > Cheers > 1 feb 2006 kl. 20:40 skrev Steve Snyder: