VirtualBox 4.0.4 + crashing guest HDD
Since my upgrade to 13.37 + VirtualBox 4.0.4 (from SBo) I'm having trouble with one of my VMs containing a PostgreSQL installation (also from SBo) which has been running fine before on 13.1 + VBox 3.2.10.
This is what happens: I'm starting an I/O heavy job on the DB that should take about an hour but never finishes because the virtual disk stops working after 10 to 40 minutes. Code:
ata1.00: exception Emask 0x0 SAct 0x7fffffff SErr 0x0 action 0x6 frozen There's one message... Code:
hrtimer: interrupt took 6544232 ns Here's what I've tried so far to solve this problem:
The Postgres-DB is for development only, so I'm not losing any data here, but I haven't been getting any work done since, either :-( Has anyone else encountered this problem or can at least point me into the right direction? PS: VirtualBox was built in a multilib VM, but host and guest are pure 64-bit. I've been using this setup since 13.0. |
I recall reading somewhere that VirtualBox 4 is still a lot buggier than the 3 series (which is what I am still using). Hopefully most of that would be fixed by the .8 update, but it may be worth trying to downgrade to 3.2 again.
I also don't use the version from the SBo: I use the binary from virtualbox.org. It is more full featured (at the expense of not being open source) and also has a 64 bit version. |
I don't see that 4.0+ is buggier. The SBo version though, does seem to have problems. I prefer and use the binary version also.
|
Quote:
---------- Post added 30-05-11 at 09:45 ---------- Quote:
|
Quote:
|
Quote:
Even if you are a member of vboxusers, USB does not work unless you set permissions for /proc/bus/usb via rc.S or via fstab enties. |
Although I have only installed the binary versions directly from http://www.virtualbox.org/, currently VirtualBox-4.0.8-71778-Linux_amd64.run and Oracle_VM_VirtualBox_Extension_Pack-4.0.8-71778.vbox-extpack and the Guest Additions (stuff like USB just doesn't like to work without both the Extension Pack and Guest Additions), the only problems I have had have been due to a lack of RAM available to the guest and, in the case of DBMS running in the guest, a lack of shared memory available to the guest. MySQL and PostgreSQL will tend to use a lot of shared memory, message queues and semaphores (you can see what's going there with ipcs).
You did not mention how much RAM you have assigned to the guest; on my 8G box, I assign at least 4G to a guest that's going to be doing large data base transactions or updates (updates in particular eat RAM for breakfast). Have you tuned your DBMS installation in the guest following recommendations for shared memory and transactions sizing? Something you can do that may provide a dynamic indication of what's going on is start GKrellM on the host (it's provided with Slackware 13.x) and keep an eye on the CPU(s), disk and memory displays and perhaps adjust host or guest parameters; you know, if you see your CPU(s) at 99% and swapping going on, well, might give you hint. Hope this helps some. |
I *think* I've nailed this down...
The DB-VM produced not only lots, but TONS of I/O - a bit too much for my not-quite-fast host HDD. I've seen it happen live with "watch -n 1 cat /proc/meminfo" and "vmstat 1": suddenly there's more than 1GB of dirty RAM, the machine hits vm.dirty_ratio enforcing sync I/O, everything gets really slow, and the VM gets virtual SATA timeouts. If I'm right, this would also explain why I didn't have this problem with the other, much less I/O-heavy VMs. But why did it happen after the upgrade? The DB is constantly growing and I guess it's just a coincidence that I hit the critical size just now. If you're experiencing problems with I/O-heavy VBox-VMs the following steps could help:
Besides... I never had a need for any VirtualBox feature that wasn't part of the OSE, so I never used anything else but the SBo version. A Slackware package is just so much nicer than an installer, that does things like compiling kernel modules during boot time. |
All times are GMT -5. The time now is 01:42 AM. |