1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source4
Stefan Metzmacher 5303f6f7fd s4:torture/smb2: add smb2.bench.read test
This test opens one file for each loop (for nprocs * qdepth loops)
and for each file it loops in read requests for the first
io_size bytes.

time smbtorture //127.0.0.1/m -Uroot%test smb2.bench.read \
        --option="torture:timelimit=600" \
        --option="torture:nprocs=1" \
        --option="torture:qdepth=4" \
        --option="torture:io_size=4096"

In order to generate constant load for profiles
--option="torture:looplimit=150000" can be used to stop
after the given number of loops before the timelimit hits.

Sometimes the bottleneck is the smbtorture process.
In order to bring the smbd process to 100% cpu, you can use
'--option="libsmb:client_guid=6112f7d3-9528-4a2a-8861-0ca129aae6c4"'
and run multiple instances of the test at the same time,
which both talk to the same smbd process.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Jun  1 08:14:23 UTC 2023 on atb-devel-224
2023-06-01 08:14:23 +00:00
..
auth s4:auth: Allocate user_info_dc->sids on correct talloc context 2023-05-24 00:50:31 +00:00
cldap_server cldap_server: Align integer types 2022-12-12 21:16:33 +00:00
client s4:client: Fix shellcheck errors in test_smbclient.sh 2022-08-22 14:20:36 +00:00
cluster dbwrap: Remove calls to loadparm 2018-04-24 01:53:19 +02:00
dns_server s4:dnsserver: Check all records, not just one 2023-03-03 01:07:36 +00:00
dsdb s4-dsdb:large_ldap: Call setUpClass() method of base class 2023-05-24 00:50:31 +00:00
echo_server s4: rename source4/smbd/ to source4/samba/ 2020-11-27 10:07:18 +00:00
include lib: Remove smb_threads from includes.h 2022-04-26 21:41:29 +00:00
kdc s4:kdc: Move parameter comments adjacent to parameters 2023-05-24 00:50:31 +00:00
ldap_server ldap_server: Implement the rfc4532 whoami exop 2023-04-26 06:27:31 +00:00
lib s4/messaging/py: Fix typo 2023-05-24 00:50:31 +00:00
libcli s3-librpc: add ads.idl and convert ads_struct to talloc. 2022-12-16 20:38:32 +00:00
libnet s4:libnet: cleanup py_net_time() 2023-04-03 03:56:35 +00:00
librpc netlogon:schannel: Fix NULL pointer dereference 2023-05-18 01:03:37 +00:00
nbt_server lib: Remove idtree from samba_util.h 2023-01-10 00:28:37 +00:00
ntp_signd s4: rename source4/smbd/ to source4/samba/ 2020-11-27 10:07:18 +00:00
ntvfs s4:ntvfs:posix: avoid parsing empty blob in posix_eadb_add_list() 2023-05-09 01:59:32 +00:00
param python: whitespace fixes 2022-10-03 20:03:32 +00:00
rpc_server s4-rpc_server: Filter via dsdb_dc_functional_level() before we are returning a lookup directly 2023-05-31 04:59:01 +00:00
samba Happy New Year 2023! 2023-01-01 00:24:02 +00:00
script s4:script: Fix shellcheck errors in find_unused_options.sh 2022-08-22 14:20:36 +00:00
scripting s4/scripting: fix % len(res) was in the wrong place 2023-05-05 05:54:11 +00:00
selftest selftest: Rework samba.tests.getdcname not to use ncalrpc 2023-05-29 22:32:28 +00:00
setup CVE-2023-0614 ldb: Prevent disclosure of confidential attributes 2023-04-05 02:10:35 +00:00
smb_server auth: Pass through entire PAC flags value in auth_user_info 2023-02-08 00:03:39 +00:00
torture s4:torture/smb2: add smb2.bench.read test 2023-06-01 08:14:23 +00:00
utils s4:utils: Fix shellcheck errors in test_samba_tool.sh 2022-08-22 20:35:36 +00:00
winbind CVE-2022-32746 ldb: Make use of functions for appending to an ldb_message 2022-07-27 10:52:36 +00:00
wrepl_server s4: rename source4/smbd/ to source4/samba/ 2020-11-27 10:07:18 +00:00
.clang_complete
.valgrind_suppressions
wscript_build s4:client: Migrate cifsdd to new cmdline option parser 2021-06-16 00:34:38 +00:00