I have setted up samba server for NAS in my raspberry pi 4.
The external disk is USB 3.0 and is working fine.
sudo hdparm -t /dev/sda shows speed around 120 MBytes/s
nperf also shows link of around 970 Mbits/s
but samba gives read speed of only around 40-45 MBytes/s, write speed is even worse
Downloading large file from Nginx http server hosted in pi, also gives speed around 40-50 MBytes/s
I am connected via a gigabit ethernet.
So does anyone have any guesses to why am i not able to hit that 100 MBytes/s of speed in Samba and http
My main system on which i ran these test have SSD installed in it, so that is not the bottle neck here.
PS: PI-4 is running latest verison of Raspbian OS and my main system is on dual boot of windows10 and ubuntu19, tested on both.