|
Network performance - SAMBA - NFS June 29, 2016 12:01PM |
Admin Registered: 14 years ago Posts: 20,027 |
|
Re: Network performance - SAMBA - NFS June 29, 2016 12:17PM |
Registered: 11 years ago Posts: 1,037 |
dd if=/dev/urandom of=bigfile bs=512 count=1000000
uname -ar
time cp bigfile /mnt/samba/server/share #where /mnt/samba/server/share = your mounted share
time cp bigfile /mnt/nfs/server/share #where /mnt/nfs/server/share = your mounted shareThe "time" command will tell you how long it took.
time cp /mnt/samba/server/share/bigfile . #where /mnt/samba/server/share = your mounted share
time cp /mnt/nfs/server/share/bigfile . #where /mnt/nfs/server/share = your mounted shareThe "time" command will tell you how long it took.
|
Re: Network performance - SAMBA - NFS June 29, 2016 11:40PM |
Admin Registered: 14 years ago Posts: 20,027 |
time cp /mnt/samba/server/share/bigfile . #where /mnt/samba/server/share = your mounted share time cp /mnt/nfs/server/share/bigfile . #where /mnt/nfs/server/share = your mounted share
|
Re: Network performance - SAMBA - NFS June 30, 2016 02:12AM |
Registered: 12 years ago Posts: 169 |
|
Re: Network performance - SAMBA - NFS June 30, 2016 06:21AM |
Registered: 12 years ago Posts: 169 |
01:01:05 ~$ dd if=/dev/urandom of=bigfile bs=512 count=1000000 1000000+0 records in 1000000+0 records out 512000000 bytes transferred in 42.935120 secs (11924970 bytes/sec) 01:07:31 ~$ time cp bigfile /Volumes/Scans/ real 2m7.070s user 0m0.004s sys 0m0.607s 01:09:42 ~$ time cp /Volumes/Scans/bigfile ./bigfile.down real 0m46.476s user 0m0.005s sys 0m1.198s 01:12:58 ~$
root@lms:~# uname -ar Linux lms 3.2.0-4-kirkwood #1 Debian 3.2.78-1 armv5tel GNU/Linux
#======================= Global Settings ======================= [global] workgroup = WORKGROUP server string = %h server dns proxy = no log level = 0 syslog = 0 log file = /var/log/samba/log.%m max log size = 1000 syslog only = yes panic action = /usr/share/samba/panic-action %d encrypt passwords = true passdb backend = tdbsam obey pam restrictions = yes unix password sync = no passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . pam password change = yes socket options = TCP_NODELAY IPTOS_LOWDELAY guest account = nobody load printers = no disable spoolss = yes printing = bsd printcap name = /dev/null unix extensions = yes wide links = no create mask = 0777 directory mask = 0777 map to guest = Bad User use sendfile = yes aio read size = 16384 aio write size = 16384 null passwords = no local master = yes time server = no wins support = no #======================= Share Definitions ======================= [Scans] path = /media/6c76167f-2d6d-4453-b79b-c79a57e5e948/Scans/ guest ok = yes read only = no browseable = yes inherit acls = yes inherit permissions = no ea support = no store dos attributes = no printable = no create mask = 0755 force create mode = 0644 directory mask = 0755 force directory mode = 0755 hide dot files = yes read list = write list =
|
Re: Network performance - SAMBA - NFS July 02, 2016 04:22AM |
Registered: 11 years ago Posts: 1,037 |
Linux Smurfville 3.16.0-kirkwood-tld-3 #2 PREEMPT Sat Sep 27 02:01:41 PDT 2014 armv5tel GNU/Linux
dd if=/dev/urandom of=bigfile bs=512 count=1000000time cp bigfile /mnt/network/Backups/
real 0m35.817s user 0m0.060s sys 0m9.010stime cp /mnt/network/Backups/bigfile .
real 0m27.336s user 0m0.030s sys 0m13.330s
dd if=/dev/urandom of=bigfile bs=512 count=1000000time cp bigfile /mnt/network/samba/
real 0m35.387s user 0m0.070s sys 0m9.160stime cp /mnt/network/samba/bigfile .
real 0m26.752s user 0m0.080s sys 0m13.070s
|
Re: Network performance - SAMBA - NFS July 02, 2016 07:17AM |
Admin Registered: 14 years ago Posts: 20,027 |
|
Re: Network performance - SAMBA - NFS July 02, 2016 01:53PM |
Registered: 11 years ago Posts: 1,037 |
|
Re: Network performance - SAMBA - NFS July 02, 2016 05:31PM |
Registered: 11 years ago Posts: 1,037 |
Linux HP5325 4.6.0-kirkwood-tld-1 #1 PREEMPT Wed May 18 03:54:14 PDT 2016 armv5tel GNU/Linux
dd if=/dev/urandom of=bigfile bs=512 count=1000000time cp bigfile /mnt/network/nfs/Backups
real 0m51.342s user 0m0.040s sys 0m6.800stime cp /mnt/network/nfs/Backups/bigfile .
real 0m43.917s user 0m0.020s sys 0m11.450s
dd if=/dev/urandom of=bigfile bs=512 count=1000000time cp bigfile /mnt/network/samba
real 0m48.287s user 0m0.000s sys 0m7.630stime cp /mnt/network/samba/bigfile .
real 0m48.146s user 0m0.030s sys 0m9.210s
|
Re: Network performance - SAMBA - NFS July 02, 2016 11:25PM |
Admin Registered: 14 years ago Posts: 20,027 |
|
Re: Network performance - SAMBA - NFS July 04, 2016 01:57PM |
Registered: 11 years ago Posts: 1,037 |
|
Re: Network performance - SAMBA - NFS July 05, 2016 12:01AM |
Admin Registered: 14 years ago Posts: 20,027 |
|
Re: Network performance - SAMBA - NFS June 30, 2017 10:50PM |
Registered: 9 years ago Posts: 12 |
Linux IQ2700i 4.11.3-kirkwood-tld-2 #1 PREEMPT Tue Jun 6 17:01:17 PDT 2017 armv5tel GNU/Linux # cat /etc/debian_version 8.8
ethstats peak (100% CPU usage on NAS): egiga0: 10.54 Mb/s In 394.53 Mb/s Out - 17013.5 p/s In 32729.7 p/s Out iStats Menu Meters (Mac Pro 2008 10.12.5): 51.8MB/s peak - avg ~42MB/s
ethstats peak (100% CPU usage on NAS load avg 9.40): egiga0: 260.46 Mb/s In 1.16 Mb/s Out - 21890.0 p/s In 1020.0 p/s Out iStats Menu Meters (Mac Pro 2008 10.12.5): 33.3MB/s peak - avg ~29MB/s
MacPro:Desktop ludacrisvp$ dd if=/dev/urandom of=bigfile bs=512 count=1000000 1000000+0 records in 1000000+0 records out 512000000 bytes transferred in 47.029512 secs (10886781 bytes/sec)
MacPro:Desktop ludacrisvp$ time cp bigfile /Volumes/data/ real 0m13.919s user 0m0.006s sys 0m2.048s egiga0: 306.75 Mb/s In 1.24 Mb/s Out - 25631.3 p/s In 1125.1 p/s Out
MacPro:Desktop ludacrisvp$ time cp /Volumes/data/bigfile ./bigfile.down real 0m10.627s user 0m0.006s sys 0m1.223s egiga0: 6.92 Mb/s In 257.74 Mb/s Out - 11142.1 p/s In 21374.0 p/s Out
|
Re: Network performance - SAMBA - NFS January 06, 2025 02:06PM |
Admin Registered: 14 years ago Posts: 20,027 |
Linux version 6.12.6-kirkwood-tld-1 Debian 12.8The /etc/smb.conf on each of these 2 boxes is the Debian maintainer version (unchanged, except for Shares definition).
root@HomeMedia2:/media/HOME# dd if=/dev/urandom of=bigfile bs=512 count=1000000(bigfile2 and bigfile are identical)
root@HomeMedia2:/media/HOME# time cp bigfile /mnt/homemedia1/Misc/ &real 0m26.806s
root@HomeMedia2:/media/HOME/Misc# time cp /mnt/homemedia1/Misc/bigfile2 . &real 0m42.642s
root@HomeMedia1:/media/HOME/Misc# time cp bigfile2 /mnt/homemedia2/Misc/ &real 0m25.306s
root@HomeMedia1:/media/HOME/Misc# time cp /mnt/homemedia2/Misc/bigfile2 . &real 0m42.653s
|
Re: Network performance - SAMBA - NFS January 06, 2025 06:05PM |
Registered: 1 year ago Posts: 48 |
# uname -rm 6.12.6-kirkwood-tld-1 armv5tel # cat /etc/debian_version 12.8
mac$ dd if=/dev/urandom of=bigfile bs=512 count=1000000 1000000+0 records in 1000000+0 records out 512000000 bytes transferred in 2.103410 secs (243414265 bytes/sec) mac$ time cp bigfile /Volumes/gfn_vol1/ real 0m28.436s user 0m0.003s sys 0m1.115s mac$ time cp /Volumes/gfn_vol1/bigfile bigfile.down real 0m21.279s user 0m0.003s sys 0m0.860s mac$ rm /Volumes/gfn_vol1/bigfile
m300$ uname -rm 6.12.6-kirkwood-tld-1 armv5tel m300$ cat /etc/debian_version 12.8 m300$ dd if=/dev/urandom of=bigfile bs=512 count=1000000 1000000+0 records in 1000000+0 records out 512000000 bytes (512 MB, 488 MiB) copied, 33.3406 s, 15.4 MB/s m300$ time cp bigfile /nfs/gfn_vol1/ real 0m38.865s user 0m0.002s sys 0m7.409s m300$ time cp /nfs/gfn_vol1/bigfile bigfile.down real 0m26.832s user 0m0.001s sys 0m9.741s
|
Re: Network performance - SAMBA - NFS January 06, 2025 08:05PM |
Admin Registered: 14 years ago Posts: 20,027 |
Quote
m300$ time cp bigfile /nfs/gfn_vol1/
real 0m38.865s
user 0m0.002s
sys 0m7.409s
m300$ time cp /nfs/gfn_vol1/bigfile bigfile.down
real 0m26.832s
user 0m0.001s
sys 0m9.741s
|
Re: Network performance - SAMBA - NFS December 26, 2025 11:33AM |
Registered: 30 days ago Posts: 17 |
lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 12 (bookworm) Release: 12 Codename: bookworm
uname -a Linux N2350 6.17.7-mvebu-tld-1 #1 SMP PREEMPT Tue Nov 4 16:19:08 PST 2025 armv7l GNU/Linux
smbd --version Version 4.17.12-Debian
iperf3 -c 192.168.36.3 -4 -p 34276 -R Connecting to host 192.168.36.3, port 34276 Reverse mode, remote host 192.168.36.3 is sending [ 5] local 192.168.36.57 port 43060 connected to 192.168.36.3 port 34276 [ ID] Interval Transfer Bitrate [ 5] 0.00-1.00 sec 112 MBytes 939 Mbits/sec [ 5] 1.00-2.00 sec 112 MBytes 942 Mbits/sec [ 5] 2.00-3.00 sec 111 MBytes 930 Mbits/sec [ 5] 3.00-4.00 sec 112 MBytes 939 Mbits/sec iperf3 -c 192.168.36.3 -4 -p 34276 Connecting to host 192.168.36.3, port 34276 [ 5] local 192.168.36.57 port 52206 connected to 192.168.36.3 port 34276 [ ID] Interval Transfer Bitrate Retr Cwnd [ 5] 0.00-1.00 sec 113 MBytes 946 Mbits/sec 0 452 KBytes [ 5] 1.00-2.00 sec 112 MBytes 942 Mbits/sec 0 499 KBytes [ 5] 2.00-3.00 sec 112 MBytes 936 Mbits/sec 0 551 KBytes
# read test
fio --name=seqread --filename=/mnt/hdd1_system/testperformance --direct=1 --rw=read --bs=128k \
--size=2G --numjobs=1 --time_based --runtime=60 --group_reporting
Run status group 0 (all jobs):
READ: bw=153MiB/s (160MB/s), 153MiB/s-153MiB/s (160MB/s-160MB/s), io=9170MiB (9615MB), run=60001-60001msec
Disk stats (read/write):
sda: ios=73248/4, merge=0/1, ticks=51860/79, in_queue=52015, util=86.25%
# write test
fio --name=seqwrite --filename=/mnt/hdd1_system/testperformance --direct=1 --rw=write --bs=128k \
--size=2G --numjobs=1 --time_based --runtime=60 --group_reporting
Run status group 0 (all jobs):
WRITE: bw=147MiB/s (154MB/s), 147MiB/s-147MiB/s (154MB/s-154MB/s), io=8839MiB (9268MB), run=60001-60001msec
Disk stats (read/write):
sda: ios=0/70567, merge=0/11, ticks=0/52410, in_queue=53274, util=85.83%
sysbench --test=cpu --cpu-max-prime=2000 --num-threads=2 run
WARNING: the --test option is deprecated. You can pass a script name or path on the command line without any options.
WARNING: --num-threads is deprecated, use --threads instead
sysbench 1.0.20 (using system LuaJIT 2.1.0-beta3)
Running the test with following options:
Number of threads: 2
Initializing random number generator from current time
Prime numbers limit: 2000
Initializing worker threads...
Threads started!
CPU speed:
events per second: 1025.91
General statistics:
total time: 10.0014s
total number of events: 10271
Latency (ms):
min: 1.91
avg: 1.95
max: 2.84
95th percentile: 1.96
sum: 19977.28
Threads fairness:
events (avg/stddev): 5135.5000/15.50
execution time (avg/stddev): 9.9886/0.00
top - 18:31:38 up 4:48, 1 user, load average: 1.89, 1.00, 0.60 Tasks: 127 total, 1 running, 126 sleeping, 0 stopped, 0 zombie %Cpu(s): 0.5 us, 62.4 sy, 0.0 ni, 32.4 id, 1.0 wa, 0.0 hi, 3.7 si, 0.0 st MiB Mem : 996.4 total, 110.5 free, 312.6 used, 799.3 buff/cache MiB Swap: 6144.0 total, 6127.4 free, 16.6 used. 683.8 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 12118 smb_rw_+ 20 0 83636 18448 11984 S 97.0 1.8 2:51.63 smbd 1482 root 20 0 0 0 0 S 26.2 0.0 5:11.97 jbd2/sda5-8
scp -P 45697 'loooong_path_to_my_file' root@192.168.36.3:/mnt/hdd1/ root@192.168.36.3's password: my_file_name......... 53% 511MB 16.7MB/s 00:27 ETA^
top - 19:08:40 up 5:25, 1 user, load average: 0.93, 0.53, 0.51 Tasks: 133 total, 2 running, 131 sleeping, 0 stopped, 0 zombie %Cpu(s): 23.3 us, 58.0 sy, 0.0 ni, 9.7 id, 1.3 wa, 0.0 hi, 7.7 si, 0.0 st MiB Mem : 996.4 total, 109.5 free, 323.7 used, 787.3 buff/cache MiB Swap: 6144.0 total, 6124.9 free, 19.1 used. 672.7 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 14053 root 20 0 2484 2160 1264 S 74.6 0.2 0:13.06 sftp-server 14037 root 20 0 16404 12260 6344 R 64.7 1.2 0:13.47 sshd 1482 root 20 0 0 0 0 S 26.4 0.0 6:29.18 jbd2/sda5-8 53 root 20 0 0 0 0 S 3.6 0.0 0:56.15 kswapd0 12778 root 20 0 0 0 0 I 2.6 0.0 0:00.26 kworker/u9:1-events_unbound 11468 root 20 0 0 0 0 I 2.3 0.0 0:06.46 kworker/u9:0-events_unbound 12561 root 20 0 0 0 0 I 0.7 0.0 0:01.19 kworker/1:2-events 13824 root 20 0 11252 4384 2360 R 0.7 0.4 0:01.89 top
|
Re: Network performance - SAMBA - NFS December 26, 2025 02:31PM |
Admin Registered: 14 years ago Posts: 20,027 |
Quote
Memory & Swap Settings
Tuning for low RAM boxes - System and HDD performance.
|
Re: Network performance - SAMBA - NFS December 26, 2025 02:57PM |
Registered: 30 days ago Posts: 17 |
|
Re: Network performance - SAMBA - NFS December 26, 2025 05:39PM |
Admin Registered: 14 years ago Posts: 20,027 |
|
Re: Network performance - SAMBA - NFS December 26, 2025 10:59PM |
Registered: 10 years ago Posts: 486 |
|
Re: Network performance - SAMBA - NFS December 27, 2025 02:00AM |
Registered: 30 days ago Posts: 17 |
RPCNFSDCOUNT=8 RPCNFSDPRIORITY=0 RPCNFSDOPTS="-N 2 -N 3 -V 4 -V 4.1 -V 4.2" RPCMOUNTDOPTS="--manage-gids -N 2 -N 3" NEED_SVCGSSD=no RPCNFSDTHREADCOUNT=8
[General] Domain = localdomain Verbosity = 0 [Mapping] Nobody-User = nobody Nobody-Group = nogroup [Translation] Method = nsswitch [Static]
setfacl -R -m u:nobody:rwx /mnt/hdd1/movies setfacl -R -m g:nogroup:rwx /mnt/hdd1/movies
/mnt/hdd1 192.168.36.57(fsid=0,rw,sync,no_subtree_check,crossmnt,all_squash) /mnt/hdd1/movies 192.168.36.57(rw,async,no_subtree_check,all_squash,anonuid=65534,anongid=65534)
exportfs -ra
mkdir /media/nas01_nfs4 mount -t nfs4 -o vers=4.2,proto=tcp 192.168.36.3:/movies /media/nas01_nfs4