Container vs VM

Discussion in 'Proxmox VE: Installation and configuration' started by Jochen, Jun 14, 2018.

  1. Jochen

    Jochen New Member

    Joined:
    Jun 13, 2018
    Messages:
    3
    Likes Received:
    0
    Im running a smb share on a container and on a vm and the container is much faster in terms of transfering files to the share and from it back to my PC. Is there any way to improve the speed of the vms so they match the one from the container? Im using proxmox 5.2 and everything is done on the same SSD.
     
  2. frenchfries

    frenchfries New Member

    Joined:
    Apr 26, 2018
    Messages:
    19
    Likes Received:
    0
    Is the SMB share within the VM running on a virtual disk or passed through? If it's virtual then perhaps you need to look at your caching policies.
     
  3. Jochen

    Jochen New Member

    Joined:
    Jun 13, 2018
    Messages:
    3
    Likes Received:
    0
    The vm is running on the ssd from the main node.
     
  4. frenchfries

    frenchfries New Member

    Joined:
    Apr 26, 2018
    Messages:
    19
    Likes Received:
    0
    Sounds like a virtual disk. Modify the caching policies of the disk to writeback and see if that helps.
     
  5. fireon

    fireon Well-Known Member
    Proxmox VE Subscriber

    Joined:
    Oct 25, 2010
    Messages:
    2,623
    Likes Received:
    142
    Thats not depending on disk/cache. We using here also NFS in KVM with over 800MB/s on 10Ggigabit. SMB is the problem and the kernel you are using with. On the lxccontainer you are using the PVEkernel. What OS/Kernel you are using in the VM? For a wile i have done some tests with SMB. And there were really big differences between the kernels in Ubuntu 16.04. 35MB/s and 95MB/s on Gigabit.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. frenchfries

    frenchfries New Member

    Joined:
    Apr 26, 2018
    Messages:
    19
    Likes Received:
    0
    You noticed ~60MB/s difference in SMB across kernel versions? Something is terribly misconfigured if that's the case. Perhaps driver issues?

    Also, if he is copying to the VMs virtual disk then it still may be caching policies.

    I have never had a problem in flooding gigabit usually between 105 and 120MB/s on any host in the last at least 5 years. This is including VMs on Virtualbox, ESXi and KVM.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice