From owner-freebsd-emulation@freebsd.org Mon Aug 22 23:30:19 2016 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5D3C4BC2813 for ; Mon, 22 Aug 2016 23:30:19 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 3818B1743 for ; Mon, 22 Aug 2016 23:30:19 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 3395ABC2811; Mon, 22 Aug 2016 23:30:19 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3333ABC2810 for ; Mon, 22 Aug 2016 23:30:19 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-it0-x229.google.com (mail-it0-x229.google.com [IPv6:2607:f8b0:4001:c0b::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 03ADA1742 for ; Mon, 22 Aug 2016 23:30:18 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-it0-x229.google.com with SMTP id f6so107120193ith.0 for ; Mon, 22 Aug 2016 16:30:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=oudE3R28Bs3al7mvXzc4bPlHat1Q7HrrZS7GV+H/+ZM=; b=je/gieCK+DeGEj5oKJGqgLfqP5o/TM/hMjXTjdTt/ZXnSfk95UwIQxqOng+3yXI9EH UG3256vzwdCligniPMDvj4aG/FT0Zcy/92SjRB1JytCNBxcOX34Qj3030RjeArKMApFC 7VT5nDKn8G2CORxAqiVmahwVcF2MRnByS6N8J+KpikwdMw2uRnGpvlR3VfAK5tyPytlr LYIsJSewg4FtXGaoCqWkW0wCfjHE0Zx2YXKDmWLlr/cLDWiGGnEEEFC4nlmeS35ukSy8 MVZMvkdINC8RvYOpBCm4i/PHVM1Jy6wTgBaUTSXzdzi8Ptf7sgqlghDscWA+SB0u16jh MKNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=oudE3R28Bs3al7mvXzc4bPlHat1Q7HrrZS7GV+H/+ZM=; b=fS6HDfQGFEORxX1geHr9OzQjesXPzFhX41wREMwRM4VZiA8jqkvQpmyJPV2Ch/8w3U MoogG5Pggd6imFT+/LY/CiprFh8eQ8m7wNKtrZ6dPGlgjgbN1zzidijk1FOlARP1rTrk Foc2Yydr+qxpnB6OIiUQvw4FeXDijm80O+uI1UVxwwGeTd+yb4+bu7XrjcmW41Sd3Tpq fmixeGuNQtaBlA5o8f3hwVBGAXC7ATJ4tNOLbGTRlDjvkB22pb4rAQ7YMrHtU0TjPjzy rxvb+sE1qENKEBVCut85Dj+w7iWHXOlN+oYqPjBcM7uqazEJo/2Kb/YYVQTQvkLC8pvc q1ww== X-Gm-Message-State: AEkoouvzjvzvOa2Q2JShaiuJ0YYk9bgKILgNirIQ8+at+P+uohj2SvWXec6ghGLZ3M/0yFwNgCEWqOP5lVyFbw== X-Received: by 10.36.65.198 with SMTP id b67mr21772662itd.53.1471908618138; Mon, 22 Aug 2016 16:30:18 -0700 (PDT) MIME-Version: 1.0 Sender: kob6558@gmail.com Received: by 10.79.119.144 with HTTP; Mon, 22 Aug 2016 16:30:17 -0700 (PDT) In-Reply-To: <59E9F6CE-0F2B-40E1-B78D-AF9DFBCED280@transactionware.com> References: <2418C811-3C6E-4837-B6A5-51DB4C425EB4@transactionware.com> <59E9F6CE-0F2B-40E1-B78D-AF9DFBCED280@transactionware.com> From: Kevin Oberman Date: Mon, 22 Aug 2016 16:30:17 -0700 X-Google-Sender-Auth: ttOdrbUBaIGH4UJxpYXTmG7_eI0 Message-ID: Subject: Re: Odd behavior with virtualbox-ose-4.3.38 To: Jan Mikkelsen Cc: "freebsd-emulation@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Aug 2016 23:30:19 -0000 On Mon, Aug 22, 2016 at 12:54 PM, Jan Mikkelsen wrote: > Hi, > > On 23 Aug 2016, at 02:25, Kevin Oberman wrote: > > On Mon, Aug 22, 2016 at 1:50 AM, Jan Mikkelsen > wrote: > >> Do you have aio loaded or compiled into your kernel? If so, does it keep >> happening without aio? >> [ =E2=80=A6 ] >> > Thanks for the suggestion, but, no. This is on my trusty Lenovo T520 > laptop and no aio to be found. My configuration is just: > include GENERIC > ident GENERIC_BSD4 > > nooptions SCHED_ULE # ULE scheduler > options SCHED_4BSD # 4BSD scheduler > > I still can't be sure if the problem was triggered by the move to VB 5 or > t FreeBSD-11 (or a combination of both). > > > Yes, the problem could be in many places. However, if you=E2=80=99ve gone= to > FreeBSD 11, you have more aio than you think. From UPDATING: > > 20160301: > The AIO subsystem is now a standard part of the kernel. The > VFS_AIO kernel option and aio.ko kernel module have been removed. > Due to stability concerns, asynchronous I/O requests are only > permitted on sockets and raw disks by default. To enable > asynchronous I/O requests on all file types, set the > vfs.aio.enable_unsafe sysctl to a non-zero value. > > Are you running the VM against a raw disk device? You can check the > VBox.log output =E2=80=94 If you are not using aio, you should see an ent= ry like > this: > > AIO: Async I/O manager not supported (rc=3DVERR_NOT_SUPPORTED). Falling b= ack > to simple manager > > If you are using AIO, you will should see entries like: > > AIOMgr: Default manager type is "Async" > AIOMgr: Default file backend is =E2=80=9CNonBuffered" > > > AIO issues were not a big issue for a long time but some recent updates t= o > 4.3.something (or other environmental issues, possibly load) led me to tu= rn > aio off on a bunch of 10.x machines running a significant number of VMs > (~25). I=E2=80=99m have been curious about whether the aio change would c= ause > problems with an upgrade to 11. > > Regards, > > Jan. > > BINGO! Thank you so much, Jan! This does explain a great deal of what I was seeing and why. Now the question... how can I disable it? I'm guessing that "kern.features.aio=3D0" in /boot/loader.conf might do the trick, but the ma= n page does not mention this at all. Also, I guess it is time to open a bug report on this. FWIW, the problem does seem to be linked to disk activity. I had the system locked up and had to kill the process. When I rebooted, the system told me that a disk check was needed, but I had it lock up several time (3, I think) before it made it through the check without locking up again. Once that was complete, the system started and ran normally again. This also now fits rather well with an aio issue. Not too sure how to go about collecting more information for the PR,but I'll open it with what I have. Thanks again, Jan! -- Kevin Oberman, Retired Network Engineer