VirtualBox

Changeset 64779 in vbox


Ignore:
Timestamp:
Dec 2, 2016 1:36:45 PM (8 years ago)
Author:
vboxsync
Message:

Main: bugref:8690: disable async I/O for Linux 2.6.18

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r64510 r64779  
    39263926        /*
    39273927         * Ext4 bug: Check if the host I/O cache is disabled and the disk image is located
    3928          *           on an ext4 partition. Later we have to check the Linux kernel version!
     3928         *           on an ext4 partition.
    39293929         * This bug apparently applies to the XFS file system as well.
    39303930         * Linux 2.6.36 is known to be fixed (tested with 2.6.36-rc4).
     
    39743974                mfSnapshotFolderExt4WarningShown = true;
    39753975            }
     3976        }
     3977       
     3978        /*
     3979         * 2.6.18 bug: Check if the host I/O cache is disabled and the host is running
     3980         *             Linux 2.6.18. See @bugref{8690}. Apparently the same problem as
     3981         *             documented in https://lkml.org/lkml/2007/2/1/14. We saw such
     3982         *             kernel oopses on Linux 2.6.18-416.el5. We don't know when this
     3983         *             was fixed but we _know_ that 2.6.18 EL5 kernels are affected.
     3984         */
     3985        bool fKernelAsyncUnreliable =    RT_FAILURE(rc)
     3986                                      || (RTStrVersionCompare(szOsRelease, "2.6.19") < 0);
     3987        if (   (uCaps & MediumFormatCapabilities_Asynchronous)
     3988            && !*pfUseHostIOCache
     3989            && fKernelAsyncUnreliable)
     3990        {
     3991            i_atVMRuntimeErrorCallbackF(0, "Linux2618TooOld",
     3992                    N_("The host I/O cache for at least one controller is disabled. "
     3993                       "There is a known Linux kernel bug which can lead to kernel "
     3994                       "oopses under heavy load. To our knowledge this bug affects "
     3995                       "all 2.6.18 kernels.\n"
     3996                       "Either enable the host I/O cache permanently in the VM "
     3997                       "settings or switch to a newer host kernel.\n"
     3998                       "The host I/O cache will now be enabled for this medium"));
     3999            *pfUseHostIOCache = true;
    39764000        }
    39774001#endif
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette