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