Samba VM vs CT

riesbeck

Member
Sep 21, 2011
3
0
21
Dear all,

Yesterday, I tried to launch a new file server in order to find out if I should use VM or CT, I tested both.

Using only default options, I created:
  • Container using an Ubuntu 20 template.
  • VM using Ubuntu 20 server ISO.
I then installed samba from the repos, added a share with no security and tested the performance by copying a 2 GB file from my Windows desktop computer onto each share. The results were a bit surprising. The transfer to the VM was smooth at about 100MB/s but to the CT the results looked like this:

1617183997287.png

Transfer speed at the peaks are about the same as for the VM (100MB/s) but at the dips it almost zero. Total transfer time to CT was about 1 minute but for VM only 30s. Could this be some sort of buffering issue? Any idea on where to start looking (SAMBA config, guest network config, host...)

Using PVE 6.3-6.

Any suggestions?
 
Hi,

First I would test the network between the guests and host using iperf3 tool to see from where the issue, if everything was ok then we can check the samba config or firewall etc..
 
then installed samba from the repos, added a share with no security and tested the performance by copying a 2 GB file from my Windows desktop computer onto each share


Hi,

And betheen this 2 tests, do you reboot your ProxMox server? Do you use zfs for both VM/CT ?


Good luck / Bafta!
 
Hi,

First I would test the network between the guests and host using iperf3 tool to see from where the issue, if everything was ok then we can check the samba config or firewall etc..

iperf3 shows good transfer speeds. 110-112 MB/s. Got 44 retransmit when sending 8GB to my SAMBA server but that far from explains the degradation seen during the file transfer in Windows.

SAMBA config files are unmodified except for the share I added.

I have tested with and without the firewall in the proxmox GUI. No difference in performance.

Regards
Johan
 
Hi,

And betheen this 2 tests, do you reboot your ProxMox server? Do you use zfs for both VM/CT ?


Good luck / Bafta!

Hi,

No, I never rebooted the proxmox server (it's running other important machines so I'd rather not reboot it frequently.

I'm using local-zfs for both VM and CT.

Regards
Johan
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!