Varun Chandak
Dabbler
- Joined
- Jul 20, 2014
- Messages
- 29
Hi there,
I am facing a very acute problem of slow read/write on my custom FreeNAS configuration box (config in signature).
I have created 2 NFS datasets, namely /mail and /archive. Both have same parameters and settings and are working properly.
Output of /proc/mounts is:
Output of /etc/fstab is:
I have mounted both of these 2 partitions on 2 identical VirtualBox VMs.
Configuration of Base Machine:
Configuration of VM:
Whenever I am doing Read/write speeds using dd command, I am getting not more than ~24MB/s speeds (+6 to 7 seconds), which is quite low for NAS, I suppose, which is hampering my production environment.
The NAS usage is mainly for reading/writing/listing small files (mailing purposes; thousands and millions, maybe), and not more than 10-15 MB files.
On NAS I have enabled autotune as I don't want to play around the sysctls lest I crash my system.
What more should I do to increase the read/write speeds so that I can get around ~3 seconds for time for the dd command to execute.
NOTE: Every physical connection is Gigabit. Also, I have not installed VirtualBox Guest Additions on the VMs. Shall I do that ?
PS: the dd command I executed:
I am facing a very acute problem of slow read/write on my custom FreeNAS configuration box (config in signature).
I have created 2 NFS datasets, namely /mail and /archive. Both have same parameters and settings and are working properly.
Output of /proc/mounts is:
Code:
192.168.0.XX:/mnt/NAS/mail /mailstore nfs rw,noatime,nodiratime,vers=3,rsize=32768,wsize=32768,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.0.XX,mountvers=3,mountport=824,mountproto=tcp,local_lock=none,addr=192.168.0.XX 0 0 192.168.0.XX:/mnt/NAS/archive /archive nfs rw,noatime,nodiratime,vers=3,rsize=32768,wsize=32768,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.0.XX,mountvers=3,mountport=824,mountproto=tcp,local_lock=none,addr=192.168.0.XX 0 0
Output of /etc/fstab is:
Code:
192.168.0.XX:/mnt/NAS/mail /mailstore nfs rw,bg,vers=3,tcp,timeo=600,rsize=32768,wsize=32768,hard,intr,nodiratime,noatime 0 0 192.168.0.XX:/mnt/NAS/archive /archive nfs rw,bg,vers=3,tcp,timeo=600,rsize=32768,wsize=32768,hard,intr,nodiratime,noatime 0 0
I have mounted both of these 2 partitions on 2 identical VirtualBox VMs.
Configuration of Base Machine:
Code:
Intel(R) Core(TM) i3-3210 CPU @ 3.20GHz (4 Processors) 16 GB RAM /dev/sda: 500.1 GB (1 VM Installed) /dev/sdb: 320.1 GB (1 VM Installed) df -h: Filesystem Size Used Avail Use% Mounted on /dev/sda5 149G 6.9G 135G 5% / tmpfs 7.8G 608K 7.8G 1% /dev/shm /dev/sda3 294G 251G 29G 90% /MasterVM /dev/sdb1 294G 251G 29G 90% /SlaveVM /dev/sda1 485M 65M 395M 14% /boot
Configuration of VM:
Code:
MasterVM: CPU: Intel(R) Core(TM) i3-3210 CPU @ 3.20GHz (1 Processor) RAM: 6GB NIC: Intel PRO/1000 MT Server (82545EM)
Code:
SlaveVM: CPU: Intel(R) Core(TM) i3-3210 CPU @ 3.20GHz (2 Processor) RAM: 6GB NIC: Intel PRO/1000 MT Server (82545EM)
Whenever I am doing Read/write speeds using dd command, I am getting not more than ~24MB/s speeds (+6 to 7 seconds), which is quite low for NAS, I suppose, which is hampering my production environment.
The NAS usage is mainly for reading/writing/listing small files (mailing purposes; thousands and millions, maybe), and not more than 10-15 MB files.
On NAS I have enabled autotune as I don't want to play around the sysctls lest I crash my system.
What more should I do to increase the read/write speeds so that I can get around ~3 seconds for time for the dd command to execute.
NOTE: Every physical connection is Gigabit. Also, I have not installed VirtualBox Guest Additions on the VMs. Shall I do that ?
PS: the dd command I executed:
Code:
time dd if=/dev/zero of=/mail/testfile bs=16k count=16384