1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/source3
Stefan Metzmacher 4244a2686c s3:smb2_server: for performance reasons we use tevent_fd and readv/writev directly
Going via tevent_req_create/talloc_free at multiple layer costs
too much cpu cycles per request.

I tested downloading a 16GB (sparse) file with smbclient -b1 -mNT1,
and -mSMB2_02. Using smb2 max read = 64512, which means smb1 and smb2
will use the same read size.

I build with -O3 -g and compared the results with valgrind --tool=callgrind.

With -mNT1 the server uses about 2.000.000.000 cpu cycles.

This patch reduces the userspace cpu cycles for -mSMB2_02
from about ~ 8.000.000.000 down to ~ 4.000.000.000.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
2013-11-27 14:39:10 +01:00
..
auth s3:auth_domain: remove dead code in check_trustdomain_security() 2013-10-17 08:48:58 +13:00
build
client client: use cli_qpathinfo3 for allinfo 2013-10-30 15:23:51 -07:00
exports
groupdb s3:passdb add a gid argument to pdb_create_builtin_alias 2013-06-21 10:44:24 +02:00
include vfs: add [GET/SET]_COMPRESSION hooks 2013-11-22 08:56:45 -08:00
intl
lib smbd: Fix bug 10284 2013-11-26 20:57:17 +01:00
libads Add a talloc context to sitename_fetch(). 2013-09-05 09:17:27 -07:00
libgpo build: get rid of source variables and vars=locals() in source3/libgpo/gpext/wscript_build 2013-09-24 23:00:35 +02:00
libnet s3-libnet: Use a const char for realm. 2013-11-15 23:11:54 +01:00
librpc netapi: Add support for info level 502 in NetShareAdd. 2013-11-19 21:48:17 +01:00
libsmb s3-libsmb: Fix scanf format in parse_ace(). 2013-11-15 11:07:49 -08:00
locale s3-po: Fix typo in comment. 2012-05-08 16:46:36 +02:00
locking smbd: Factor out get_share_mode_write_time of get_file_infos 2013-11-22 13:30:27 -08:00
modules vfs_btrfs: advertise per-file compression capability 2013-11-22 08:56:45 -08:00
nmbd s3:nmbd: do a very early cluster probe when starting nmbd. 2013-10-18 01:17:14 +02:00
pam_smbpass waf: Build pam_smbpass module only if enabled. 2012-10-04 10:20:35 +02:00
param loadparm: use lp_printername ctx param instead of tos 2013-11-20 08:16:37 +01:00
passdb s3-lib: Add grpname to talloc_sub_specified(). 2013-11-21 15:00:44 -08:00
printing printing: use DEBUG instead of sys_adminlog 2013-11-20 08:16:45 +01:00
profile s3: remove some dead code (for setdir command) 2013-03-12 01:03:37 +01:00
registry s3:registry increase a debug level 2013-04-19 13:16:38 +02:00
rpc_client s3:rpc_client: fix a leaked talloc_stackframe 2013-11-04 10:38:50 +01:00
rpc_server spoolss: accept XPS_PASS datatype used by Windows 8 2013-11-21 12:35:20 +01:00
rpcclient rpcclient: fix output of lsalookupsids for sids of type DOMAIN 2013-11-13 11:40:28 +01:00
script test_smbclient_tarmode.pl: remove unneccesary arg defaults 2013-11-05 16:40:20 +01:00
selftest torture3: Reproducer for bug 10284 2013-11-26 22:53:04 +01:00
services param: Change from _lp to lp__ as the prefix for internal parameter wrappers 2012-04-16 14:32:38 +10:00
smbd s3:smb2_server: for performance reasons we use tevent_fd and readv/writev directly 2013-11-27 14:39:10 +01:00
stf
torture torture3: Reproducer for bug 10284 2013-11-26 22:53:04 +01:00
utils Rename the profile enums with a SAMBA_ prefix to avoid conflict with system files. 2013-11-22 08:56:38 -08:00
web swat: Remove swat. 2013-05-18 16:32:38 +02:00
winbindd s3-winbind: Pass the group name to fillup_pw_field(). 2013-11-22 02:04:54 +01:00
.clang_complete
.dmallocrc
.indent.pro
change-log
Doxyfile
mainpage.dox
smbadduser.in
wscript vfs_btrfs: add [GET/SET]_COMPRESSION handlers 2013-11-22 08:56:45 -08:00
wscript_build s3-rpc_server: Add make_internal_rpc_pipe_socketpair(). 2013-10-29 16:17:03 +01:00
wscript_configure_system_ncurses build: fix --with-regedit to properly honour the yes/no/auto scheme 2013-05-06 18:24:58 +02:00