I thing I have narrow the issue. After restarting samba service, instead of entire NAS, transfer is on about 8 MB/s level and is continuously dropping down.
The box is currently running Alt-F 1.0 with kernel 4.4.86, and is
flashed with "Alt-F-1.0, initrd" and kernel "Alt-F-1.0, kernel 4.4.86".
Hello Jarek,I can confirm this behaviour on my DNS-323-A1, RAID1 using 2x SAMSUNG HD154UI (1,5TB each).
The box is currently running Alt-F 1.0 with kernel 4.4.86, and is
flashed with "Alt-F-1.0, initrd" and kernel "Alt-F-1.0, kernel 4.4.86".
As I am in a Linux-only environment, I solved this by using NFS (instead of SAMBA).
NFS is faster for me, however I can confirm that I had the same behaviour as decribed by you using SAMBA.
==> First 8 MB/s, then dropping to 2 MB/s when I copy to the DNS-323.
@Joao: This makes me think that RAID1 could be the common denominator, as all other things seem different?BRRoRi
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alt-f/1633bb92-0f64-42fa-a209-5a277527dbbb%40googlegroups.com.
smb passwd file = /etc/samba/smbpasswd
username map = /etc/samba/smbusers
So... I have installed Entware samba as you said. I have copied smb.conf file and smbpasswd and smbusers to /opt/etc/samba/. But I think it is not necessary as in smb.conf file there is a referrer to smbpasswd and smbusers as shown:
smb passwd file = /etc/samba/smbpasswd
username map = /etc/samba/smbusersBefore launching entware samba I'm stopping alt-f samba. But I can't start Entware samba via web interface or /opt/etc/init.d/S08samba. When I do it, instead of starting entware samba, standard Alt-f samba launches.
#!/bin/sh
#
# startfile for entware-samba, written by linux.tinkerer at gmail.com
# For Ily's FW of Asus Routers
# store this script in /opt/etc/init.d if you've installed entware
# Prgmname=/full_path/Prgmname
prgmname1="/opt/sbin/nmbd"
prgmname2="/opt/sbin/smbd"
# configfile=/full_path/configfile
configfile="/opt/etc/samba/smb.conf"
#location of pid-file
nmbdpid="/opt/var/run/nmbd.pid"
smbdpid="/opt/var/run/smbd.pid"
# Changes from here till the end, use Entware rc.funcs
ENABLED=yes
PROCS="nmbd smbd"
ARGS="-D -s $configfile"
PREARGS=""
DESC=$PROCS
PATH=/opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# check and remove stale pid
if ! pidof $PROCS 1>/dev/null 2>&1; then
rm -f /opt/var/run/$PROCS.pid
fi
. /opt/etc/init.d/rc.func
"Help me Obiwan Kenobi" :)
Thanks João!Now I see where I was wrong. I didn't check /var/run/samba or /opt/var/run in search for smbd.pid file...
ls -l /proc/$(pidof smbd)/exe
I was only relying on www interface status. That was confusing to me when I launched entware samba and saw smb status "running" in Services->Network Services but "stopped" status on Services->User->entware->[configure button]->samba. After modification of S08samba as you said I have entware samba service status properly "running". Great!I must say that entware samba is more efficient on my DNS-323 than Alt-f's samba.
Upload speed (PC to NAS transfer) is more less 1,5-2 MB/s faster. I have also noticed better CPU utilization. When I was copying files on Alt-f samba I had problems with listing directories and files on remote share. It was very slow process to access file list or I had timeout. Doing something on ssh session was also terribly slow.
Entware samba is much faster in the same conditions. I don't have timeouts when listing directories/files when copying to samba share.
Despite of this improvement I still have the same slowing copying problem :) At the beginning of copying a bunch of files I have transfers about 10 MB/s (vs 8 MB/s on Alt-f samba). After a hour it drops to more less 1 MB/s. ). Samba restart repair this problem.
But as I said - NAS is more responsible now. It is crucial to me because Windows 10 backup service works smoothly now (i'm still testing but first tests are promising.
The tests were made on folder that has 5140 files displaced in 106 folders - 31 GB total. Earlier tests were made on greater amount of files. There were photos (jpgs and raws) an also bigger ones (some video files for example).
But I have copied them to NAS already :) so It would be time consuming to copy it again to PC and again to NAS. I think it's not relevant here. Anyway, current test file and folder structure is:Photo:-folder1 containing more less 10-100 *.CR2 (raw photo files, 11-15 MB each CR2 file)--jpg1 folder contenting *.jpg files in the same amount as in folder1 CR2 files (3-4,5 MB each jpg file)-folder2 containing more less 10-100 *.CR2 (raw photo files, 11-15 MB each CR2 file)--jpg2 folder contenting *.jpg files in the same amount as in folder2 CR2 files (3-4,5 MB each jpg file)-folder3 containing more less 10-100 *.CR2 (raw photo files, 11-15 MB each CR2 file)--jpg3 folder contenting *.jpg files in the same amount as in folder3 CR2 files (3-4,5 MB each jpg file)...-folderNIt's much of improvement but do you have any idea how to improve it more? :D
On Sunday, 23 February 2020 22:46:46 UTC, Jarek Pe wrote:Thanks João!Now I see where I was wrong. I didn't check /var/run/samba or /opt/var/run in search for smbd.pid file...Actually I should have told you to use the command
ls -l /proc/$(pidof smbd)/exethat unequivocally shows the path of the binary being executed, /mnt/sdc3/opt/sbin/samba_multicall in my case.I was only relying on www interface status. That was confusing to me when I launched entware samba and saw smb status "running" in Services->Network Services but "stopped" status on Services->User->entware->[configure button]->samba. After modification of S08samba as you said I have entware samba service status properly "running". Great!I must say that entware samba is more efficient on my DNS-323 than Alt-f's samba.Yes, I know, they don't need to compile it for (flash-memory) space saving, they compile it for execution speed. They also apply patches to remove some generally not needed samba functionalities; otherwise it is exactly the same version that Alt-F uses.Upload speed (PC to NAS transfer) is more less 1,5-2 MB/s faster. I have also noticed better CPU utilization. When I was copying files on Alt-f samba I had problems with listing directories and files on remote share. It was very slow process to access file list or I had timeout. Doing something on ssh session was also terribly slow.Because CPU/memory was actively being used by samba? That's the only explanation.Entware samba is much faster in the same conditions. I don't have timeouts when listing directories/files when copying to samba share.It would be interesting to diagnose why that happens.
Temperature
45.5°C/113°F
Fan speed
3510
Load
17.81
CPU
100%
Memory
83% of 64MB
Swap
53% of 1023MB
Mem: 58048K used, 2608K free, 0K shrd, 4048K buff, 723484K cached
CPU: 3% usr 26% sys 0% nic 0% idle 65% io 0% irq 4% sirq
Load average: 15.12 15.06 15.79 1/94 2386
PID PPID USER STAT VSZ %VSZ %CPU COMMAND
2380 663 root D 2640 4% 5% stunnel /etc/stunnel/stunnel-https.conf
1966 663 root S 1480 2% 3% dropbear -i
1319 2102 root D 44152 73% 2% smbd -D -s /opt/etc/samba/smb.conf
843 2102 root D 77036 127% 2% smbd -D -s /opt/etc/samba/smb.conf
2271 2102 root D 55044 91% 2% smbd -D -s /opt/etc/samba/smb.conf
4015 2102 root D 45940 76% 2% smbd -D -s /opt/etc/samba/smb.conf
2659 2102 root D 165m 279% 2% smbd -D -s /opt/etc/samba/smb.conf
2798 2102 root D 45788 75% 2% smbd -D -s /opt/etc/samba/smb.conf
2850 2102 root D 36468 60% 2% smbd -D -s /opt/etc/samba/smb.conf
2341 2010 root R 1204 2% 2% top
74 2 root SW< 0 0% 2% [kworker/0:1H]
3642 2102 root D 100m 170% 2% smbd -D -s /opt/etc/samba/smb.conf
3 2 root SW 0 0% 2% [ksoftirqd/0]
2508 2102 root D 53112 88% 1% smbd -D -s /opt/etc/samba/smb.conf
1937 2 root SW 0 0% 1% [kworker/0:0]
14 2 root DW 0 0% 1% [kswapd0]
3384 2102 root D 35000 58% 1% smbd -D -s /opt/etc/samba/smb.conf
2016 2015 root D 1288 2% 1% {status.cgi} /bin/sh status.cgi
1070 1069 twonky S 13364 22% 1% /opt/twonky/twonkyserver -appdata /var/lib/twonky -inifile /etc/twonky/twonky.conf -logfile /var/log/twonky/twonky.log
1086 1069 twonky S 13364 22% 0% /opt/twonky/twonkyserver -appdata /var/lib/twonky -inifile /etc/twonky/twonky.conf -logfile /var/log/twonky/twonky.log
574 1 root S 592 1% 0% sysctrl
1083 1069 twonky S 13364 22% 0% /opt/twonky/twonkyserver -appdata /var/lib/twonky -inifile /etc/twonky/twonky.conf -logfile /var/log/twonky/twonky.log
1069 1068 twonky S 13364 22% 0% /opt/twonky/twonkyserver -appdata /var/lib/twonky -inifile /etc/twonky/twonky.conf -logfile /var/log/twonky/twonky.log
1081 1069 twonky S 13364 22% 0% /opt/twonky/twonkyserver -appdata /var/lib/twonky -inifile /etc/twonky/twonky.conf -logfile /var/log/twonky/twonky.log
1096 1069 twonky S 13364 22% 0% /opt/twonky/twonkyserver -appdata /var/lib/twonky -inifile /etc/twonky/twonky.conf -logfile /var/log/twonky/twonky.log
1071 1069 twonky S 13364 22% 0% /opt/twonky/twonkyserver -appdata /var/lib/twonky -inifile /etc/twonky/twonky.conf -logfile /var/log/twonky/twonky.log
1079 1069 twonky S 13364 22% 0% /opt/twonky/twonkyserver -appdata /var/lib/twonky -inifile /etc/twonky/twonky.conf -logfile /var/log/twonky/twonky.log
1077 1069 twonky S 13364 22% 0% /opt/twonky/twonkyserver -appdata /var/lib/twonky -inifile /etc/twonky/twonky.conf -logfile /var/log/twonky/twonky.log
1068 1 twonky S 13364 22% 0% /opt/twonky/twonkyserver -appdata /var/lib/twonky -inifile /etc/twonky/twonky.conf -logfile /var/log/twonky/twonky.log
1082 1069 twonky S 13364 22% 0% /opt/twonky/twonkyserver -appdata /var/lib/twonky -inifile /etc/twonky/twonky.conf -logfile /var/log/twonky/twonky.log
1080 1069 twonky S 13364 22% 0% /opt/twonky/twonkyserver -appdata /var/lib/twonky -inifile /etc/twonky/twonky.conf -logfile /var/log/twonky/twonky.log
1088 1069 twonky S 13364 22% 0% /opt/twonky/twonkyserver -appdata /var/lib/twonky -inifile /etc/twonky/twonky.conf -logfile /var/log/twonky/twonky.log
1078 1069 twonky S 13364 22% 0% /opt/twonky/twonkyserver -appdata /var/lib/twonky -inifile /etc/twonky/twonky.conf -logfile /var/log/twonky/twonky.log
2102 1 root S 5560 9% 0% smbd -D -s /opt/etc/samba/smb.conf
2068 1 root S 5264 9% 0% nmbd -D -s /opt/etc/samba/smb.conf
2008 663 root S 2640 4% 0% stunnel /etc/stunnel/stunnel-https.conf
2042 2036 root S 2312 4% 0% /usr/lib/sftp-server
603 1 root S 1936 3% 0% smartd -i 1800
1993 663 root S 1224 2% 0% dropbear -i
485 1 root S 1224 2% 0% syslogd -C -m 0 -D
617 1 root S 1216 2% 0% crond
2015 2008 root S 1212 2% 0% httpd -ifh /usr/www
663 1 root S 1208 2% 0% inetd
2010 1966 root S 1208 2% 0% -sh
1 0 root S 1204 2% 0% init
974 1 root S 1204 2% 0% /bin/sh --
975 1 root S 1200 2% 0% {watch-inetd.sh} /bin/sh /usr/sbin/watch-inetd.sh
2036 1993 root S 1200 2% 0% sh -c /usr/lib/sftp-server
488 1 root S 1192 2% 0% klogd
2376 975 root S 1188 2% 0% sleep 180
72 2 root SW< 0 0% 0% [loop0]
359 2 root SW 0 0% 0% [md0_raid1]
462 2 root SW 0 0% 0% [jbd2/md0-8]
754 2 root SW 0 0% 0% [kworker/0:1]
1356 2 root SW 0 0% 0% [kworker/0:3]
570 2 root SW 0 0% 0% [kworker/u2:1]
7 2 root SW< 0 0% 0% [writeback]
2 0 root SW 0 0% 0% [kthreadd]
39 2 root SW 0 0% 0% [scsi_eh_1]
37 2 root SW 0 0% 0% [scsi_eh_0]
50 2 root SW< 0 0% 0% [bioset]
32 2 root SW< 0 0% 0% [bioset]
9 2 root SW< 0 0% 0% [bioset]
30 2 root SW< 0 0% 0% [bioset]
35 2 root SW< 0 0% 0% [bioset]
36 2 root SW< 0 0% 0% [bioset]
Despite of this improvement I still have the same slowing copying problem :) At the beginning of copying a bunch of files I have transfers about 10 MB/s (vs 8 MB/s on Alt-f samba). After a hour it drops to more less 1 MB/s. ). Samba restart repair this problem.Have you tried to restart samba without canceling the current copy operation? Will windows recover from the temporary server fault? I'm afraid that I'm not really a windows userBut as I said - NAS is more responsible now. It is crucial to me because Windows 10 backup service works smoothly now (i'm still testing but first tests are promising.I use a DNS-325 with Alt-F smbd to make windows-10 backups (using Windows File History and windows-7 kind backups) without any issues.The tests were made on folder that has 5140 files displaced in 106 folders - 31 GB total. Earlier tests were made on greater amount of files. There were photos (jpgs and raws) an also bigger ones (some video files for example).Thanks for the details, they are necessary if I need to reproduce the situation.
W dniu poniedziałek, 24 lutego 2020 20:45:03 UTC+1 użytkownik João Cardoso napisał:
On Sunday, 23 February 2020 22:46:46 UTC, Jarek Pe wrote:
"No worries"... on Entware samba I have reached the same problem after 24hrs of windows 10 backup process - unfinished. I had to cancel it because my NAS was fried :) Here is webUI status:
Temperature
45.5°C/113°F
Fan speed
3510
Load
17.81
CPU
100%
Memory
83% of 64MB
Swap
53% of 1023MB
After clicking on any other tab of webUI it became unresponsive.
So I have launched ssh session and this is what top said:
Mem: 58048K used, 2608K free, 0K shrd, 4048K buff, 723484K cached
CPU: 3% usr 26% sys 0% nic 0% idle 65% io 0% irq 4% sirq
Load average: 15.12 15.06 15.79 1/94 2386
PID PPID USER STAT VSZ %VSZ %CPU COMMAND
1319 2102 root D 44152 73% 2% smbd -D -s /opt/etc/samba/smb.conf
843 2102 root D 77036 127% 2% smbd -D -s /opt/etc/samba/smb.conf
2271 2102 root D 55044 91% 2% smbd -D -s /opt/etc/samba/smb.conf
4015 2102 root D 45940 76% 2% smbd -D -s /opt/etc/samba/smb.conf
2659 2102 root D 165m 279% 2% smbd -D -s /opt/etc/samba/smb.conf
2798 2102 root D 45788 75% 2% smbd -D -s /opt/etc/samba/smb.conf
2850 2102 root D 36468 60% 2% smbd -D -s /opt/etc/samba/smb.conf
3642 2102 root D 100m 170% 2% smbd -D -s /opt/etc/samba/smb.
conf
...
2508 2102 root D 53112 88% 1% smbd -D -s /opt/etc/samba/smb.conf
...
3384 2102 root D 35000 58% 1% smbd -D -s /opt/etc/samba/smb.
conf
...
1070 1069 twonky S 13364 22% 1% /opt/twonky/twonkyserver -appdata /var/lib/twonky -inifile /etc/twonky/twonky.conf -logfile /var/log/twonky/twonky.log
2102 1 root S 5560 9% 0% smbd -D -s /opt/etc/samba/smb.conf
2068 1 root S 5264 9% 0% nmbd -D -s /opt/etc/samba/smb.conf
On Monday, February 24, 2020 at 10:04:36 PM UTC, Jarek Pe wrote:
W dniu poniedziałek, 24 lutego 2020 20:45:03 UTC+1 użytkownik João Cardoso napisał:
On Sunday, 23 February 2020 22:46:46 UTC, Jarek Pe wrote:..."No worries"... on Entware samba I have reached the same problem after 24hrs of windows 10 backup process - unfinished. I had to cancel it because my NAS was fried :) Here is webUI status:
Temperature
45.5°C/113°F
Fan speed
3510Temperature is not high, neither the fan speed, it can go up to 6000RPM.If your disks are hotter and you are concerned about that, you can set the fan speed higher, see Services->System,sysctrl,Configure. Read its online help (blue (?) icon)
Load
17.81Now, that is something! you have 18 processes ready to run ASAP. That is not good.
CPU
100%
Memory
83% of 64MB
Swap
53% of 1023MBneither that, swapping! For the current running processes to run comfortably the box should have ~600MB of memory. Linux is doing its best to emulate that amount of memory using slow disk.
After clicking on any other tab of webUI it became unresponsive.The contention for CPU/memory only increased from 18 processes to 19 or 20. Give it time :-)
Temperature
44.5°C/112°F
Fan speed
3212
Load
3.37
CPU
100%
Memory
71% of 64MB
Swap
38% of 1023MB
Mem: 52204K used, 8452K free, 0K shrd, 3696K buff, 722972K cached
CPU: 0% usr 3% sys 0% nic 0% idle 95% io 0% irq 0% sirq
Load average: 3.33 3.25 2.83 1/86 2745
PID PPID USER STAT VSZ %VSZ %
CPU COMMAND
3740 1984 root R 1204 2% 1% top
3200 3110 root D 262m 443% 1% smbd -D -s /opt/etc/samba/smb.conf
1392 3110 root D 144m 244% 1% smbd -D -s /opt/etc/samba/smb.conf
1768 584 root S 1804 3% 1% dropbear -i
1015 1014 twonky S 13284 22% 0% /opt/twonky/twonkyserver -appdata /var/lib/twonky -inifile /etc/twonky/twonky.conf -logfile /var/log/twonky/twonky.log
1046 1014 twonky S 13284 22% 0% /opt/twonky/twonkyserver -appdata /var/lib/twonky -inifile /etc/twonky/twonky.conf -logfile /var/log/twonky/twonky.log
1060 1014 twonky S 13284 22% 0% /opt/twonky/twonkyserver -appdata /var/lib/twonky -inifile /etc/twonky/twonky.conf -logfile /var/log/twonky/twonky.log
506 1 root S 592 1% 0% sysctrl
14 2 root SW 0 0% 0% [kswapd0]
74 2 root SW< 0 0% 0% [kworker/0:1H]
3 2 root SW 0 0% 0% [ksoftirqd/0]
2311 2 root SW 0 0% 0% [kworker/0:2]
2365 2 root SW 0 0% 0% [kworker/u2:2]
1014 1006 twonky S 13284 22% 0% /opt/twonky/twonkyserver -appdata /var/lib/twonky -inifile /etc/twonky/twonky.conf -logfile /var/log/twonky/twonky.log
1049 1014 twonky S 13284 22% 0% /opt/twonky/twonkyserver -appdata /var/lib/twonky -inifile /etc/twonky/twonky.conf -logfile /var/log/twonky/twonky.log
1044 1014 twonky S 13284 22% 0% /opt/twonky/twonkyserver -appdata /var/lib/twonky -inifile /etc/twonky/twonky.conf -logfile /var/log/twonky/twonky.log
1006 1 twonky S 13284 22% 0% /opt/twonky/twonkyserver -appdata /var/lib/twonky -inifile /etc/twonky/twonky.conf -logfile /var/log/twonky/twonky.log
1034 1014 twonky S 13284 22% 0% /opt/twonky/twonkyserver -appdata /var/lib/twonky -inifile /etc/twonky/twonky.conf -logfile /var/log/twonky/twonky.log
1040 1014 twonky S 13284 22% 0% /opt/twonky/twonkyserver -appdata /var/lib/twonky -inifile /etc/twonky/twonky.conf -logfile /var/log/twonky/twonky.log
1045 1014 twonky S 13284 22% 0% /opt/twonky/twonkyserver -appdata /var/lib/twonky -inifile /etc/twonky/twonky.conf -logfile /var/log/twonky/twonky.log
1041 1014 twonky S 13284 22% 0% /opt/twonky/twonkyserver -appdata /var/lib/twonky -inifile /etc/twonky/twonky.conf -logfile /var/log/twonky/twonky.log
1043 1014 twonky S 13284 22% 0% /opt/twonky/twonkyserver -appdata /var/lib/twonky -inifile /etc/twonky/twonky.conf -logfile /var/log/twonky/twonky.log
1050 1014 twonky S 13284 22% 0% /opt/twonky/twonkyserver -appdata /var/lib/twonky -inifile /etc/twonky/twonky.conf -logfile /var/log/twonky/twonky.log
1042 1014 twonky S 13284 22% 0% /opt/twonky/twonkyserver -appdata /var/lib/twonky -inifile /etc/twonky/twonky.conf -logfile /var/log/twonky/twonky.log
3110 1 root S 5560 9% 0% smbd -D -s /opt/etc/samba/smb.conf
3105 1 root S 5264 9% 0% nmbd -D -s /opt/etc/samba/smb.conf
3806 3803 SeSim S 2320 4% 0% /usr/lib/sftp-server
2027 2026 root S 2308 4% 0% /usr/lib/sftp-server
528 1 root S 1936 3% 0% smartd -i 1800
3792 584 root S 1804 3% 0% dropbear -i
3801 3792 SeSim S 1224 2% 0% -sh
3799 584 root S 1224 2% 0% dropbear -i
1915 584 root S 1224 2% 0% dropbear -i
466 1 root S 1224 2% 0% syslogd -C -m 0 -D
540 1 root S 1216 2% 0% crond
1984 1768 root S 1216 2% 0% -sh
584 1 root S 1208 2% 0% inetd
1 0 root S 1204 2% 0% init
849 1 root S 1204 2% 0% /bin/sh --
850 1 root S 1200 2% 0% {watch-inetd.sh} /bin/sh /usr/sbin/watch-inetd.sh
3803 3799 SeSim S 1200 2% 0% sh -c /usr/lib/sftp-server
2026 1915 root S 1200 2% 0% sh -c /usr/lib/sftp-server
469 1 root S 1192 2% 0% klogd
2473 850 root S 1188 2% 0% sleep 180
72 2 root SW< 0 0% 0% [loop0]
359 2 root SW 0 0% 0% [md0_raid1]
868 2 root SW 0 0% 0% [jbd2/md0-8]
2017 2 root SW 0 0% 0% [kworker/0:1]
1878 2 root SW 0 0% 0% [kworker/u2:0]
2239 2 root SW 0 0% 0% [kworker/0:0]
2 0 root SW 0 0% 0% [kthreadd]
39 2 root SW 0 0% 0% [scsi_eh_1]
37 2 root SW 0 0% 0% [scsi_eh_0]
11 2 root SW< 0 0% 0% [ata_sff]
9 2 root SW< 0 0% 0% [bioset]
12 2 root SW< 0 0% 0% [md]
27 2 root SW< 0 0% 0% [bioset]
32 2 root SW< 0 0% 0% [bioset]
33 2 root SW< 0 0% 0% [bioset]
10 2 root SW< 0 0% 0% [kblockd]
35 2 root SW< 0 0% 0% [bioset]
36 2 root SW< 0 0% 0% [bioset]
869 2 root SW< 0 0% 0% [ext4-rsv-conver]
34 2 root SW< 0 0% 0% [bioset]
15 2 root SW 0 0% 0% [fsnotify_mark]
40 2 root SW< 0 0% 0% [scsi_tmf_1]
The default values above are 0, meaning that there are no limits, which is not true. Thus win-10 bad manners are justifiable.The value 2 above should allow another user to still use the box for trivial operations, but you can try restricting that yet more.Remember, I'm not a windows user and I have no samba expertise, you might have to search for other ways to use samba on memory and CPU restricted computers.Another possibility for win-10 "bad manners" is that given the lack of a timely response from the box, due to swapping/paging, win-10 will open another connection. "async smb echo handler = yes" or "deadtime = 5" (minutes) might help in this case. Don't know, just reading the manual page.
BTW, what filesystem are you using?
...
On Tuesday, February 25, 2020 at 2:54:40 AM UTC+1, Joao Cardoso wrote:
On Monday, February 24, 2020 at 10:04:36 PM UTC, Jarek Pe wrote:
W dniu poniedziałek, 24 lutego 2020 20:45:03 UTC+1 użytkownik João Cardoso napisał:
On Sunday, 23 February 2020 22:46:46 UTC, Jarek Pe wrote:...
Mem: 52204K used, 8452K free, 0K shrd, 3696K buff, 722972K cached
CPU: 0% usr 3% sys 0% nic 0% idle 95% io 0% irq 0% sirq
Load average: 3.33 3.25 2.83 1/86 2745
PID PPID USER STAT VSZ %VSZ %CPU COMMAND
3740 1984 root R 1204 2% 1% top
3200 3110 root D 262m 443% 1% smbd -D -s /opt/etc/samba/smb.conf
1392 3110 root D 144m 244% 1% smbd -D -s /opt/etc/samba/smb.conf
1768 584 root S 1804 3% 1% dropbear -
I have very high io usage but load is quite nice. I can work with webUI, it's slower but acceptable.What does it mean when VSZ = 262m and %VSZ = 443% ?
Sorry Joao I didn't know that it is impossible to solve this issue
and I did it ;)
OK, I'm cheating a little bit but who cares! It works :PI was thinking about the limitation of hardware - slow CPU, very limited RAM etc. General issue is when samba reserve/addresses space on file system for new files. If there is a lot of them queue arise and we encounter this slowing problem and memory leaking and the end. So how to rid of numerous files during transfer? Make one BIG file :D Yes, I know, I could use tar on source machine and copy it to NAS and then untar it. But not in this case. I need to configure differential file backup not full backup on every backup launch. I needed file container. So I took Vera Crypt and make 200 GB encrypted container and uploaded it to NAS and mounted it under my Windows 10 as drive.
Then in Windows 10 backup feature I have pointed Vera Crypt mounted drive as target of backup and that's it :) Backup works smoothly in max reachable speed 10 MB/s - all the time, without slowing. Normal load. Very low IO's during transfer. No swapping. And the end I have nice file history in Windows 10 backup tool - that was the target of this exercise :)
On Sunday, 1 March 2020 16:24:45 UTC, Jarek Pe wrote:Sorry Joao I didn't know that it is impossible to solve this issueUsing available resources ;)and I did it ;)OK, I'm cheating a little bit but who cares! It works :PI was thinking about the limitation of hardware - slow CPU, very limited RAM etc. General issue is when samba reserve/addresses space on file system for new files. If there is a lot of them queue arise and we encounter this slowing problem and memory leaking and the end. So how to rid of numerous files during transfer? Make one BIG file :D Yes, I know, I could use tar on source machine and copy it to NAS and then untar it. But not in this case. I need to configure differential file backup not full backup on every backup launch. I needed file container. So I took Vera Crypt and make 200 GB encrypted container and uploaded it to NAS and mounted it under my Windows 10 as drive.So, using an existing samba share? You had no issues copying a 200 GB file using Alt-F samba?
Couldn't you just create a windows virtual drive (vdx) instead? You can even browse and specify a network location during its creation. I created and used a 200MB one without issues.
Then in Windows 10 backup feature I have pointed Vera Crypt mounted drive as target of backup and that's it :) Backup works smoothly in max reachable speed 10 MB/s - all the time, without slowing. Normal load. Very low IO's during transfer. No swapping. And the end I have nice file history in Windows 10 backup tool - that was the target of this exercise :)Excellent.Of course the encryption/decryption is done in the windows client, otherwise you would have problems -- smb is being used just as a raw transport protocol. iSCSI, when it worked in Alt-F, could provide a similar solution.I only need to figure how to auto mount Vera Crypt file container on Windows logon. Right now it is manual process.Although I have encountered one little problem with this solution. I need to test it more to isolate exact conditions. In general, sometimes if I restart Windows after using file container I can't access any samba share. I need to restart samba on NAS and everything works fine. If I don't find any solution I will schedule in cron samba restart somewhere in the night. It's not elegant solution but should do the job :)