Bad read and write speed inside VM with NFS

Nashway

New Member
Jan 19, 2014
3
0
1
Hi all
Im trying to build a virtual environment with Proxmox and NFS

I have NFS shared from a ubuntu machine running 8 2TB drives in raid 6 with btrfs.
(Bonnie gives me 620MB/s write speed and 304 MB/s locally on the storage machine which I am happy with)

Checking the write speed with dd on Proxmox I get what I expect from using Gigabit ethernet.dd
if=/dev/zero of=/mnt/pve/NFS_0/output.img bs=8k count=512k
524288+0 records in
524288+0 records out
4294967296 bytes (4.3 GB) copied, 42.0547 s, 102 MB/s
As I watch the network trough put with "bmon" on the storage server I can see it starting transferring data immediately.
I get these results with consistency.
As per above result I assume the NFS mount and share is OK.

However, inside the VM's I get very strange and inconsistent write speed.
When I issue the above command and watch bmon on the storage machine it can take up to a minute before any data loads the interface.
Further the write is not stable, speed vary between 20MB/s to 90/MB/s. It also stops all together to resume 30s later... (Very strange)
The above command will report speeds varying between 7 MB/s to 55 MB/s
I have tried all different write cache modes. All will give me the same result in varying degrees.
None of the gives any consistency.
I have also tried virtio, raw, cow, -> same thing
I tested to install a VM on the local drive on the Proxmox machine. dd gives me consistent results.

The problem is only evident when running on NFS.
I'm running 3.1-28.

What can I check to figure this out?

BR
Nashway
 
Last edited:
Found something else that seems strange.

pveperf /mnt/pve/NFS_01
CPU BOGOMIPS: 76800.16
REGEX/SECOND: 1012150
HD SIZE: 16767.12 GB (x.x.x.x:/export/NFS_01)
FSYNCS/SECOND: 6.68
DNS EXT: 36.04 ms
DNS INT: 24.57 ms
 
What os is the guest and are you using the virtio drivers?

Sent from my MT27i using Tapatalk
 
Got it "working" now...
How bad are running exports with async option? Will it mess up my images at random?

CPU BOGOMIPS: 77183.60
REGEX/SECOND: 997842
HD SIZE: 16767.12 GB (x.x.x.x:/export/NFS_01/)
FSYNCS/SECOND: 1009.28
DNS EXT: 38.53 ms
DNS INT: 23.95 ms

I get write and read speed with consistent results now !

Yay!
 

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!