1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/source3/smbd
Volker Lendecke 12ebb1ba15 smbd: Tune "dir" a bit.
for i in $(seq 1 20000) ; do echo dir ; done | smbclient //127.0.0.1/tmp -U%

without and with this patch:

$ time bin/smbd -d0 -i
smbd version 4.1.0pre1-GIT-1f139ae started.
Copyright Andrew Tridgell and the Samba Team 1992-2013
Beendet

real    0m28.342s
user    0m10.249s
sys     0m10.513s

$ time bin/smbd -d0 -i
smbd version 4.1.0pre1-GIT-1f139ae started.
Copyright Andrew Tridgell and the Samba Team 1992-2013
Beendet

real    0m27.348s
user    0m9.089s
sys     0m10.853s

The "real" timestamp is irrelevant, this also contains the time between
starting smbd and the smbclient job. It's the "user" time. The result that this
patch improves the time spent in user space by 10% is consistent.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Mar 22 22:10:57 CET 2013 on sn-devel-104
2013-03-22 22:10:57 +01:00
..
aio.c s3:smbd/aio do not mark file modified during reads 2012-11-20 21:02:34 +01:00
avahi_register.c
blocking.c s3:smbd: s/struct timed_event/struct tevent_timer 2013-02-19 23:47:56 +01:00
close.c s3:smbd:smb2: fix segfault (access after free) in durable disconnect code 2013-02-19 11:12:01 +01:00
conn_idle.c Fix bug #9733 - smbcontrol close-share is not working. 2013-03-22 20:10:11 +01:00
conn_msg.c s3:smbd/conn_msg: use talloc_get_type_abort() as private_data can't be NULL 2011-12-14 12:00:07 +01:00
conn.c Add uint32_t share_access to vuid_cache_entry. 2013-01-09 15:28:48 +11:00
connection.c s3:smbd: remove unused claim_connection/yield_connection 2012-10-19 12:15:03 +02:00
dfree.c s3:smbd: in sys_disk_free(), improve a debug message 2012-09-04 20:39:20 +02:00
dir.c smbd: Tune "dir" a bit. 2013-03-22 22:10:57 +01:00
dmapi.c
dnsregister.c
dosmode.c s3:smbd: preserve file type mode bits in file_set_dosmode() 2013-02-19 15:45:31 +01:00
durable.c s3:smbd:durable: remove a TODO comment about write time updates 2012-10-29 20:12:18 +01:00
error.c s3-smbd: Avoid starting log lines with the word 'error' 2012-02-16 15:21:11 +11:00
fake_file.c Add 'bool use_privs' to smbd_calculate_access_mask(). 2012-09-15 00:37:49 +02:00
file_access.c More for #9374 - Allow smb2.acls torture test to pass against smbd with a POSIX ACLs backend. 2012-11-20 01:46:27 +01:00
fileio.c s3:smbd: s/struct timed_event/struct tevent_timer 2013-02-19 23:47:56 +01:00
filename.c Check error returns on strnorm(). 2012-08-09 12:07:32 -07:00
files.c smbd: split out file_fsp_get from file_fsp_smb2 2013-01-16 23:15:07 +01:00
globals.c s3:smbd: move initialization of the smbd_shim from smbd_init_globals() to main() 2012-10-19 12:14:58 +02:00
globals.h s3:smbd: s/struct fd_event/struct tevent_fd 2013-02-19 23:47:58 +01:00
ipc.c s3:smbd: make use of smbXsrv_tcon for smb1 2012-06-25 20:55:06 +02:00
lanman.c s3-smbd: Don't leak subcntarr array. 2013-02-22 16:36:13 +01:00
mangle_hash2.c Check error returns from strupper_m() (in all reasonable places). 2012-08-09 12:06:54 -07:00
mangle_hash.c Check error returns from strupper_m() (in all reasonable places). 2012-08-09 12:06:54 -07:00
mangle.c loadparm: make the source3/ lp_ functions take an explicit TALLOC_CTX *. 2012-07-18 15:07:23 +09:30
message.c Make sure to set umask() before calling mkstemp(). 2013-03-06 01:16:34 +01:00
msdfs.c Fix bug #9588 - ACLs are not inherited to directories for DFS shares. 2013-01-28 13:48:13 +01:00
negprot.c s3:smbd: remove silly (SMB_OFF_T_BITS == 64) checks 2013-03-20 09:32:26 -07:00
notify_inotify.c s3:smbd: s/event_add_fd/tevent_add_fd and s/EVENT_FD_/TEVENT_FD_ 2013-02-19 23:48:01 +01:00
notify_internal.c smbd: Fix a typo 2013-03-14 14:46:01 +01:00
notify.c s3:smbd: s/struct event_context/struct tevent_context 2013-02-19 23:47:51 +01:00
ntquotas.c lib/util: Remove dummy wrappers for setpwent/getpwent/endpwent. 2012-03-24 15:23:02 +01:00
nttrans.c smbd: Always free the talloc_stackframe() before leaving smbd_do_query_security_desc 2012-10-11 15:20:54 +02:00
open.c s3:smbd/open: fall back to Builtin_Administrators if SYSTEM doesn't map to a group 2012-12-02 18:32:36 +01:00
oplock_irix.c s3:smbd: s/event_add_fd/tevent_add_fd and s/EVENT_FD_/TEVENT_FD_ 2013-02-19 23:48:01 +01:00
oplock_linux.c Fix bug #8974 - Kernel oplocks are broken when uid(file) != uid(process). 2012-06-21 21:53:58 +02:00
oplock.c s3:smbd: fix missing space in debug message in initial_break_processing() 2013-02-28 02:15:39 +01:00
password.c s3:smbd: pass smbXsrv_session instead of user_struct to session_claim() and session_yield() 2012-10-19 12:14:59 +02:00
perfcount.c loadparm: make the source3/ lp_ functions take an explicit TALLOC_CTX *. 2012-07-18 15:07:23 +09:30
pipes.c s3:smbd: change pipes.c to use fsp_fnum_dbg() for fsp->fnum logging. 2012-06-15 03:28:14 +02:00
posix_acls.c smbd:posix_acls Remove incorrectly added lp_create_mask() and lp_dir_mask() calls 2013-03-10 13:31:23 +01:00
process.c s3:smbd: Fix off-by 4 error in wrap protection code in create_outbuf() 2013-03-20 09:32:26 -07:00
proto.h s3:smbd: add some const to req_is_in_chain() 2013-03-20 09:32:26 -07:00
pysmbd.c source3/smbd/pysmbd.c: Always use create_conn_struct(). Don't hand create connection structs. 2013-01-09 14:54:29 +11:00
quotas.c quota: move function again to its belonging ifdef block 2012-09-11 04:44:28 +02:00
reply.c s3:smbd: Add functions calc_max_read_pdu()/calc_read_size() to work out the length we should return. 2013-03-20 09:32:26 -07:00
seal.c libcli/smb: Convert struct smb_trans_enc_state to talloc 2012-01-31 20:17:10 +01:00
sec_ctx.c Fix bug #9329 - Directory listing with SeBackup can crash smbd. 2012-10-29 16:26:20 +01:00
server_exit.c s3:smbd: add exit_server to the smbd_shim hooks 2012-10-19 12:14:58 +02:00
server_reload.c s3-smbd: Fix flooding the logs with records we don't find in pcap. 2012-08-28 16:38:55 +02:00
server.c s3:smbd: s/struct timed_event/struct tevent_timer 2013-02-19 23:47:56 +01:00
service.c smbd: Fix a typo 2013-01-09 15:29:38 +11:00
session.c s3:smbd: don't use (fill) sessionid.tdb in session_claim/yield any more. 2012-10-19 12:15:00 +02:00
sesssetup.c s3:smbd: keep global_client_caps and max_send from the first successful session setup 2013-03-20 09:32:26 -07:00
share_access.c s3: Fix some blank line endings 2012-10-20 09:06:12 +02:00
signing.c libcli/smb: pass hdr/len to smb_signing_check/sign_pdu() and skip the nbt header 2012-08-04 09:10:21 +02:00
smb2_break.c s3:smb2_break: encrypt OPLOCK BREAK notifications 2012-08-23 10:01:14 +02:00
smb2_close.c s3:smb2_close: make use of SMBD_SMB2_IN_BODY_PTR() 2012-08-05 20:55:34 +02:00
smb2_create.c s3:smbd: s/struct timed_event/struct tevent_timer 2013-02-19 23:47:56 +01:00
smb2_find.c s3:smb2_find: make use of SMBD_SMB2_* macros 2012-08-05 20:55:36 +02:00
smb2_flush.c s3:smb2_flush: make use of SMBD_SMB2_IN_BODY_PTR() 2012-08-05 20:55:35 +02:00
smb2_getinfo.c s3: Make SMB2_GETINFO multi-volume aware. 2013-02-08 21:44:37 +01:00
smb2_glue.c s3:smb2_glue: make use of SMBD_SMB2_IN_HDR_PTR() 2012-08-05 20:55:36 +02:00
smb2_ioctl_dfs.c smb2_ioctl: split ioctl handler code on device type 2013-01-16 23:15:06 +01:00
smb2_ioctl_filesys.c smb2_ioctl: split ioctl handler code on device type 2013-01-16 23:15:06 +01:00
smb2_ioctl_named_pipe.c smb2_ioctl: split ioctl handler code on device type 2013-01-16 23:15:06 +01:00
smb2_ioctl_network_fs.c Fix warnings with mismatched sizes in arguments to DEBUG statements. 2013-01-19 12:14:13 +01:00
smb2_ioctl_private.h smb2_ioctl: split ioctl handler code on device type 2013-01-16 23:15:06 +01:00
smb2_ioctl.c smb2_ioctl: remove ioctl error response assumptions 2013-01-16 23:15:07 +01:00
smb2_keepalive.c
smb2_lock.c s3:smbd: remove struct member smbd_smb2_request.cancelled - it was only written 2012-09-22 10:19:00 +02:00
smb2_negprot.c s3:smb2_negprot: set the 'remote_proto' value 2013-01-09 09:11:20 +01:00
smb2_notify.c s3:smbd: remove struct member smbd_smb2_request.cancelled - it was only written 2012-09-22 10:19:00 +02:00
smb2_read.c s3:smb2_read: fix SMBD_SMB2_NUM_IOV_PER_REQ check for sendfile() support (bug #9341) 2012-10-30 16:49:26 +01:00
smb2_server.c smb2_server: Fix typo in comment. 2012-11-02 15:40:22 +01:00
smb2_sesssetup.c s3:smbd: initialize session->global before calling session_claim 2012-10-19 12:14:59 +02:00
smb2_setinfo.c Rename set_sd() to set_sd_blob() - this describes what it does. 2012-08-30 10:08:50 -07:00
smb2_tcon.c s3:smbd: fill tcon->global->session_global_id 2012-10-19 12:15:02 +02:00
smb2_write.c s3:smbd: remove struct member smbd_smb2_request.cancelled - it was only written 2012-09-22 10:19:00 +02:00
smbd.h Revert "s3:smbd: include smbXsrv.h before smbd/proto.h to have the smbXsrv_ structs available" 2012-08-10 17:35:38 +02:00
smbXsrv_open.c s3:smbXsrv_open: add smbXsrv_open_global_traverse() 2013-02-19 12:10:23 +01:00
smbXsrv_session.c s3:smbXsrv_session: pass record in smbXsrv_session_global_traverse() 2013-02-19 12:10:21 +01:00
smbXsrv_tcon.c s3:smbXsrv_tcon: pass record in smbXsrv_tcon_global_traverse() 2013-02-19 12:10:22 +01:00
smbXsrv_version.c s3:smbd: add smbXsrv_version_* infrastructure 2012-06-25 20:55:05 +02:00
srvstr.c
statcache.c Second part of fix for bug #8541 - readlink() on Linux clients fails if the symlink target is outside of the share. 2011-10-22 04:57:10 +02:00
statvfs.c s3: evaluate MNT_QUOTA and MNT_RDONLY in statvfs also on darwin 2012-07-05 22:00:52 +02:00
trans2.c Fix bug 9519 - Samba returns unexpected error on SMB posix open. 2013-02-12 22:59:21 +01:00
uid.c Fixup the change_to_user_by_session() case as called from become_user_by_session() 2013-01-09 15:29:47 +11:00
utmp.c s3:smbd: use session_global_id as session number for pam and utmp 2012-10-19 12:15:00 +02:00
vfs.c s3-vfs: add copy_chunk vfs hooks 2013-01-16 23:15:06 +01:00