From owner-freebsd-emulation@FreeBSD.ORG Mon Nov 12 10:50:01 2012 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B61FD5A5; Mon, 12 Nov 2012 10:50:01 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 0F08E8FC13; Mon, 12 Nov 2012 10:50:00 +0000 (UTC) Received: by mail-wg0-f50.google.com with SMTP id 16so4074270wgi.31 for ; Mon, 12 Nov 2012 02:50:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:user-agent:mime-version:content-type :content-transfer-encoding:message-id; bh=kSlHXICiUeafzHviBvWabfpkh2EavSHjEYlPgNar9J8=; b=y8+J6ZVuxbcKi8GnXYWi55+7+WTyEvfRr5pBSBpszT4vSAd3yiPXPSB81R+Q9RBqDg nSxxCTAacnhVBCdEU5nl1fUiqSdkeKrkQ4SXttieUlPNMPusaFn/rVj6wNi16D9+nHzT oGA4tZ/idwBTxkjt2TfCDnSDNdwZE/94fsMpoMxr6MQcer367RDVdljA6YPoQrk678wP 11zxvgCAS3O0kKYVq6YVBui8m+tqM8g59NlO75VXkhcfbZcfpGWn+4ZTZDzbWBUcUsY3 VKhbv+iZmRf2kNSKub5Qrzj2ajlyUt2uBjZ2Y6pT7AjYVtYbQmpAumDMtV64ueCEwX8B wpFQ== Received: by 10.216.204.139 with SMTP id h11mr7650868weo.128.1352717399916; Mon, 12 Nov 2012 02:49:59 -0800 (PST) Received: from dragon.dg (41-132-132-229.dsl.mweb.co.za. [41.132.132.229]) by mx.google.com with ESMTPS id n2sm14017587wix.6.2012.11.12.02.49.56 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Nov 2012 02:49:58 -0800 (PST) From: David Naylor To: freebsd-questions@freebsd.org, freebsd-emulation@freebsd.org Subject: Wine-fbsd64 updated to 1.5.17 (32bit Wine for 64bit FreeBSD) Date: Mon, 12 Nov 2012 12:49:42 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.9.1; amd64; ; ) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4733308.u51fJPteNh"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201211121249.45888.naylor.b.david@gmail.com> X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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, 12 Nov 2012 10:50:01 -0000 --nextPart4733308.u51fJPteNh Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, Packages [1] for wine-fbsd64-1.5.17 have been uploaded to mediafire [2]. T= he=20 packages for FreeBSD 10 use the pkgng [3] format. =20 Please read the installation messages, if you use the nVidia graphics drive= r,=20 for further information. =20 =46AQ =2D-- Q: wine: failed to initialize: / usr/local/lib32/wine/ntdll.dll.so: Undefin= ed symbol "_ThreadRuneLocale" A: This problem is specific to FreeBSD-9.0, please either stick with=20 wine-1.5.10 or update to a newer version of FreeBSD (-STABLE or 9.1). =20 Apologies for the inconvenience. =20 Q: Creating pkgng packages for FreeBSD-9 A: When there is no demand for FreeBSD-8 packages I'll create additional pk= gng=20 packages for FreeBSD-9. Since it is possible to install the existing pkg=20 packages in a pkgng environment (which I do) this is not a high priority. = =20 Q: Wine doesn't run (properly) with a clang built world A: Clang was compiling i386 on a 16-byte boundary while gcc was using a 4-b= yte=20 boundary. To fix, recompile world after ensuring your sources include=20 http://beta.freshbsd.org/commit/freebsd/r242835 or the relevant MFC. =20 Regards, David [1] MD5 (wine-1.5.x-freebsd8/wine-fbsd64-1.5.17,1.tbz) =3D=20 54065bf41dbb28ecd2c90baf6f7bf9a1 MD5 (wine-1.5.x-freebsd9/wine-fbsd64-1.5.17.1.txz) =3D=20 69b90dba97312cc5a8561c87d214e814 MD5 (wine-1.5.x-freebsd10/wine-fbsd64-1.5.17,1.txz) =3D=20 e040dc940bb6cfd821d10f086d78e72d [2] http://www.mediafire.com/wine_fbsd64 [3] http://wiki.freebsd.org/pkgng --nextPart4733308.u51fJPteNh Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEABECAAYFAlCg1EkACgkQUaaFgP9pFrIktACeNJhJ4/WhYjWAIhRVPP6TaHkI 8fcAnib9aTFmwgFyPPP30e7YEZOdfyIz =YrTz -----END PGP SIGNATURE----- --nextPart4733308.u51fJPteNh-- From owner-freebsd-emulation@FreeBSD.ORG Mon Nov 12 11:06:42 2012 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8AD18A04 for ; Mon, 12 Nov 2012 11:06:42 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 704368FC08 for ; Mon, 12 Nov 2012 11:06:42 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qACB6gno000317 for ; Mon, 12 Nov 2012 11:06:42 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qACB6gu8000315 for freebsd-emulation@FreeBSD.org; Mon, 12 Nov 2012 11:06:42 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 12 Nov 2012 11:06:42 GMT Message-Id: <201211121106.qACB6gu8000315@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-emulation@FreeBSD.org Subject: Current problem reports assigned to freebsd-emulation@FreeBSD.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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, 12 Nov 2012 11:06:42 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/169988 emulation [PATCH] Update sysutils/linux-procps to 3.2.7; also up o ports/169896 emulation [patch] audio/linux-f10-alsa-lib: use OSS plugin by de o kern/169814 emulation [linux] ptrace is broken in Linux emulation o kern/169805 emulation [linux] utime() syscall does not work in linuxulator o kern/159646 emulation [linux] [patch] bump Linux version in linuxulator f kern/156691 emulation [vmware] [panic] panic when using hard disks as RAW de o kern/156353 emulation [ibcs2] ibcs2 binaries that execute on 4.x not working o kern/155577 emulation [boot] BTX halted after install. Reboot during install o kern/155040 emulation [linux] [patch] Linux recvfrom doesn't handle proto fa o kern/153990 emulation [hyper-v]: Will not install into Hyper-V on Server 200 o kern/153887 emulation [linux] Linux emulator not understand STB_GNU_UNIQUE b o kern/153243 emulation [ibcs2] Seg fault whne running COFF binary using iBCS2 o kern/151714 emulation [linux] print/acroread9 not usable due to lack of supp a bin/150262 emulation [patch] truss(1) -f doesn't follow descendants of the a kern/150186 emulation [parallels] [panic] Parallels Desktop: CDROM disconnec o ports/148097 emulation [patch] suggested addition to linux_base-* packages to o ports/148096 emulation emulators/linux_base-* can not be built from ports on o kern/147793 emulation [vmware] [panic] cdrom handling, panic, possible race o kern/146237 emulation [linux] Linux binaries not reading directories mounted p kern/144584 emulation [linprocfs][patch] bogus values in linprocfs o ports/142837 emulation [patch] emulators/linux_base-* packages fails to insta o kern/140156 emulation [linux] cdparanoia fails to read drive data f kern/138944 emulation [parallels] [regression] Parallels no longer works in o kern/138880 emulation [linux] munmap segfaults after linux_mmap2 stresstest o ports/135337 emulation [PATCH] emulators/linux_base-f10: incorrect bash usage s kern/133144 emulation [linux] linuxulator 2.6 crashes with nvidias libGL.so. o kern/129169 emulation [linux] [patch] Linux Emulation ENOTCONN error using n o kern/126232 emulation [linux] Linux ioctl TCGETS (0x5401) always fails o kern/86619 emulation [linux] linux emulator interacts oddly with cp a kern/72920 emulation [linux] path "prefixing" is not done on unix domain so o kern/41543 emulation [patch] [request] easier wine/w23 support o kern/39201 emulation [linux] [patch] ptrace(2) and rfork(RFLINUXTHPN) confu o kern/36952 emulation [patch] [linux] ldd(1) command of linux does not work o kern/11165 emulation [ibcs2] IBCS2 doesn't work correctly with PID_MAX 9999 34 problems total. From owner-freebsd-emulation@FreeBSD.ORG Mon Nov 12 21:40:53 2012 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C3AA5F46 for ; Mon, 12 Nov 2012 21:40:53 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id 90F988FC08 for ; Mon, 12 Nov 2012 21:40:53 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id qACLelIQ094313 for ; Mon, 12 Nov 2012 13:40:47 -0800 (PST) (envelope-from yuri@rawbw.com) Message-ID: <50A16CDF.5080306@rawbw.com> Date: Mon, 12 Nov 2012 13:40:47 -0800 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121107 Thunderbird/16.0.2 MIME-Version: 1.0 To: emulation@freebsd.org Subject: android guest VM crashed when USB mouse is shared and unshared Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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, 12 Nov 2012 21:40:53 -0000 I have android-4.1.1 installed as appliance from here: http://www.keyables.com/2012/10/run-android-411-jelly-bean-on-virtualbox.html androVM_vbox86p_4.1.1_r4-20121002.ova image there. When I shared/unshared the USB mouse, VM crashed. Log ends with these lined: 02:43:49.412807 VUSB: attached '000000081b407880[proxy 046d:c00e]' to port 1 02:43:55.132791 02:43:55.132793 !!Assertion Failed!! 02:43:55.132793 Expression: PDMCritSectIsOwner(pOhci->pDevInsR3->pCritSectRoR3) 02:43:55.132795 Location : /usr/home/yuri/vbox/emulators/virtualbox-ose/work/VirtualBox-4.2.4/src/VBox/Devices/USB/DevOHCI.cpp(2505) bool ohciRhXferError(VUSBIROOTHUBPORT*, VUSBURB*) Looks like 100% reproducible. vbox-4.2.4 9.1-RC3 amd64 Yuri From owner-freebsd-emulation@FreeBSD.ORG Wed Nov 14 04:59:54 2012 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8BA4F1CF for ; Wed, 14 Nov 2012 04:59:54 +0000 (UTC) (envelope-from 3SSWjUAoGEaoRieX-iYeXQaa.MYWPbOOLcN-OWeVKdSYXPbOOLcN.YbQ@photos-server.bounces.google.com) Received: from mail-oa0-f74.google.com (mail-oa0-f74.google.com [209.85.219.74]) by mx1.freebsd.org (Postfix) with ESMTP id 4046C8FC13 for ; Wed, 14 Nov 2012 04:59:54 +0000 (UTC) Received: by mail-oa0-f74.google.com with SMTP id k14so11323oag.1 for ; Tue, 13 Nov 2012 20:59:53 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.163.135 with SMTP id c7mt23644569icy.13.1352869193652; Tue, 13 Nov 2012 20:59:53 -0800 (PST) Message-ID: <90e6ba6e8b4eb71b2004ce6d6757@google.com> Date: Wed, 14 Nov 2012 04:59:53 +0000 Subject: freight forwarder & logistics provider shared photos with you From: "freight forwarder & logistics provider" To: freebsd-emulation@freebsd.org Content-Type: multipart/mixed; boundary=90e6ba6e8b4eb76d4104ce6d6779 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: freight forwarder & logistics provider List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Nov 2012 04:59:54 -0000 --90e6ba6e8b4eb76d4104ce6d6779 Content-Type: text/plain; charset=windows-1252; format=flowed; delsp=yes Content-Transfer-Encoding: base64 RGVhciBNeSBGcmllbmQNCg0KICAgICAgICAgTmljZSBkYXksIEh5dW4gWW91bmcgaXMgYSBsZWFk aW5nIHByb2Zlc3Npb25hbCBmcmVpZ2h0IGZvcndhcmRlciAgDQphbmQgbG9naXN0aWNzIHByb3Zp ZGVyIHdobyBmb2N1cyBvbiB0aGUgc2hpcG1lbnQgZnJvbSBTb3V0aCBDaGluYSB0byBhbGwgIA0K dGhlIHdvcmxkLiBIeXVuIFlvdW5nIHN0YXJ0ZWQgZnJlaWdodCBmb3J3YXJkaW5nIG9wZXJhdGlv biBhdCBTaGVuemhlbiBpbiAgDQoyMDA0LiBCYXNlZCBhdCBTaGVuemhlbiwgb3VyIGFtYml0aW9u IGhhdmUgcHVzaGVkIHVzIGZvcndhcmQgdG8gZXhwYW5kIHRvICANCm90aGVyIGNpdGllcyBpbiBz b3V0aCBvZiBDaGluYS4gTm93IHdlIGhhdmUgY2FwYWNpdHkgb2YgaGFuZGluZyBzaGlwbWVudCB0 byAgDQpvciBmcm9tIGFsbCB0aGUgcG9ydHMgaW4gc291dGggb2YgQ2hpbmEuDQogICAgICAgICAg IEhvbGRzIHdoaWxlIHdob2xlIC0gaGVhcnRlZGx5IGFjaGlldmVzIHRoZSBiZXN0IGVudGVycHJp c2UgIA0Kb2JqZWN0aXZlLCBXaXRoIHRoZSBncmVhdCBzdXBwb3J0IG9mIG91ciBnbG9iYWwgYWdl bmN5LCB3ZSBwcm92aWRlIHNlcnZpY2VzICANCnRvIG91ciBjdXN0b21lcnMgdGhyb3VnaCBwcm9j ZXNzLWRyaXZlbiBvcGVyYXRpb24gdGVhbSwgYWR2YW5jZWQgIA0KaW5mb3JtYXRpb24gc3lzdGVt LCBhbmQgc3Ryb25nIG1hbmFnZW1lbnQgdGVhbS4NCg0KR2xhbmNlIHRvIG91ciBjb21wYW55Og0K MS4JU2VhIEZyZWlnaHQsIGluY2x1ZGVkIEZDTCZMQ0w7DQoyLglBaXIgRnJlaWdodDsNCjMuCUV4 cHJlc3MsIGluY2x1ZGVkIERITCxVUFMsRkVERVgsU0FHQVdBIGFuZCBTQ09SRUpQOw0KNC4JSW1w b3J0ICYgRXhwb3J0Ow0KNS4JTGFuZCBUcmFuc3BvcnRhdGlvbi4NCg0KICAgICAgICAgICBXZSBz ZWVrIG5vIHN0cm9uZ2VzdCBvbmx5IG1vcmUgc3BlY2lhbGl6ZWQsIHNlbmlvci4gWW91ciAgDQpz YXRpc2ZpZWQgd2lsbCBiZSBvdXIgbWF4aW1hbCBwcmlkZS4NCg0KLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LQ0KU2hlbnpoZW4gSHl1biBZb3VuZyBJbnRlcm5hdGlvbmFsIFRyYW5zcG9ydGF0aW9uIENPLixM VEQNCkphY2t5IFlhbmcNCg0KQWRkOiBGbG9vciA3JjgsIFNvdXRoIEJhb5JhbiBSb2FkLCBMdW9o dSBEaXN0cmljdCwgU2hlbnpoZW4sIEd1YW5nZG9uZywgIA0KQ2hpbmEuDQo= --90e6ba6e8b4eb76d4104ce6d6779-- From owner-freebsd-emulation@FreeBSD.ORG Fri Nov 16 15:22:39 2012 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AC863FEC for ; Fri, 16 Nov 2012 15:22:39 +0000 (UTC) (envelope-from alexclear@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 805DF8FC0C for ; Fri, 16 Nov 2012 15:22:39 +0000 (UTC) Received: by mail-pb0-f54.google.com with SMTP id wz12so2139902pbc.13 for ; Fri, 16 Nov 2012 07:22:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=1iZ0x5FLzbwPCpE9n48AybLj81vDPUEfjhKQ2nBpk2s=; b=WwYo9zHHN/exgXWLzLkBWNRJOqYudBEANPbsW69Hm2M4iUcjHtyKOxw6lTW9yPiOgk Qkd9BX11cxS1h9gCvY2RQIkOlAbiVTFxJ9+7IfdYeL3DJZzwz3Pp+vmD6SH9Nrwcym3Z N06fMTjSRsRhTqWi0vL8i51ZkkToQZZEW6oambia1jZB71z7EeiBJgjQquNSAZebXGIz S7rkhwr/Re8BiwvBsxE+gWeMLr477SrFKfyEIGG4DQxJCyjy+BsCMNS7tCogFinGCQKK /bTBOXfWonkxD7L5Sbhfbe+65wonpjL+GbD6O5h2Lv4zhPECjOGGzc3aSPmK+LZT/IsJ HBQw== MIME-Version: 1.0 Received: by 10.66.85.40 with SMTP id e8mr13537337paz.64.1353079358423; Fri, 16 Nov 2012 07:22:38 -0800 (PST) Received: by 10.66.227.166 with HTTP; Fri, 16 Nov 2012 07:22:38 -0800 (PST) Date: Fri, 16 Nov 2012 18:22:38 +0300 Message-ID: Subject: VirtualBox 4.1.22 on FreeBSD 9.0-RELEASE problem: VBoxHeadless eats 100% CPU From: Alex Chistyakov To: freebsd-emulation@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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: Fri, 16 Nov 2012 15:22:39 -0000 Hello, My system is an amd64 box running FreeBSD 9.0-RELEASE on top of ZFS. I try to setup a VirtualBox VM from an Ubuntu 12.04 Server installation CD in a headless mode using VNC. Top shows that VBoxHeadless process consumes 100% CPU almost all the time and it takes forever to boot from the CD image: PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 1652 vbox 19 22 0 358M 170M IPRT S 3 7:18 100.00% VBoxHeadless I get lots of repeating "ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0)" lines every time I try to run truss on the running VBoxHeadless process, like this: ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) and it looks like this system call prevails in truss stats: [root@ci ~]# wc -l truss.vbox.log 1174962 truss.vbox.log [root@ci ~]# cat truss.vbox.log | grep 'ioctl(7,0x200056c1' | wc -l 1013997 [root@ci ~]# FD 7 is /dev/vboxdrv0, does this indicate a problem in communicating with a kernel VirtualBox driver? What should I do to resolve this situation? Thank you! -- SY, Alex From owner-freebsd-emulation@FreeBSD.ORG Fri Nov 16 17:53:44 2012 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6B792F63 for ; Fri, 16 Nov 2012 17:53:44 +0000 (UTC) (envelope-from marek_sal@wp.pl) Received: from mx4.wp.pl (mx4.wp.pl [212.77.101.8]) by mx1.freebsd.org (Postfix) with ESMTP id E1BA38FC08 for ; Fri, 16 Nov 2012 17:53:43 +0000 (UTC) Received: (wp-smtpd smtp.wp.pl 11550 invoked from network); 16 Nov 2012 18:53:34 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1353088414; bh=bm4KI7PxsuDPBodDjkRSQRvDrn7iFSZDbtxZR0ehNcE=; h=From:To:CC:Subject; b=uUiHx6bysnLM0HPzrHAf3bie8bdkMurfcI9g/yMceZnT1RpHzsBAMwm5PvbuXR3JF Vio/9pQZFxqK6k/RKpoMlqbS9Spimx6fLkB9sHzfYXa/m0uWmkgQqqL3fRupFOxHJc II+yfWfdQsszb84a2cKU0Ns7MlpU4ddz1ePflB3U= Received: from nat.misal.pl (HELO [127.0.0.1]) (marek_sal@[83.19.131.171]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with CAMELLIA256-SHA encrypted SMTP for ; 16 Nov 2012 18:53:34 +0100 Message-ID: <50A67D9F.8040505@wp.pl> Date: Fri, 16 Nov 2012 18:53:35 +0100 From: Marek Salwerowicz User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 To: Alex Chistyakov Subject: Re: VirtualBox 4.1.22 on FreeBSD 9.0-RELEASE problem: VBoxHeadless eats 100% CPU References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-WP-AV: skaner antywirusowy poczty Wirtualnej Polski S. A. X-WP-SPAM: NO 0000000 [0UNE] Cc: freebsd-emulation@freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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: Fri, 16 Nov 2012 17:53:44 -0000 W dniu 2012-11-16 16:22, Alex Chistyakov pisze: > Hello, > > My system is an amd64 box running FreeBSD 9.0-RELEASE on top of ZFS. > I try to setup a VirtualBox VM from an Ubuntu 12.04 Server > installation CD in a headless mode using VNC. > Top shows that VBoxHeadless process consumes 100% CPU almost all the > time and it takes forever to boot from the CD image: > > PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND > 1652 vbox 19 22 0 358M 170M IPRT S 3 7:18 100.00% > VBoxHeadless > > I get lots of repeating "ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 > },0x0) = 0 (0x0)" lines every time I try to run truss on the running > VBoxHeadless process, like this: > > ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) > ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) > ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) > ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) > ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) > ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) > ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) > ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) > ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) > ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) > ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) > > and it looks like this system call prevails in truss stats: > > [root@ci ~]# wc -l truss.vbox.log > 1174962 truss.vbox.log > [root@ci ~]# cat truss.vbox.log | grep 'ioctl(7,0x200056c1' | wc -l > 1013997 > [root@ci ~]# > > FD 7 is /dev/vboxdrv0, does this indicate a problem in communicating > with a kernel VirtualBox driver? > What should I do to resolve this situation? Could you write down the VBoxManage commands you use to create the VM ? And post the VBoxManage showvminfo VM_NAME output. What is your hardware? -- Marek Salwerowicz From owner-freebsd-emulation@FreeBSD.ORG Fri Nov 16 19:28:44 2012 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A722A600 for ; Fri, 16 Nov 2012 19:28:44 +0000 (UTC) (envelope-from alexclear@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 758188FC08 for ; Fri, 16 Nov 2012 19:28:44 +0000 (UTC) Received: by mail-pb0-f54.google.com with SMTP id wz12so2293513pbc.13 for ; Fri, 16 Nov 2012 11:28:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=fZ+xdJ4rB7nXxBf1jMaWojZ6/+A9YNCeU5HOjMxWK3o=; b=s62clGK0Hn5gbxhZNngFkMUZ2sN9Zs2NgbZ76NkixIAo7YiCTdv2Tyrc3Tyi4QV/Xy LxBu37eSECFqewh2s7EejqvKV1KzdcSNfXSAdfHa0g8xqigyEDlNPvscfieoOv0ZR9Pd 9zFla7R/A1NmGOLYcMSYPj1UzY9uICnywkPzGTSkr05ROK7jtk8fgUMW7pqrYm1eisqS 05WYYz9CgsLIlkIGdtL2w+UVt9ypLgVWKwV71ye4A1BJL9A4TUU1B7/3w/FBSlS259OU 9bcg16bFZRj2vEejCccQWUnEJAiw/+ZjXwKSHg5GJ4Qs6hx9sbwX0jP2TdfaT+PUrW2f KH3Q== MIME-Version: 1.0 Received: by 10.68.237.6 with SMTP id uy6mr17666942pbc.147.1353094123948; Fri, 16 Nov 2012 11:28:43 -0800 (PST) Received: by 10.66.227.166 with HTTP; Fri, 16 Nov 2012 11:28:43 -0800 (PST) In-Reply-To: <50A67D9F.8040505@wp.pl> References: <50A67D9F.8040505@wp.pl> Date: Fri, 16 Nov 2012 22:28:43 +0300 Message-ID: Subject: Re: VirtualBox 4.1.22 on FreeBSD 9.0-RELEASE problem: VBoxHeadless eats 100% CPU From: Alex Chistyakov To: Marek Salwerowicz Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-emulation@freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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: Fri, 16 Nov 2012 19:28:44 -0000 On Fri, Nov 16, 2012 at 9:53 PM, Marek Salwerowicz wrote: > W dniu 2012-11-16 16:22, Alex Chistyakov pisze: > >> Hello, >> >> My system is an amd64 box running FreeBSD 9.0-RELEASE on top of ZFS. >> I try to setup a VirtualBox VM from an Ubuntu 12.04 Server >> installation CD in a headless mode using VNC. >> Top shows that VBoxHeadless process consumes 100% CPU almost all the >> time and it takes forever to boot from the CD image: >> >> PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU >> COMMAND >> 1652 vbox 19 22 0 358M 170M IPRT S 3 7:18 100.00% >> VBoxHeadless >> >> I get lots of repeating "ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 >> },0x0) = 0 (0x0)" lines every time I try to run truss on the running >> VBoxHeadless process, like this: >> >> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >> >> and it looks like this system call prevails in truss stats: >> >> [root@ci ~]# wc -l truss.vbox.log >> 1174962 truss.vbox.log >> [root@ci ~]# cat truss.vbox.log | grep 'ioctl(7,0x200056c1' | wc -l >> 1013997 >> [root@ci ~]# >> >> FD 7 is /dev/vboxdrv0, does this indicate a problem in communicating >> with a kernel VirtualBox driver? >> What should I do to resolve this situation? > > Could you write down the VBoxManage commands you use to create the VM ? Yeah sure: VBoxManage createhd --filename "st11.vdi" --size 30000 VBoxManage createvm --name Stage11 --ostype Ubuntu_64 --register VBoxManage modifyvm Stage11 --memory 1024 --boot1 dvd --nic1 bridged --bridgeadapter1 em0 VBoxManage storagectl Stage11 --name "SATA Controller" --add sata --controller IntelAHCI --hostiocache on VBoxManage storageattach Stage11 --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium "st11.vdi" VBoxManage storagectl Stage11 --name "IDE Controller" --add ide --controller PIIX4 VBoxManage storageattach Stage11 --storagectl "IDE Controller" --port 0 --device 0 --type dvddrive --medium ~/ubuntu-12.10-server-amd64.iso > And post the VBoxManage showvminfo VM_NAME output. [vbox@ci /usr/home/vbox]$ VBoxManage showvminfo Stage11 Name: Stage11 Guest OS: Ubuntu (64 bit) UUID: 9525da0b-1d93-4ab4-bcb2-df038f63d780 Config file: /home/vbox/VirtualBox VMs/Stage11/Stage11.vbox Snapshot folder: /home/vbox/VirtualBox VMs/Stage11/Snapshots Log folder: /home/vbox/VirtualBox VMs/Stage11/Logs Hardware UUID: 9525da0b-1d93-4ab4-bcb2-df038f63d780 Memory size: 1024MB Page Fusion: off VRAM size: 8MB CPU exec cap: 100% HPET: off Chipset: piix3 Firmware: BIOS Number of CPUs: 1 Synthetic Cpu: off CPUID overrides: None Boot menu mode: message and menu Boot Device (1): DVD Boot Device (2): DVD Boot Device (3): HardDisk Boot Device (4): Not Assigned ACPI: on IOAPIC: on PAE: on Time offset: 0 ms RTC: local time Hardw. virt.ext: on Hardw. virt.ext exclusive: on Nested Paging: on Large Pages: on VT-x VPID: on State: running (since 2012-11-16T15:11:48.223000000) Monitor count: 1 3D Acceleration: off 2D Video Acceleration: off Teleporter Enabled: off Teleporter Port: 0 Teleporter Address: Teleporter Password: Storage Controller Name (0): SATA Controller Storage Controller Type (0): IntelAhci Storage Controller Instance Number (0): 0 Storage Controller Max Port Count (0): 30 Storage Controller Port Count (0): 30 Storage Controller Bootable (0): on Storage Controller Name (1): IDE Controller Storage Controller Type (1): PIIX4 Storage Controller Instance Number (1): 0 Storage Controller Max Port Count (1): 2 Storage Controller Port Count (1): 2 Storage Controller Bootable (1): on SATA Controller (0, 0): /usr/home/vbox/st11.vdi (UUID: 010dcaaa-9609-4022-8f8a-fe65d2954e5a) IDE Controller (0, 0): /home/vbox/ubuntu-12.10-server-amd64.iso (UUID: 8d9d5af9-341e-47c6-8b8f-943c4bcc350d) NIC 1: MAC: 080027BE852C, Attachment: Bridged Interface 'em0', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny NIC 2: disabled NIC 3: disabled NIC 4: disabled NIC 5: disabled NIC 6: disabled NIC 7: disabled NIC 8: disabled Pointing Device: PS/2 Mouse Keyboard Device: PS/2 Keyboard UART 1: disabled UART 2: disabled Audio: disabled Clipboard Mode: disabled Video mode: 800x600x16 VRDE: enabled (Address 0.0.0.0, Ports 3389, MultiConn: off, ReuseSingleConn: off, Authentication type: null) Video redirection: disabled USB: disabled USB Device Filters: Available remote USB devices: Currently Attached USB Devices: Shared folders: VRDE Connection: not active Clients so far: 0 Guest: Configured memory balloon size: 0 MB OS type: Ubuntu_64 Additions run level: 0 Guest Facilities: No active facilities. BTW I've tried to disable nested pages, IOAPIC and ACPI but to no avail. > What is your hardware? Core i7-3930K on Intel DX79TO w/64 Gb RAM, ST33000651AS and ST3000DM001 HDDs Thank you! -- SY, Alex From owner-freebsd-emulation@FreeBSD.ORG Sat Nov 17 12:48:52 2012 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 918CB8E8 for ; Sat, 17 Nov 2012 12:48:52 +0000 (UTC) (envelope-from marek_sal@wp.pl) Received: from mx4.wp.pl (mx4.wp.pl [212.77.101.8]) by mx1.freebsd.org (Postfix) with ESMTP id 0A9018FC12 for ; Sat, 17 Nov 2012 12:48:51 +0000 (UTC) Received: (wp-smtpd smtp.wp.pl 9255 invoked from network); 17 Nov 2012 13:48:49 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1353156529; bh=DWfMciq/s2PMFyJCVWhfNjcQ2Xqi/Vs6OdNZsJ+rp7k=; h=From:To:CC:Subject; b=mj2mnJ5e/hHy+ZgBfDANu+jzecrI/66dyPQK58+mtp0CpGlC4J9g2Igdn+XdBIDty DJjWmJMKE14vYsnb1w0jK94bsT9wNpDuGa1m2nBTgkFRQKhetCb7m+S7xDGE1eOezV wlF1pm7Gqq1TfqbeMjU1yMXqXU6nihf+hTYek3FY= Received: from nat.misal.pl (HELO [127.0.0.1]) (marek_sal@[83.19.131.171]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with AES256-SHA encrypted SMTP for ; 17 Nov 2012 13:48:49 +0100 Message-ID: <50A787A6.8050402@wp.pl> Date: Sat, 17 Nov 2012 13:48:38 +0100 From: Marek Salwerowicz User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 To: Alex Chistyakov Subject: Re: VirtualBox 4.1.22 on FreeBSD 9.0-RELEASE problem: VBoxHeadless eats 100% CPU References: <50A67D9F.8040505@wp.pl> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 121117-0, 2012-11-17), Outbound message X-Antivirus-Status: Clean X-WP-AV: skaner antywirusowy poczty Wirtualnej Polski S. A. X-WP-SPAM: NO 0000000 [YVOU] Cc: freebsd-emulation@freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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: Sat, 17 Nov 2012 12:48:52 -0000 W dniu 2012-11-16 20:28, Alex Chistyakov pisze: > On Fri, Nov 16, 2012 at 9:53 PM, Marek Salwerowicz wrote: >> W dniu 2012-11-16 16:22, Alex Chistyakov pisze: >> >>> Hello, >>> >>> My system is an amd64 box running FreeBSD 9.0-RELEASE on top of ZFS. >>> I try to setup a VirtualBox VM from an Ubuntu 12.04 Server >>> installation CD in a headless mode using VNC. >>> Top shows that VBoxHeadless process consumes 100% CPU almost all the >>> time and it takes forever to boot from the CD image: >>> >>> PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU >>> COMMAND >>> 1652 vbox 19 22 0 358M 170M IPRT S 3 7:18 100.00% >>> VBoxHeadless >>> >>> I get lots of repeating "ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 >>> },0x0) = 0 (0x0)" lines every time I try to run truss on the running >>> VBoxHeadless process, like this: >>> >>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>> >>> and it looks like this system call prevails in truss stats: >>> >>> [root@ci ~]# wc -l truss.vbox.log >>> 1174962 truss.vbox.log >>> [root@ci ~]# cat truss.vbox.log | grep 'ioctl(7,0x200056c1' | wc -l >>> 1013997 >>> [root@ci ~]# >>> >>> FD 7 is /dev/vboxdrv0, does this indicate a problem in communicating >>> with a kernel VirtualBox driver? >>> What should I do to resolve this situation? I've noticed that in my FreeBSD there is /dev/vboxdrv (not vboxdrv0) driver.. Probably different kernel module versions.? >> Could you write down the VBoxManage commands you use to create the VM ? > Yeah sure: > > VBoxManage createhd --filename "st11.vdi" --size 30000 > VBoxManage createvm --name Stage11 --ostype Ubuntu_64 --register > VBoxManage modifyvm Stage11 --memory 1024 --boot1 dvd --nic1 bridged > --bridgeadapter1 em0 > VBoxManage storagectl Stage11 --name "SATA Controller" --add sata > --controller IntelAHCI --hostiocache on > VBoxManage storageattach Stage11 --storagectl "SATA Controller" --port > 0 --device 0 --type hdd --medium "st11.vdi" > VBoxManage storagectl Stage11 --name "IDE Controller" --add ide > --controller PIIX4 > VBoxManage storageattach Stage11 --storagectl "IDE Controller" --port > 0 --device 0 --type dvddrive --medium ~/ubuntu-12.10-server-amd64.iso Why do you use 2 controllers? I'm almost sure you can plug the ISO file to SATA controller Have you tried booting the machine only with CD attached? > >> And post the VBoxManage showvminfo VM_NAME output. > [vbox@ci /usr/home/vbox]$ VBoxManage showvminfo Stage11 > [snip] > > > BTW I've tried to disable nested pages, IOAPIC and ACPI but to no avail. I've created (without HDD) VM only with CD: s14% VBoxManage showvminfo Ubuntu Name: Ubuntu Groups: / Guest OS: Ubuntu (64 bit) UUID: a82f26cc-d223-4f51-8361-b1d3d06abd2c Config file: ~/vm/Ubuntu/Ubuntu.vbox Snapshot folder: ~/vm/Ubuntu/Snapshots Log folder: ~/vm/Ubuntu/Logs Hardware UUID: a82f26cc-d223-4f51-8361-b1d3d06abd2c Memory size: 1024MB Page Fusion: off VRAM size: 7MB CPU exec cap: 100% HPET: on Chipset: piix3 Firmware: BIOS Number of CPUs: 2 Synthetic Cpu: off CPUID overrides: None Boot menu mode: message and menu Boot Device (1): DVD Boot Device (2): DVD Boot Device (3): HardDisk Boot Device (4): Not Assigned ACPI: on IOAPIC: on PAE: on Time offset: 0ms RTC: local time Hardw. virt.ext: on Hardw. virt.ext exclusive: on Nested Paging: on Large Pages: on VT-x VPID: on State: powered off (since 2012-11-17T12:34:40.000000000) Monitor count: 1 3D Acceleration: off 2D Video Acceleration: off Teleporter Enabled: off Teleporter Port: 0 Teleporter Address: Teleporter Password: Tracing Enabled: off Allow Tracing to Access VM: off Tracing Configuration: Autostart Enabled: off Autostart Delay: 0 Storage Controller Name (0): IDE Controller Storage Controller Type (0): PIIX4 Storage Controller Instance Number (0): 0 Storage Controller Max Port Count (0): 2 Storage Controller Port Count (0): 2 Storage Controller Bootable (0): on IDE Controller (0, 1): /ftp/pub/Linux/Ubuntu/ubuntu-12.10-server-amd64.iso (UUID: 90e658c2-be30-4417-8a91-557b374fbaf5) NIC 1: MAC: 080027CB7823, Attachment: Bridged Interface 'em0', Cable connected: on, Trace: off (file: none), Type: 82545EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none NIC 2: disabled NIC 3: disabled NIC 4: disabled NIC 5: disabled NIC 6: disabled NIC 7: disabled NIC 8: disabled Pointing Device: PS/2 Mouse Keyboard Device: PS/2 Keyboard UART 1: disabled UART 2: disabled LPT 1: disabled LPT 2: disabled Audio: disabled Clipboard Mode: disabled Drag'n'drop Mode: disabled VRDE: enabled (Address 0.0.0.0, Ports 5900, MultiConn: off, ReuseSingleConn: off, Authentication type: null) Video redirection: disabled VRDE property: TCP/Ports = "5900" VRDE property: TCP/Address = USB: disabled EHCI: disabled USB Device Filters: Available remote USB devices: Currently Attached USB Devices: Bandwidth groups: Shared folders: VRDE Connection: not active Clients so far: 0 Guest: Configured memory balloon size: 0 MB For me it works without any issues. The thing is that I am using VirtualBox 4.2.4 (it works well on my environment, under 9.1-PRERELEASE amd64). I'd recommend you to upgrade to 4.2.4 > >> What is your hardware? > Core i7-3930K on Intel DX79TO w/64 Gb RAM, ST33000651AS and ST3000DM001 HDDs Ok, that should be supporting virtualization well ;) Let me know about the results. Regards, -- Marek Salwerowicz From owner-freebsd-emulation@FreeBSD.ORG Sat Nov 17 13:23:29 2012 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 067B5E80 for ; Sat, 17 Nov 2012 13:23:29 +0000 (UTC) (envelope-from alexclear@gmail.com) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by mx1.freebsd.org (Postfix) with ESMTP id C6A4D8FC15 for ; Sat, 17 Nov 2012 13:23:28 +0000 (UTC) Received: by mail-pa0-f54.google.com with SMTP id kp6so2594309pab.13 for ; Sat, 17 Nov 2012 05:23:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=krdJm37jGGo5PQFU2gXuwhFqJGEQ8H9Vzy5etdq9piE=; b=NonOqE6ruwZUdM3e4nYHYyPN3ubjhOhPRburPnM1nwqS6bWhvzsepd0ZdcHWFXH/BP NmLL5pgVHOmI++k1m4na9+hR2X9d2CLb27I6G9eI5+o3AryOkGxEAuFgiACsXhF9/gX/ zx7bAiei6fUSgST3B+bsFYM0G7ksixW3HCx53TWV838W9kihbnWawiuRZT1RhVnF0AeB 7MP15BF/y3jpZNnfbFUd9PNs+zSlgImh/5jg30oOilXqVuXzApRdTCdv/aDSAEW/0uSW iVgAN32u7faI9J/xwL7mA2F21ZAFDgaWAjVjnscRQLY78/WoLKh340kuSXcXr0jMvsCU b/wA== MIME-Version: 1.0 Received: by 10.68.143.106 with SMTP id sd10mr23920042pbb.62.1353158602650; Sat, 17 Nov 2012 05:23:22 -0800 (PST) Received: by 10.66.227.166 with HTTP; Sat, 17 Nov 2012 05:23:22 -0800 (PST) In-Reply-To: <50A787A6.8050402@wp.pl> References: <50A67D9F.8040505@wp.pl> <50A787A6.8050402@wp.pl> Date: Sat, 17 Nov 2012 16:23:22 +0300 Message-ID: Subject: Re: VirtualBox 4.1.22 on FreeBSD 9.0-RELEASE problem: VBoxHeadless eats 100% CPU From: Alex Chistyakov To: Marek Salwerowicz Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-emulation@freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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: Sat, 17 Nov 2012 13:23:29 -0000 On Sat, Nov 17, 2012 at 4:48 PM, Marek Salwerowicz wrote: > W dniu 2012-11-16 20:28, Alex Chistyakov pisze: > >> On Fri, Nov 16, 2012 at 9:53 PM, Marek Salwerowicz >> wrote: >>> >>> W dniu 2012-11-16 16:22, Alex Chistyakov pisze: >>> >>>> Hello, >>>> >>>> My system is an amd64 box running FreeBSD 9.0-RELEASE on top of ZFS. >>>> I try to setup a VirtualBox VM from an Ubuntu 12.04 Server >>>> installation CD in a headless mode using VNC. >>>> Top shows that VBoxHeadless process consumes 100% CPU almost all the >>>> time and it takes forever to boot from the CD image: >>>> >>>> PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU >>>> COMMAND >>>> 1652 vbox 19 22 0 358M 170M IPRT S 3 7:18 100.00% >>>> VBoxHeadless >>>> >>>> I get lots of repeating "ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 >>>> },0x0) = 0 (0x0)" lines every time I try to run truss on the running >>>> VBoxHeadless process, like this: >>>> >>>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>>> >>>> and it looks like this system call prevails in truss stats: >>>> >>>> [root@ci ~]# wc -l truss.vbox.log >>>> 1174962 truss.vbox.log >>>> [root@ci ~]# cat truss.vbox.log | grep 'ioctl(7,0x200056c1' | wc -l >>>> 1013997 >>>> [root@ci ~]# >>>> >>>> FD 7 is /dev/vboxdrv0, does this indicate a problem in communicating >>>> with a kernel VirtualBox driver? >>>> What should I do to resolve this situation? > > I've noticed that in my FreeBSD there is /dev/vboxdrv (not vboxdrv0) > driver.. > Probably different kernel module versions.? Probably because I'm on VirtualBox 4.1 and you are on 4.2 >>> Could you write down the VBoxManage commands you use to create the VM ? >> >> Yeah sure: >> >> VBoxManage createhd --filename "st11.vdi" --size 30000 >> VBoxManage createvm --name Stage11 --ostype Ubuntu_64 --register >> VBoxManage modifyvm Stage11 --memory 1024 --boot1 dvd --nic1 bridged >> --bridgeadapter1 em0 >> VBoxManage storagectl Stage11 --name "SATA Controller" --add sata >> --controller IntelAHCI --hostiocache on >> VBoxManage storageattach Stage11 --storagectl "SATA Controller" --port >> 0 --device 0 --type hdd --medium "st11.vdi" >> VBoxManage storagectl Stage11 --name "IDE Controller" --add ide >> --controller PIIX4 >> VBoxManage storageattach Stage11 --storagectl "IDE Controller" --port >> 0 --device 0 --type dvddrive --medium ~/ubuntu-12.10-server-amd64.iso > > Why do you use 2 controllers? I'm almost sure you can plug the ISO file to > SATA controller > Have you tried booting the machine only with CD attached? Yes, I've tried various combinations: a SCSI controller, a SATA controller, an IDE controller, CD and HDD on a single and on two different controllers, CD only but the situation did not change. >>> And post the VBoxManage showvminfo VM_NAME output. >> >> [vbox@ci /usr/home/vbox]$ VBoxManage showvminfo Stage11 >> [snip] >> >> >> >> BTW I've tried to disable nested pages, IOAPIC and ACPI but to no avail. > > I've created (without HDD) VM only with CD: > > s14% VBoxManage showvminfo Ubuntu > Name: Ubuntu > Groups: / > > Guest OS: Ubuntu (64 bit) > UUID: a82f26cc-d223-4f51-8361-b1d3d06abd2c > Config file: ~/vm/Ubuntu/Ubuntu.vbox > Snapshot folder: ~/vm/Ubuntu/Snapshots > Log folder: ~/vm/Ubuntu/Logs > Hardware UUID: a82f26cc-d223-4f51-8361-b1d3d06abd2c > > Memory size: 1024MB > Page Fusion: off > VRAM size: 7MB > CPU exec cap: 100% > HPET: on > > Chipset: piix3 > Firmware: BIOS > Number of CPUs: 2 > Synthetic Cpu: off > CPUID overrides: None > Boot menu mode: message and menu > Boot Device (1): DVD > Boot Device (2): DVD > Boot Device (3): HardDisk > Boot Device (4): Not Assigned > ACPI: on > IOAPIC: on > PAE: on > Time offset: 0ms > RTC: local time > Hardw. virt.ext: on > Hardw. virt.ext exclusive: on > Nested Paging: on > Large Pages: on > VT-x VPID: on > State: powered off (since 2012-11-17T12:34:40.000000000) > > Monitor count: 1 > 3D Acceleration: off > 2D Video Acceleration: off > Teleporter Enabled: off > Teleporter Port: 0 > Teleporter Address: > Teleporter Password: > Tracing Enabled: off > Allow Tracing to Access VM: off > Tracing Configuration: > Autostart Enabled: off > Autostart Delay: 0 > Storage Controller Name (0): IDE Controller > Storage Controller Type (0): PIIX4 > > Storage Controller Instance Number (0): 0 > Storage Controller Max Port Count (0): 2 > Storage Controller Port Count (0): 2 > > Storage Controller Bootable (0): on > IDE Controller (0, 1): /ftp/pub/Linux/Ubuntu/ubuntu-12.10-server-amd64.iso > (UUID: 90e658c2-be30-4417-8a91-557b374fbaf5) > NIC 1: MAC: 080027CB7823, Attachment: Bridged Interface 'em0', > Cable connected: on, Trace: off (file: none), Type: 82545EM, Reported speed: > 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none > > NIC 2: disabled > NIC 3: disabled > NIC 4: disabled > NIC 5: disabled > NIC 6: disabled > NIC 7: disabled > NIC 8: disabled > Pointing Device: PS/2 Mouse > Keyboard Device: PS/2 Keyboard > UART 1: disabled > UART 2: disabled > LPT 1: disabled > LPT 2: disabled > > Audio: disabled > Clipboard Mode: disabled > Drag'n'drop Mode: disabled > VRDE: enabled (Address 0.0.0.0, Ports 5900, MultiConn: off, > ReuseSingleConn: off, Authentication type: null) > Video redirection: disabled > VRDE property: TCP/Ports = "5900" > VRDE property: TCP/Address = > USB: disabled > EHCI: disabled > > > USB Device Filters: > > > > Available remote USB devices: > > > > Currently Attached USB Devices: > > > > Bandwidth groups: > > > Shared folders: > > VRDE Connection: not active > Clients so far: 0 > > Guest: > > Configured memory balloon size: 0 MB > > > For me it works without any issues. > The thing is that I am using VirtualBox 4.2.4 (it works well on my > environment, under 9.1-PRERELEASE amd64). > I'd recommend you to upgrade to 4.2.4 I upgraded to 9.1-PRERELEASE already so my next step is to try 4.2.4 I also put pmcstat on the game and got some interesting samples. Sample 1: --------------------------- 15.12% [260] RTTimeNanoTSLFenceSync @ /usr/local/lib/virtualbox/VBoxRT.so 99.62% [259] TMVirtualGetNoCheck @ /usr/local/lib/virtualbox/VBoxVMM.so 100.0% [259] TMTimerPollVoid 100.0% [259] emR3HwAccExecute 00.38% [1] _Z19vmR3HaltGlobal1HaltP6UVMCPUjm 100.0% [1] VMR3WaitHalted 100.0% [1] EMR3ExecuteVM --------------------------- Well, this looked like a broken time source to me (I used to have hi-res timer problems on rigs like that under Linux so this looked familiar) so I switched the time source to ACPI-fast. This allowed me to get further than first two installer screens on the guest but I had to reorganize my network configuration so I restarted the guest and got the problem again. I collected the 2nd sample then: --------------------------- 24.61% [1520] RTTimeNanoTSLFenceSync @ /usr/local/lib/virtualbox/VBoxRT.so 99.47% [1512] TMVirtualGetNoCheck @ /usr/local/lib/virtualbox/VBoxVMM.so 99.93% [1511] TMTimerPollVoid 100.0% [1511] emR3HwAccExecute 00.07% [1] _Z28tmR3TimerQueueRunVirtualSyncP2VM 100.0% [1] TMR3TimerQueuesDo 00.26% [4] _Z19vmR3HaltGlobal1HaltP6UVMCPUjm 100.0% [4] VMR3WaitHalted 100.0% [4] EMR3ExecuteVM 00.13% [2] VMMR3YieldStop 100.0% [2] _Z19vmR3HaltGlobal1HaltP6UVMCPUjm 100.0% [2] VMR3WaitHalted 00.13% [2] RTTimeMilliTS @ /usr/local/lib/virtualbox/VBoxRT.so 50.00% [1] _Z17tmR3TimerQueueRunP2VMP12TMTIMERQUEUE @ /usr/local/lib/virtualbox/VBoxVMM.so 100.0% [1] TMR3TimerQueuesDo 50.00% [1] _Z17tmR3TimerCallbackP7RTTIMERPvm 100.0% [1] _Z13rttimerThreadP11RTTHREADINTPv @ /usr/local/lib/virtualbox/VBoxRT.so --------------------------- A pattern differed but the root of the problem was basically the same so I decided to dive deeper and to switch to i8254. And the sample was: --------------------------- 26.96% [388] _mtx_lock_spin @ /boot/kernel/kernel 100.0% [388] getit 100.0% [388] i8254_get_timecount 96.13% [373] binuptime 03.87% [15] tc_windup --------------------------- This does not look very promising so I probably need to investigate other timer-related kernel params if switching to 4.2.4 does not help me. > > >> >>> What is your hardware? >> >> Core i7-3930K on Intel DX79TO w/64 Gb RAM, ST33000651AS and ST3000DM001 >> HDDs > > Ok, that should be supporting virtualization well ;) > > Let me know about the results. Thank you! I will upgrade to 4.2.4 and let you know. -- SY, Alex From owner-freebsd-emulation@FreeBSD.ORG Sat Nov 17 16:18:30 2012 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2F33228F for ; Sat, 17 Nov 2012 16:18:30 +0000 (UTC) (envelope-from marek_sal@wp.pl) Received: from mx3.wp.pl (mx3.wp.pl [212.77.101.7]) by mx1.freebsd.org (Postfix) with ESMTP id AAE548FC0C for ; Sat, 17 Nov 2012 16:18:29 +0000 (UTC) Received: (wp-smtpd smtp.wp.pl 3870 invoked from network); 17 Nov 2012 17:18:27 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1353169107; bh=sI76MgZZq0CMN2vAmYv8EYxltEb7FhOTL85lWZNSNG8=; h=From:To:Subject; b=qogzIP5dgDw7Uvq4vLeIvdXI3TYjIw9RcW/rtIG5/RRg/9Wd+45DZ8n4qG//S0Uxx A8u0X33Wm8HEym7NoXoE/T2KBH/L72qgeLfuDlirwx6QHXM7jnVuESjRtrYaJC9Isf LoS+DYj4i0C1uo+Pp8XgSax+kpBKjZfxtmO5O1gI= Received: from nat.misal.pl (HELO [127.0.0.1]) (marek_sal@[83.19.131.171]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with AES256-SHA encrypted SMTP for ; 17 Nov 2012 17:18:27 +0100 Message-ID: <50A7B8C8.9060706@wp.pl> Date: Sat, 17 Nov 2012 17:18:16 +0100 From: Marek Salwerowicz User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 To: Community mailing list of VirtualBox users , freebsd-emulation@freebsd.org Subject: VirtualBox 4.2.4 - iSCSI target detach? Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 121117-0, 2012-11-17), Outbound message X-Antivirus-Status: Clean X-WP-AV: skaner antywirusowy poczty Wirtualnej Polski S. A. X-WP-SPAM: NO 0000000 [QdNk] X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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: Sat, 17 Nov 2012 16:18:30 -0000 Hi list. I'm using VirtualBox 4.2.4 at FreeBSD 9.1-PRERELEASE amd64 box. I'm preparing VDI disk image, located at iSCSI target: s14% VBoxManage showvminfo Windows7 | grep iSCSI Storage Controller Name (0): SATA-iSCSI SATA-iSCSI (0, 0): volt|iqn.2012-01.zetis:win7-vdi (UUID: 80df955c-243b-4d67-9321-b0dd87d3dc0e) s14% Firstly I connected the iSCSI target in 'normal' mode in order to install Windows 7 on it. After installing and configuring, ran 'sysprep' and close the system. Now I would like to detach the iSCSI target from machine: s14% VBoxManage storageattach Windows7 --storagectl "SATA-iSCSI" --port 0 --device 0 --medium none And attach it again in 'multiattach' mode: s14% VBoxManage storageattach Windows7 --storagectl "SATA-iSCSI" --port 0 --device 0 --type hdd --medium iscsi --mtype multiattach --server volt --target iqn.2012-01.zetis:win7-vdi VBoxManage: error: Cannot register the hard disk 'volt|iqn.2012-01.zetis:win7-vdi' {5f151cfa-7274-4317-ad20-473828e77a11} because a hard disk 'volt|iqn.2012-01.zetis:win7-vdi' with UUID {80df955c-243b-4d67-9321-b0dd87d3dc0e} already exists VBoxManage: error: Details: code NS_ERROR_INVALID_ARG (0x80070057), component VirtualBox, interface IVirtualBox, callee nsISupports VBoxManage: error: Context: "CreateHardDisk(Bstr("iSCSI").raw(), bstrISCSIMedium.raw(), pMedium2Mount.asOutParam())" at line 576 of file VBoxManageStorageController.cpp s14% Of course, the disk cant be re-registered because it already exists on hdds list: s14% VBoxManage list hdds UUID: 80df955c-243b-4d67-9321-b0dd87d3dc0e Parent UUID: base Format: iSCSI Location: volt|iqn.2012-01.zetis:win7-vdi State: created Type: normal s14% I can't change the type to 'multiattach': s14% VBoxManage modifyhd 80df955c-243b-4d67-9321-b0dd87d3dc0e --type multiattach VBoxManage: error: The given path '80df955c-243b-4d67-9321-b0dd87d3dc0e' is not fully qualified VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Medium, interface IMedium, callee nsISupports VBoxManage: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, AccessMode_ReadWrite, false, pMedium.asOutParam())" at line 177 of file VBoxManageDisk.cpp s14% So how can I re-attach the same iSCSI target to virtual machine, with different type (multiattach), without restarting the whole host system? Regards, -- Marek Salwerowicz From owner-freebsd-emulation@FreeBSD.ORG Sat Nov 17 19:19:54 2012 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 76909B87 for ; Sat, 17 Nov 2012 19:19:54 +0000 (UTC) (envelope-from alexclear@gmail.com) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by mx1.freebsd.org (Postfix) with ESMTP id 440318FC0C for ; Sat, 17 Nov 2012 19:19:54 +0000 (UTC) Received: by mail-pa0-f54.google.com with SMTP id kp6so2699163pab.13 for ; Sat, 17 Nov 2012 11:19:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=8ZbyKRu4+Q565KIKzhGXl7AtBB8aRSSQItc57q2KMdE=; b=cyMAljo+hzKgE59Wzwf7SfkhI6NIcR8P+XHwsb0/YL6D7rssZSoFAgyoo72aslrrHi Gq6vOwO8c3PFp6SBL0JAlVu2vz3C3cetzUFHtacsVwe4O43bNMki4ePHcitScbvnfcHx 2FD4a7/NCJVWJs5savf5a1A0cbAabJwPVOUE8JkaN+3FscdFcLJzttWBm8NQs0Jv+dzo vEsy1EFQa4odv8cT2ILh7wKpOG58ZyTrMtC04eaCtkx6tRv7rLYwoicXD5/YufHg7W27 YopFqqVQMVRfBZayLCrN94lwgTIadK8QT5qZlN88/29qMHD894LZyaPI/dqyFJI8tESj qRng== MIME-Version: 1.0 Received: by 10.68.218.97 with SMTP id pf1mr26278118pbc.96.1353179993680; Sat, 17 Nov 2012 11:19:53 -0800 (PST) Received: by 10.66.227.166 with HTTP; Sat, 17 Nov 2012 11:19:53 -0800 (PST) In-Reply-To: <50A787A6.8050402@wp.pl> References: <50A67D9F.8040505@wp.pl> <50A787A6.8050402@wp.pl> Date: Sat, 17 Nov 2012 22:19:53 +0300 Message-ID: Subject: Re: VirtualBox 4.1.22 on FreeBSD 9.0-RELEASE problem: VBoxHeadless eats 100% CPU From: Alex Chistyakov To: Marek Salwerowicz Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-emulation@freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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: Sat, 17 Nov 2012 19:19:54 -0000 On Sat, Nov 17, 2012 at 4:48 PM, Marek Salwerowicz wrote: > W dniu 2012-11-16 20:28, Alex Chistyakov pisze: > >> On Fri, Nov 16, 2012 at 9:53 PM, Marek Salwerowicz >> wrote: >>> >>> W dniu 2012-11-16 16:22, Alex Chistyakov pisze: >>> >>>> Hello, >>>> >>>> My system is an amd64 box running FreeBSD 9.0-RELEASE on top of ZFS. >>>> I try to setup a VirtualBox VM from an Ubuntu 12.04 Server >>>> installation CD in a headless mode using VNC. >>>> Top shows that VBoxHeadless process consumes 100% CPU almost all the >>>> time and it takes forever to boot from the CD image: >>>> >>>> PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU >>>> COMMAND >>>> 1652 vbox 19 22 0 358M 170M IPRT S 3 7:18 100.00% >>>> VBoxHeadless >>>> >>>> I get lots of repeating "ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 >>>> },0x0) = 0 (0x0)" lines every time I try to run truss on the running >>>> VBoxHeadless process, like this: >>>> >>>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>>> ioctl(7,0x200056c1 { IO 0x56('V'), 193, 0 },0x0) = 0 (0x0) >>>> >>>> and it looks like this system call prevails in truss stats: >>>> >>>> [root@ci ~]# wc -l truss.vbox.log >>>> 1174962 truss.vbox.log >>>> [root@ci ~]# cat truss.vbox.log | grep 'ioctl(7,0x200056c1' | wc -l >>>> 1013997 >>>> [root@ci ~]# >>>> >>>> FD 7 is /dev/vboxdrv0, does this indicate a problem in communicating >>>> with a kernel VirtualBox driver? >>>> What should I do to resolve this situation? > > I've noticed that in my FreeBSD there is /dev/vboxdrv (not vboxdrv0) > driver.. > Probably different kernel module versions.? > > > > >>> Could you write down the VBoxManage commands you use to create the VM ? >> >> Yeah sure: >> >> VBoxManage createhd --filename "st11.vdi" --size 30000 >> VBoxManage createvm --name Stage11 --ostype Ubuntu_64 --register >> VBoxManage modifyvm Stage11 --memory 1024 --boot1 dvd --nic1 bridged >> --bridgeadapter1 em0 >> VBoxManage storagectl Stage11 --name "SATA Controller" --add sata >> --controller IntelAHCI --hostiocache on >> VBoxManage storageattach Stage11 --storagectl "SATA Controller" --port >> 0 --device 0 --type hdd --medium "st11.vdi" >> VBoxManage storagectl Stage11 --name "IDE Controller" --add ide >> --controller PIIX4 >> VBoxManage storageattach Stage11 --storagectl "IDE Controller" --port >> 0 --device 0 --type dvddrive --medium ~/ubuntu-12.10-server-amd64.iso > > Why do you use 2 controllers? I'm almost sure you can plug the ISO file to > SATA controller > Have you tried booting the machine only with CD attached? > > > >> >>> And post the VBoxManage showvminfo VM_NAME output. >> >> [vbox@ci /usr/home/vbox]$ VBoxManage showvminfo Stage11 >> [snip] >> >> >> >> BTW I've tried to disable nested pages, IOAPIC and ACPI but to no avail. > > I've created (without HDD) VM only with CD: > > s14% VBoxManage showvminfo Ubuntu > Name: Ubuntu > Groups: / > > Guest OS: Ubuntu (64 bit) > UUID: a82f26cc-d223-4f51-8361-b1d3d06abd2c > Config file: ~/vm/Ubuntu/Ubuntu.vbox > Snapshot folder: ~/vm/Ubuntu/Snapshots > Log folder: ~/vm/Ubuntu/Logs > Hardware UUID: a82f26cc-d223-4f51-8361-b1d3d06abd2c > > Memory size: 1024MB > Page Fusion: off > VRAM size: 7MB > CPU exec cap: 100% > HPET: on > > Chipset: piix3 > Firmware: BIOS > Number of CPUs: 2 > Synthetic Cpu: off > CPUID overrides: None > Boot menu mode: message and menu > Boot Device (1): DVD > Boot Device (2): DVD > Boot Device (3): HardDisk > Boot Device (4): Not Assigned > ACPI: on > IOAPIC: on > PAE: on > Time offset: 0ms > RTC: local time > Hardw. virt.ext: on > Hardw. virt.ext exclusive: on > Nested Paging: on > Large Pages: on > VT-x VPID: on > State: powered off (since 2012-11-17T12:34:40.000000000) > > Monitor count: 1 > 3D Acceleration: off > 2D Video Acceleration: off > Teleporter Enabled: off > Teleporter Port: 0 > Teleporter Address: > Teleporter Password: > Tracing Enabled: off > Allow Tracing to Access VM: off > Tracing Configuration: > Autostart Enabled: off > Autostart Delay: 0 > Storage Controller Name (0): IDE Controller > Storage Controller Type (0): PIIX4 > > Storage Controller Instance Number (0): 0 > Storage Controller Max Port Count (0): 2 > Storage Controller Port Count (0): 2 > > Storage Controller Bootable (0): on > IDE Controller (0, 1): /ftp/pub/Linux/Ubuntu/ubuntu-12.10-server-amd64.iso > (UUID: 90e658c2-be30-4417-8a91-557b374fbaf5) > NIC 1: MAC: 080027CB7823, Attachment: Bridged Interface 'em0', > Cable connected: on, Trace: off (file: none), Type: 82545EM, Reported speed: > 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none > > NIC 2: disabled > NIC 3: disabled > NIC 4: disabled > NIC 5: disabled > NIC 6: disabled > NIC 7: disabled > NIC 8: disabled > Pointing Device: PS/2 Mouse > Keyboard Device: PS/2 Keyboard > UART 1: disabled > UART 2: disabled > LPT 1: disabled > LPT 2: disabled > > Audio: disabled > Clipboard Mode: disabled > Drag'n'drop Mode: disabled > VRDE: enabled (Address 0.0.0.0, Ports 5900, MultiConn: off, > ReuseSingleConn: off, Authentication type: null) > Video redirection: disabled > VRDE property: TCP/Ports = "5900" > VRDE property: TCP/Address = > USB: disabled > EHCI: disabled > > > USB Device Filters: > > > > Available remote USB devices: > > > > Currently Attached USB Devices: > > > > Bandwidth groups: > > > Shared folders: > > VRDE Connection: not active > Clients so far: 0 > > Guest: > > Configured memory balloon size: 0 MB > > > For me it works without any issues. > The thing is that I am using VirtualBox 4.2.4 (it works well on my > environment, under 9.1-PRERELEASE amd64). > I'd recommend you to upgrade to 4.2.4 > > >> >>> What is your hardware? >> >> Core i7-3930K on Intel DX79TO w/64 Gb RAM, ST33000651AS and ST3000DM001 >> HDDs > > Ok, that should be supporting virtualization well ;) > > Let me know about the results. Okay the situation has changed radically after upgrade to 4.2.4, VBoxHeadless does not consume 100% CPU anymore but now I have another problem: --- 192.168.221.11 ping statistics --- 677 packets transmitted, 677 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.233/4997.489/52552.511/10627.598 ms This is results of ping between host and guest systems. A common pattern is like this: 64 bytes from 192.168.221.11: icmp_seq=63 ttl=64 time=21.168 ms 64 bytes from 192.168.221.11: icmp_seq=64 ttl=64 time=1.914 ms 64 bytes from 192.168.221.11: icmp_seq=65 ttl=64 time=49.005 ms 64 bytes from 192.168.221.11: icmp_seq=66 ttl=64 time=7.190 ms 64 bytes from 192.168.221.11: icmp_seq=67 ttl=64 time=56.000 ms 64 bytes from 192.168.221.11: icmp_seq=68 ttl=64 time=0.276 ms 64 bytes from 192.168.221.11: icmp_seq=69 ttl=64 time=0.817 ms 64 bytes from 192.168.221.11: icmp_seq=70 ttl=64 time=12.177 ms 64 bytes from 192.168.221.11: icmp_seq=71 ttl=64 time=11.181 ms 64 bytes from 192.168.221.11: icmp_seq=72 ttl=64 time=19790.362 ms 64 bytes from 192.168.221.11: icmp_seq=73 ttl=64 time=18789.374 ms 64 bytes from 192.168.221.11: icmp_seq=74 ttl=64 time=17788.379 ms 64 bytes from 192.168.221.11: icmp_seq=75 ttl=64 time=16787.386 ms 64 bytes from 192.168.221.11: icmp_seq=76 ttl=64 time=15786.393 ms 64 bytes from 192.168.221.11: icmp_seq=77 ttl=64 time=14785.398 ms 64 bytes from 192.168.221.11: icmp_seq=78 ttl=64 time=13784.407 ms 64 bytes from 192.168.221.11: icmp_seq=79 ttl=64 time=12783.412 ms 64 bytes from 192.168.221.11: icmp_seq=80 ttl=64 time=11782.419 ms 64 bytes from 192.168.221.11: icmp_seq=81 ttl=64 time=10781.423 ms 64 bytes from 192.168.221.11: icmp_seq=82 ttl=64 time=9780.431 ms 64 bytes from 192.168.221.11: icmp_seq=83 ttl=64 time=8779.437 ms 64 bytes from 192.168.221.11: icmp_seq=84 ttl=64 time=7778.445 ms 64 bytes from 192.168.221.11: icmp_seq=85 ttl=64 time=6777.452 ms 64 bytes from 192.168.221.11: icmp_seq=86 ttl=64 time=5776.456 ms 64 bytes from 192.168.221.11: icmp_seq=87 ttl=64 time=4775.463 ms 64 bytes from 192.168.221.11: icmp_seq=88 ttl=64 time=3774.470 ms 64 bytes from 192.168.221.11: icmp_seq=89 ttl=64 time=2773.473 ms 64 bytes from 192.168.221.11: icmp_seq=90 ttl=64 time=1772.482 ms 64 bytes from 192.168.221.11: icmp_seq=91 ttl=64 time=771.488 ms 64 bytes from 192.168.221.11: icmp_seq=92 ttl=64 time=50.004 ms 64 bytes from 192.168.221.11: icmp_seq=93 ttl=64 time=0.252 ms 64 bytes from 192.168.221.11: icmp_seq=94 ttl=64 time=67.006 ms I also have got a lot of "soft lockup - CPU#0 stuck for 22s!" Linux kernel messages on the guest. Since this is a periodic problem I guess the best way to track it down is to get thread stack dump samples using gdb when the lock occures but unfortunately I am not familiar with FreeBSD flavour of gdb, it seems to be quite different. But I will try anyway. Thanks, -- SY, Alex From owner-freebsd-emulation@FreeBSD.ORG Sat Nov 17 19:30:01 2012 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2D623FA4 for ; Sat, 17 Nov 2012 19:30:01 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-oa0-f54.google.com (mail-oa0-f54.google.com [209.85.219.54]) by mx1.freebsd.org (Postfix) with ESMTP id D93568FC0C for ; Sat, 17 Nov 2012 19:30:00 +0000 (UTC) Received: by mail-oa0-f54.google.com with SMTP id n9so4783391oag.13 for ; Sat, 17 Nov 2012 11:30:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=S0l1MLsy1J6MuIja3REOW3OsYyiXehyxgCDF6Q7ivs8=; b=xbgZIaiCb5TZVSvvEbhFF6HsvViMTdQoubKjuEGKNQsLwXIjEbsi+CMDfbZfCwrJm2 EurM56WI3PAj8qXq8jJC7Bi2S72gBftAreqj4jE2G9J0i0aTe+VLK+C4nEHrbnfimvE2 6O+RaofvFn1h4TE1Zt1zRaLCo8+YgNew6Hj1munUyTRhIfAktnRMQwinfLE2zJSrmvZ7 DrIE70I/qORh2INELhGRsCZFfsbC7Cw76NamQ1VKnvx9O0AbgkXkVAJ1iUGhlgPQqqW/ 4uz3LyziNwMG/FcZ6vEmC3PjK4wF+lusSY+Om9T/5auBB+EGL8HRRZaPrBRolSnXozoC 0VEw== MIME-Version: 1.0 Received: by 10.60.32.193 with SMTP id l1mr6765040oei.114.1353180600049; Sat, 17 Nov 2012 11:30:00 -0800 (PST) Received: by 10.76.80.104 with HTTP; Sat, 17 Nov 2012 11:29:59 -0800 (PST) In-Reply-To: References: <50A67D9F.8040505@wp.pl> <50A787A6.8050402@wp.pl> Date: Sat, 17 Nov 2012 13:29:59 -0600 Message-ID: Subject: Re: VirtualBox 4.1.22 on FreeBSD 9.0-RELEASE problem: VBoxHeadless eats 100% CPU From: Adam Vande More To: Alex Chistyakov Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-emulation@freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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: Sat, 17 Nov 2012 19:30:01 -0000 On Sat, Nov 17, 2012 at 1:19 PM, Alex Chistyakov wrote: > Okay the situation has changed radically after upgrade to 4.2.4, > VBoxHeadless does not consume 100% CPU anymore but now I have another > problem: > > --- 192.168.221.11 ping statistics --- > 677 packets transmitted, 677 packets received, 0.0% packet loss > round-trip min/avg/max/stddev = 0.233/4997.489/52552.511/10627.598 ms > > This is results of ping between host and guest systems. > > A common pattern is like this: > > 64 bytes from 192.168.221.11: icmp_seq=63 ttl=64 time=21.168 ms > 64 bytes from 192.168.221.11: icmp_seq=64 ttl=64 time=1.914 ms > 64 bytes from 192.168.221.11: icmp_seq=65 ttl=64 time=49.005 ms > 64 bytes from 192.168.221.11: icmp_seq=66 ttl=64 time=7.190 ms > 64 bytes from 192.168.221.11: icmp_seq=67 ttl=64 time=56.000 ms > 64 bytes from 192.168.221.11: icmp_seq=68 ttl=64 time=0.276 ms > 64 bytes from 192.168.221.11: icmp_seq=69 ttl=64 time=0.817 ms > 64 bytes from 192.168.221.11: icmp_seq=70 ttl=64 time=12.177 ms > 64 bytes from 192.168.221.11: icmp_seq=71 ttl=64 time=11.181 ms > 64 bytes from 192.168.221.11: icmp_seq=72 ttl=64 time=19790.362 ms > 64 bytes from 192.168.221.11: icmp_seq=73 ttl=64 time=18789.374 ms > 64 bytes from 192.168.221.11: icmp_seq=74 ttl=64 time=17788.379 ms > > > I also have got a lot of "soft lockup - CPU#0 stuck for 22s!" Linux > kernel messages on the guest. > Since this is a periodic problem I guess the best way to track it down > is to get thread stack dump samples using gdb when the lock occures > but unfortunately I am not familiar with FreeBSD flavour of gdb, it > seems to be quite different. But I will try anyway. Does 'sysctl kern.eventtimer.periodic=1' help? -- Adam Vande More From owner-freebsd-emulation@FreeBSD.ORG Sat Nov 17 20:32:03 2012 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7B7D228F for ; Sat, 17 Nov 2012 20:32:03 +0000 (UTC) (envelope-from alexclear@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 47A5F8FC0C for ; Sat, 17 Nov 2012 20:32:03 +0000 (UTC) Received: by mail-pb0-f54.google.com with SMTP id wz12so2796202pbc.13 for ; Sat, 17 Nov 2012 12:32:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=TyN9BcsXzqe2iUkDCZbHKA3eErVkBFm5n4dUvIsQ04g=; b=vo8C4Ai/xUbB66pb6oEGgYrwUDv5Hon0HSwvChMKu2WQVgFDO+32i1ANnFGVMPyzYG CXLjOor+wdwRhB8MTszFWk02DHDXD58XNvh7+0JqVX+JbGg9YMPLz5j+LGeuf3cOFp4m kfwL7j77/Y2Dwgce5sTzovkreH1ek0m7eE2B1rkMLbEZWMjrnZF96X4LjtezBCoqjnI+ Uwx25m4Pg1RgnSBvH5ZIQqzwadicAR14a5H68g59dOOclS2eM78W8CB/jUNE1H4v1kPf GxTHQo3SIzz00Fcbo7zy/IcZ74tVtb3Jlk0/QQbgGFXZQ1NJ1gqpENKmWjfVo4bGd4t1 wQLw== MIME-Version: 1.0 Received: by 10.68.218.97 with SMTP id pf1mr26665367pbc.96.1353184322918; Sat, 17 Nov 2012 12:32:02 -0800 (PST) Received: by 10.66.227.166 with HTTP; Sat, 17 Nov 2012 12:32:02 -0800 (PST) In-Reply-To: References: <50A67D9F.8040505@wp.pl> <50A787A6.8050402@wp.pl> Date: Sat, 17 Nov 2012 23:32:02 +0300 Message-ID: Subject: Re: VirtualBox 4.1.22 on FreeBSD 9.0-RELEASE problem: VBoxHeadless eats 100% CPU From: Alex Chistyakov To: Adam Vande More Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-emulation@freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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: Sat, 17 Nov 2012 20:32:03 -0000 On Sat, Nov 17, 2012 at 11:29 PM, Adam Vande More wrote: > On Sat, Nov 17, 2012 at 1:19 PM, Alex Chistyakov > wrote: >> >> Okay the situation has changed radically after upgrade to 4.2.4, >> VBoxHeadless does not consume 100% CPU anymore but now I have another >> problem: >> >> --- 192.168.221.11 ping statistics --- >> 677 packets transmitted, 677 packets received, 0.0% packet loss >> round-trip min/avg/max/stddev = 0.233/4997.489/52552.511/10627.598 ms >> >> This is results of ping between host and guest systems. >> >> A common pattern is like this: >> >> 64 bytes from 192.168.221.11: icmp_seq=63 ttl=64 time=21.168 ms >> 64 bytes from 192.168.221.11: icmp_seq=64 ttl=64 time=1.914 ms >> 64 bytes from 192.168.221.11: icmp_seq=65 ttl=64 time=49.005 ms >> 64 bytes from 192.168.221.11: icmp_seq=66 ttl=64 time=7.190 ms >> 64 bytes from 192.168.221.11: icmp_seq=67 ttl=64 time=56.000 ms >> 64 bytes from 192.168.221.11: icmp_seq=68 ttl=64 time=0.276 ms >> 64 bytes from 192.168.221.11: icmp_seq=69 ttl=64 time=0.817 ms >> 64 bytes from 192.168.221.11: icmp_seq=70 ttl=64 time=12.177 ms >> 64 bytes from 192.168.221.11: icmp_seq=71 ttl=64 time=11.181 ms >> 64 bytes from 192.168.221.11: icmp_seq=72 ttl=64 time=19790.362 ms >> 64 bytes from 192.168.221.11: icmp_seq=73 ttl=64 time=18789.374 ms >> 64 bytes from 192.168.221.11: icmp_seq=74 ttl=64 time=17788.379 ms >> >> >> I also have got a lot of "soft lockup - CPU#0 stuck for 22s!" Linux >> kernel messages on the guest. >> Since this is a periodic problem I guess the best way to track it down >> is to get thread stack dump samples using gdb when the lock occures >> but unfortunately I am not familiar with FreeBSD flavour of gdb, it >> seems to be quite different. But I will try anyway. > > > Does 'sysctl kern.eventtimer.periodic=1' help? No it does not. I also tried to boot the guest using highrez=off and nohz=off and got steady 100% CPU consumption immediately. Sampling result on host is: 46.04% [11023] cpu_search_highest @ /boot/kernel/kernel 81.93% [9031] cpu_search_highest 59.55% [5378] sched_idletd 100.0% [5378] fork_exit 40.45% [3653] cpu_search_highest 100.0% [3653] sched_idletd 17.92% [1975] sched_idletd 100.0% [1975] fork_exit 00.15% [17] fork_exit Looks like lots of extra rescheduling and I wonder if setting CPU affinity can help with this. Thanks, -- SY, Alex From owner-freebsd-emulation@FreeBSD.ORG Sat Nov 17 20:53:09 2012 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CCE2F9AE for ; Sat, 17 Nov 2012 20:53:09 +0000 (UTC) (envelope-from alexclear@gmail.com) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by mx1.freebsd.org (Postfix) with ESMTP id 944558FC0C for ; Sat, 17 Nov 2012 20:53:09 +0000 (UTC) Received: by mail-pa0-f54.google.com with SMTP id kp6so2721983pab.13 for ; Sat, 17 Nov 2012 12:53:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=9afbGH+SVGHOAnTDprzJtAp0EtO4+6RNDmkyHMcfVeU=; b=xbAiDxkomWJ93BPS9pvuucRRNNhBPEzxMNywSNCmbR5Pha2vQvNvrZPxwcnLZWzzDT P8xYLMKrwb+ggM2wEIwVZ5vmdjyYW3EPAPAJ+EGC7dg4htqTORKuwEbEPkr/n+myrqOb 6ekt+OiKhmTa95VJQKFvLkuUO7g9fkkSqgE+IQLbtZZYBB8gUiGqbUk7fwdTX32QBLke UPSWzhzOMtJ1SSoPSOXDEctUHDN1globUeUmJ8qW43I6RZ8Pr5UsTeNb8b2tKStAYbke ZJdUuiGJmpvIDX/UPtSIJX7FCWItn7aDDJ/owwvUAF8+dGDcfdeSBIXBluGvMByxaWry 966A== MIME-Version: 1.0 Received: by 10.68.233.197 with SMTP id ty5mr27334873pbc.9.1353185589098; Sat, 17 Nov 2012 12:53:09 -0800 (PST) Received: by 10.66.227.166 with HTTP; Sat, 17 Nov 2012 12:53:08 -0800 (PST) In-Reply-To: References: <50A67D9F.8040505@wp.pl> <50A787A6.8050402@wp.pl> Date: Sat, 17 Nov 2012 23:53:08 +0300 Message-ID: Subject: Re: VirtualBox 4.1.22 on FreeBSD 9.0-RELEASE problem: VBoxHeadless eats 100% CPU From: Alex Chistyakov To: Adam Vande More Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-emulation@freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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: Sat, 17 Nov 2012 20:53:10 -0000 On Sun, Nov 18, 2012 at 12:32 AM, Alex Chistyakov wrote: > On Sat, Nov 17, 2012 at 11:29 PM, Adam Vande More wrote: >> On Sat, Nov 17, 2012 at 1:19 PM, Alex Chistyakov >> wrote: >>> >>> Okay the situation has changed radically after upgrade to 4.2.4, >>> VBoxHeadless does not consume 100% CPU anymore but now I have another >>> problem: >>> >>> --- 192.168.221.11 ping statistics --- >>> 677 packets transmitted, 677 packets received, 0.0% packet loss >>> round-trip min/avg/max/stddev = 0.233/4997.489/52552.511/10627.598 ms >>> >>> This is results of ping between host and guest systems. >>> >>> A common pattern is like this: >>> >>> 64 bytes from 192.168.221.11: icmp_seq=63 ttl=64 time=21.168 ms >>> 64 bytes from 192.168.221.11: icmp_seq=64 ttl=64 time=1.914 ms >>> 64 bytes from 192.168.221.11: icmp_seq=65 ttl=64 time=49.005 ms >>> 64 bytes from 192.168.221.11: icmp_seq=66 ttl=64 time=7.190 ms >>> 64 bytes from 192.168.221.11: icmp_seq=67 ttl=64 time=56.000 ms >>> 64 bytes from 192.168.221.11: icmp_seq=68 ttl=64 time=0.276 ms >>> 64 bytes from 192.168.221.11: icmp_seq=69 ttl=64 time=0.817 ms >>> 64 bytes from 192.168.221.11: icmp_seq=70 ttl=64 time=12.177 ms >>> 64 bytes from 192.168.221.11: icmp_seq=71 ttl=64 time=11.181 ms >>> 64 bytes from 192.168.221.11: icmp_seq=72 ttl=64 time=19790.362 ms >>> 64 bytes from 192.168.221.11: icmp_seq=73 ttl=64 time=18789.374 ms >>> 64 bytes from 192.168.221.11: icmp_seq=74 ttl=64 time=17788.379 ms >>> >>> >>> I also have got a lot of "soft lockup - CPU#0 stuck for 22s!" Linux >>> kernel messages on the guest. >>> Since this is a periodic problem I guess the best way to track it down >>> is to get thread stack dump samples using gdb when the lock occures >>> but unfortunately I am not familiar with FreeBSD flavour of gdb, it >>> seems to be quite different. But I will try anyway. >> >> >> Does 'sysctl kern.eventtimer.periodic=1' help? > > No it does not. I also tried to boot the guest using highrez=off and > nohz=off and got steady 100% CPU consumption immediately. > Sampling result on host is: > > 46.04% [11023] cpu_search_highest @ /boot/kernel/kernel > 81.93% [9031] cpu_search_highest > 59.55% [5378] sched_idletd > 100.0% [5378] fork_exit > 40.45% [3653] cpu_search_highest > 100.0% [3653] sched_idletd > 17.92% [1975] sched_idletd > 100.0% [1975] fork_exit > 00.15% [17] fork_exit > > Looks like lots of extra rescheduling and I wonder if setting CPU > affinity can help with this. Yeah, that was it! Setting CPU affinity helped. So, the CPU usage is down to 0% now and ping is 0.255/0.296/0.875/0.086 ms as it should be! So, to summarize, I disabled tickless kernels on both host and guest (not sure if disabling on guest was really needed) and pinned the VBoxHeadless process to a certain CPU core using cpuset. Thanks, -- SY, Alex