Sorry we lost some posts because of database errors!

*New 12.1 series Release:
2020-09-01: XigmaNAS 12.1.0.4.7728 - released

*New 11.4 series Release:
2020-08-27: XigmaNAS 11.4.0.4.7718 - released!


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

Virtualbox VMs freeze unter heavy I/O load (fix included)

VirtualBox, VM config and HDD images.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Colani1200
NewUser
NewUser
Posts: 2
Joined: 18 Aug 2020 12:45
Status: Offline

Virtualbox VMs freeze unter heavy I/O load (fix included)

#1

Post by Colani1200 »

Hi all,

I encountered a problem with virtualbox VMs when the option "Use Host I/O Cache" is not enabled, which is the default setting for Windows guests. The VM will freeze under heavy I/O load, this is reproducable for example during a Windows 10 installation when stuff gets copied. In the log you will find something like this:

Code: Select all

00:04:05.264286 AIOMgr: Host limits number of active IO requests to 256. Expect a performance impact.
00:04:05.607651 AIOMgr: I/O manager 0x00000806fc51e0 encountered a critical error (rc=VERR_FILE_AIO_NO_REQUEST) during operation. Falling back to failsafe mode. Expect reduced performance
00:04:05.607730 AIOMgr: Error happened in /usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.44/src/VBox/VMM/VMMR3/PDMAsyncCompletionFileNormal.cpp:(1673){int pdmacFileAioMgrNormal(RTTHREAD, void *)}
00:04:05.607734 AIOMgr: Please contact the product vendor 
The solution is to tweak a couple of sysctl paramters, as found in these old bug reports:
https://bugs.freebsd.org/bugzilla/show_ ... ?id=212128
https://bugs.freebsd.org/bugzilla/show_ ... ?id=168298

I my case, these settings did the trick, where vfs.aio.max_aio_queue_per_proc is the most relevant one

Code: Select all

vfs.aio.max_aio_queue=8192
vfs.aio.max_aio_queue_per_proc=2048
vfs.aio.max_aio_per_proc=128
vfs.aio.max_buf_aio=64
Maybe this should be adjusted in the default configuration of XIgmaNAS.
Last edited by Colani1200 on 27 Aug 2020 11:48, edited 1 time in total.

cookiemonster
Advanced User
Advanced User
Posts: 286
Joined: 23 Mar 2014 02:58
Location: UK
Status: Offline

Re: Virtualbox VMs freeze unter heavy I/O load (fix included)

#2

Post by cookiemonster »

Thanks for contributing
Main: Xigmanas 11.2.0.4 x64-full-RootOnZFS as ESXi VM with 24GB memory.
Main Host: Supermicro X8DT3 Memory: 72GB ECC; 2 Xeon E5645 CPUs; Storage: (HBA) - LSI SAS 9211-4i with 3 SATA x 1 TB in raidZ1, 1 x 3 TB SAS drive as single stripe, 3 x 4 TB SAS drives in raidZ1.
Spare1: HP DL360 G7; 6 GB ECC RAM; 1 Xeon CPU; 5 x 500 GB disks on H210i
Backup1: HP DL380 G7; 24 GB ECC RAM; 2 Xeon E5645 CPUs; 8 x 500 GB disks on IBM M1015 flashed to LSI9211-IT

Post Reply

Return to “VM|VirtualBox”