From owner-freebsd-emulation@FreeBSD.ORG Sun Dec 9 17:11:24 2012 Return-Path: Delivered-To: freebsd-emulation@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F390545A; Sun, 9 Dec 2012 17:11:23 +0000 (UTC) (envelope-from bsam@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 C0F2E8FC13; Sun, 9 Dec 2012 17:11:23 +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 qB9HBNTE095777; Sun, 9 Dec 2012 17:11:23 GMT (envelope-from bsam@freefall.freebsd.org) Received: (from bsam@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qB9HBNxB095773; Sun, 9 Dec 2012 17:11:23 GMT (envelope-from bsam) Date: Sun, 9 Dec 2012 17:11:23 GMT Message-Id: <201212091711.qB9HBNxB095773@freefall.freebsd.org> To: jbeich@tormail.org, bsam@FreeBSD.org, freebsd-emulation@FreeBSD.org From: bsam@FreeBSD.org Subject: Re: ports/169896: [patch] audio/linux-f10-alsa-lib: use OSS plugin by default 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: Sun, 09 Dec 2012 17:11:24 -0000 Synopsis: [patch] audio/linux-f10-alsa-lib: use OSS plugin by default State-Changed-From-To: closed->open State-Changed-By: bsam State-Changed-When: Sun Dec 9 17:09:02 UTC 2012 State-Changed-Why: The commit made more harm than good, was reverted and should be reconsidered along with other ports using linux audio. http://www.freebsd.org/cgi/query-pr.cgi?pr=169896 From owner-freebsd-emulation@FreeBSD.ORG Mon Dec 10 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 7DAA1EF1 for ; Mon, 10 Dec 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 606878FC08 for ; Mon, 10 Dec 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 qBAB6giR064202 for ; Mon, 10 Dec 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 qBAB6fLt064200 for freebsd-emulation@FreeBSD.org; Mon, 10 Dec 2012 11:06:41 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 10 Dec 2012 11:06:41 GMT Message-Id: <201212101106.qBAB6fLt064200@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, 10 Dec 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 Wed Dec 12 01:43:45 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 8066DAFD for ; Wed, 12 Dec 2012 01:43:45 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from vps.rulingia.com (host-122-100-2-194.octopus.com.au [122.100.2.194]) by mx1.freebsd.org (Postfix) with ESMTP id 0CD338FC15 for ; Wed, 12 Dec 2012 01:43:44 +0000 (UTC) Received: from server.rulingia.com (c220-239-237-85.belrs5.nsw.optusnet.com.au [220.239.237.85]) by vps.rulingia.com (8.14.5/8.14.5) with ESMTP id qBC1hf57093528 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 12 Dec 2012 12:43:42 +1100 (EST) (envelope-from peter@rulingia.com) X-Bogosity: Ham, spamicity=0.000000 Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.14.5/8.14.5) with ESMTP id qBC1haqY037729 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 12 Dec 2012 12:43:36 +1100 (EST) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.14.5/8.14.5/Submit) id qBC1hajx037728 for freebsd-emulation@freebsd.org; Wed, 12 Dec 2012 12:43:36 +1100 (EST) (envelope-from peter) Date: Wed, 12 Dec 2012 12:43:36 +1100 From: Peter Jeremy To: freebsd-emulation@freebsd.org Subject: FreeBSD/i386 guests using excessive host CPU Message-ID: <20121212014336.GD35245@server.rulingia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xgyAXRrhYN0wYx8y" Content-Disposition: inline X-PGP-Key: http://www.rulingia.com/keys/peter.pgp User-Agent: Mutt/1.5.21 (2010-09-15) 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: Wed, 12 Dec 2012 01:43:45 -0000 --xgyAXRrhYN0wYx8y Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [Please copy me in any replies] My VPS provider will not offer 32-bit FreeBSD guests because they use excessive (ESXi) host CPU time. I have done some experiments using VirtualBox on my FreeBSD/amd64 8-stable host and see the same. An idle 32-bit FreeBSD 9 or 10 guest uses very roughly 25% more host CPU than an equivalent 64-bit guest. An idle 32-bit FreeBSD 8 guest uses very roughly 50% more host CPU than an equivalent 64-bit guest. This problem does not show up with Linux or Windows7 but occurs with both VirtualBox on AMD and ESXi on Intel CPUs. Since the problem shows up with different virtualisation environments and on different CPUs, this suggests this is a FreeBSD guest issue. My suspicion is that the cost of handling an interrupt on FreeBSD/i386 is higher than the cost on amd64 - and this is more obvious on 8.x because it doesn't use dynamic ticks. Has anyone else seen this behaviour and does anyone have any suggestions=20 for improving the FreeBSD/i386 performance. --=20 Peter Jeremy --xgyAXRrhYN0wYx8y Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlDH4UgACgkQ/opHv/APuIdq2wCfeAsSnlYjomuvEnIzyjPHSHn/ oNgAn2yRylMmq/BWEsEkH/lXruF7669Y =BcLd -----END PGP SIGNATURE----- --xgyAXRrhYN0wYx8y-- From owner-freebsd-emulation@FreeBSD.ORG Wed Dec 12 16:07:25 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 81CD3F5; Wed, 12 Dec 2012 16:07:25 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id AAAEE8FC19; Wed, 12 Dec 2012 16:07:24 +0000 (UTC) Received: by mail-ee0-f54.google.com with SMTP id c13so601057eek.13 for ; Wed, 12 Dec 2012 08:07:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=MKkka79sc4v2qlQ1XM4y4J37XCnnAvG4aGw9OJmjqXg=; b=Vi1V1r1tkd2uB0MIUR7cutHw8gQdc7f4NQAZ3wsUt8qBb3aSTkd94g6nSuPe8koaTJ 5h+EAcxRVCQCd/xm96tOXa7Kvz8msgB0SZuf813qR6T5Gzjrt+zZAkCzjpnG9j5xbfnj n8PEctsJTb1uY/WEikE77NHvic6/LcKaG/SkbfcbJ3x3vOap+du3sjXCDjVdvbHqcfgX EIwkdC4zxyEKdOeWAZIPDBmfuT78jlKl24djDNIe1hX+tAzAf8ZRDdfUY8PNqu1wdFlx tEBZBaG8bOKIwWOz8jSyLfXyiTPAMLJMp0YSptPW8in8CO8XfSASgG1adnkfB0eAPwmV re+w== MIME-Version: 1.0 Received: by 10.14.218.69 with SMTP id j45mr3939049eep.35.1355328443512; Wed, 12 Dec 2012 08:07:23 -0800 (PST) Sender: rizzo.unipi@gmail.com Received: by 10.14.0.2 with HTTP; Wed, 12 Dec 2012 08:07:23 -0800 (PST) In-Reply-To: References: Date: Wed, 12 Dec 2012 08:07:23 -0800 X-Google-Sender-Auth: jfdIrtH66iHpJjpUJdYNNpJIbko Message-ID: Subject: Fwd: new pc-bios/bios.bin breaks freebsd booting From: Luigi Rizzo To: current@freebsd.org, emulation@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: nox@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: Wed, 12 Dec 2012 16:07:25 -0000 it seems that qemu-1.3.0 is broken for freebsd... cheers luigi ---------- Forwarded message ---------- From: Luigi Rizzo Date: Wed, Dec 12, 2012 at 8:04 AM Subject: new pc-bios/bios.bin breaks freebsd booting To: qemu-devel@nongnu.org, kraxel@redhat.com I am not sure if it has been reported already but this commit http://git.qemu.org/?p=qemu.git;a=commitdiff;h=d7a51dbbaa70677846453f8c961590913052dd86 (replacing pc-bios/bios.bin with a newer version) breaks booting of FreeBSD on recent qemu (starting roughly with qemu- 1.3.0-rc2). Using a FreeBSD host, and a FreeBSD guest, the qemu thread runs at 100% and the console is stuck after the 'pci0' probe: ... hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 100000000 Hz quality 950 Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <24-bit timer at 3.579545MHz> port 0xb008-0xb00b on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 Reverting the bios fixes things. I wonder if it isn't the case of reverting this change ? cheers luigi -- -----------------------------------------+------------------------------- Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL +39-050-2211611 . via Diotisalvi 2 Mobile +39-338-6809875 . 56122 PISA (Italy) -----------------------------------------+------------------------------- -- -----------------------------------------+------------------------------- Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL +39-050-2211611 . via Diotisalvi 2 Mobile +39-338-6809875 . 56122 PISA (Italy) -----------------------------------------+------------------------------- From owner-freebsd-emulation@FreeBSD.ORG Wed Dec 12 17:01:03 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 7F905AD6; Wed, 12 Dec 2012 17:01:03 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-f42.google.com (mail-wg0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id AEB5C8FC17; Wed, 12 Dec 2012 17:01:02 +0000 (UTC) Received: by mail-wg0-f42.google.com with SMTP id dr1so2038416wgb.1 for ; Wed, 12 Dec 2012 09:01:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=D4oQNplXGZfIz8lzwuisT1LpB45eGAIvZkxwAQk63a8=; b=FsIMPcoIccQ+Z3tfg4BcaR4NLXwhIovRkGimSsruLDrd26NE0ZHM6tIzKeWPtu8se7 eDm21EmejR06vV7AgAEo49xK8aiVTxkPV45wI1XCmRHcScEwEPoAEWwhtn5Rt1DH9Tx6 WtZO+XaV8q8RiFYMrhIBZz2dQdlKsCeCScw4qsxiMbX03HyomJAx2+SsqpsbWZw9uOsC 4Yxs+b072rG0Gn+nXCyHSiCBCrcMobGwZPCTbhOVZEWsziO9i2AyWoPg4hrMjyZokaKf L+4Z8kqaLiRzrmPeVwFCUTX2wHVDmp6HorzKbmt/rvdgFm9Cd6K1Nf8QN5mFzU91gRIm 3mGg== MIME-Version: 1.0 Received: by 10.194.120.132 with SMTP id lc4mr3179366wjb.59.1355331661297; Wed, 12 Dec 2012 09:01:01 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Wed, 12 Dec 2012 09:01:01 -0800 (PST) In-Reply-To: References: Date: Wed, 12 Dec 2012 09:01:01 -0800 X-Google-Sender-Auth: LtESMmdSYGn_FpfK-G03etQjbOw Message-ID: Subject: Re: new pc-bios/bios.bin breaks freebsd booting From: Adrian Chadd To: Luigi Rizzo Content-Type: text/plain; charset=ISO-8859-1 Cc: emulation@freebsd.org, nox@freebsd.org, current@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: Wed, 12 Dec 2012 17:01:03 -0000 Yes, the qemu bios people decided that they could change the ACPI setup, in order to make Linux boot slightly (1 line) quieter. http://git.qemu.org/?p=seabios.git;a=commit;h=4540409d19a4baeec5006d925cfca19f8038a96e Adrian On 12 December 2012 08:07, Luigi Rizzo wrote: > it seems that qemu-1.3.0 is broken for freebsd... > > cheers > luigi > > ---------- Forwarded message ---------- > From: Luigi Rizzo > Date: Wed, Dec 12, 2012 at 8:04 AM > Subject: new pc-bios/bios.bin breaks freebsd booting > To: qemu-devel@nongnu.org, kraxel@redhat.com > > > I am not sure if it has been reported already but this commit > > http://git.qemu.org/?p=qemu.git;a=commitdiff;h=d7a51dbbaa70677846453f8c961590913052dd86 > > (replacing pc-bios/bios.bin with a newer version) > breaks booting of FreeBSD on recent qemu (starting roughly with qemu- > 1.3.0-rc2). > > Using a FreeBSD host, and a FreeBSD guest, > the qemu thread runs at 100% and the console is stuck > after the 'pci0' probe: > > > ... > hpet0: iomem 0xfed00000-0xfed003ff on acpi0 > > Timecounter "HPET" frequency 100000000 Hz quality 950 > > Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 > > acpi_timer0: <24-bit timer at 3.579545MHz> port 0xb008-0xb00b on acpi0 > > pcib0: port 0xcf8-0xcff on acpi0 > > pci0: on pcib0 > > Reverting the bios fixes things. > I wonder if it isn't the case of reverting this change ? > > cheers > luigi > > > > -- > -----------------------------------------+------------------------------- > Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione > http://www.iet.unipi.it/~luigi/ . Universita` di Pisa > TEL +39-050-2211611 . via Diotisalvi 2 > Mobile +39-338-6809875 . 56122 PISA (Italy) > -----------------------------------------+------------------------------- > > > > > -- > -----------------------------------------+------------------------------- > Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione > http://www.iet.unipi.it/~luigi/ . Universita` di Pisa > TEL +39-050-2211611 . via Diotisalvi 2 > Mobile +39-338-6809875 . 56122 PISA (Italy) > -----------------------------------------+------------------------------- > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" From owner-freebsd-emulation@FreeBSD.ORG Wed Dec 12 19:26:05 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 9AB60A9A for ; Wed, 12 Dec 2012 19:26:05 +0000 (UTC) (envelope-from martin@lispworks.com) Received: from lwfs1-cam.cam.lispworks.com (mail.lispworks.com [193.34.186.230]) by mx1.freebsd.org (Postfix) with ESMTP id D9FC38FC0A for ; Wed, 12 Dec 2012 19:26:03 +0000 (UTC) Received: from higson.cam.lispworks.com (higson.cam.lispworks.com [192.168.1.7]) by lwfs1-cam.cam.lispworks.com (8.14.5/8.14.5) with ESMTP id qBCJFZOV013533; Wed, 12 Dec 2012 19:15:35 GMT (envelope-from martin@lispworks.com) Received: from higson.cam.lispworks.com (localhost.localdomain [127.0.0.1]) by higson.cam.lispworks.com (8.14.4) id qBCJFY4E014099; Wed, 12 Dec 2012 19:15:34 GMT Received: (from martin@localhost) by higson.cam.lispworks.com (8.14.4/8.14.4/Submit) id qBCJFYmg014095; Wed, 12 Dec 2012 19:15:34 GMT Date: Wed, 12 Dec 2012 19:15:34 GMT Message-Id: <201212121915.qBCJFYmg014095@higson.cam.lispworks.com> From: Martin Simmons To: Peter Jeremy In-reply-to: <20121212014336.GD35245@server.rulingia.com> (message from Peter Jeremy on Wed, 12 Dec 2012 12:43:36 +1100) Subject: Re: FreeBSD/i386 guests using excessive host CPU References: <20121212014336.GD35245@server.rulingia.com> 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: Wed, 12 Dec 2012 19:26:05 -0000 >>>>> On Wed, 12 Dec 2012 12:43:36 +1100, Peter Jeremy said: > > [Please copy me in any replies] > > My VPS provider will not offer 32-bit FreeBSD guests because they use > excessive (ESXi) host CPU time. I have done some experiments using > VirtualBox on my FreeBSD/amd64 8-stable host and see the same. > > An idle 32-bit FreeBSD 9 or 10 guest uses very roughly 25% more host > CPU than an equivalent 64-bit guest. An idle 32-bit FreeBSD 8 guest > uses very roughly 50% more host CPU than an equivalent 64-bit guest. > > This problem does not show up with Linux or Windows7 but occurs with > both VirtualBox on AMD and ESXi on Intel CPUs. > > Since the problem shows up with different virtualisation environments > and on different CPUs, this suggests this is a FreeBSD guest issue. > My suspicion is that the cost of handling an interrupt on FreeBSD/i386 > is higher than the cost on amd64 - and this is more obvious on 8.x > because it doesn't use dynamic ticks. > > Has anyone else seen this behaviour and does anyone have any suggestions > for improving the FreeBSD/i386 performance. I can't repeat that with idle FreeBSD 8.0 guests running in VirtualBox 4.1.18 on Linux kernel 2.6.35.14-106.fc14.x86_64. In fact, the 64-bit one uses 4.8% of the CPU whereas the 32-bit one uses 4.2% (according to ps "bsdtime" measured over 1000 seconds). What absolute percentages are you seeing? __Martin From owner-freebsd-emulation@FreeBSD.ORG Thu Dec 13 13:05:04 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 C0CA7B5A; Thu, 13 Dec 2012 13:05:04 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id DC2D98FC12; Thu, 13 Dec 2012 13:05:02 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id PAA15779; Thu, 13 Dec 2012 15:05:01 +0200 (EET) (envelope-from avg@FreeBSD.org) Message-ID: <50C9D27C.1090707@FreeBSD.org> Date: Thu, 13 Dec 2012 15:05:00 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: vbox@FreeBSD.org, freebsd-emulation@FreeBSD.org Subject: issue with under-tick waits X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=us-ascii 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: Thu, 13 Dec 2012 13:05:04 -0000 I think that the following patch is needed in VirtualBox 4.2.4 kernel module: --- sleepqueue-r0drv-freebsd.h.orig 2012-12-12 20:09:29.675203802 +0200 +++ sleepqueue-r0drv-freebsd.h 2012-12-12 20:11:53.604203131 +0200 @@ -82,6 +82,8 @@ uint64_t cTicks = ASMMultU64ByU32DivByU32(uTimeout, hz, UINT32_C(1000000000)); if (cTicks >= INT_MAX) return RTSEMWAIT_FLAGS_INDEFINITE; + else if (cTicks == 0 && uTimeout > 0) + pWait->iTimeout = 1; else pWait->iTimeout = (int)cTicks; #endif Without this patch any waits for periods shorter than a single tick return immediately leading to a lot of unnecessary spinning. For example, I observe that my guest's idle loop does a lot of sleeps with periods slightly shorter than 1 ms (1/hz), e.g. 900us. All that waiting turns into pure spinning and VirtualBox eats 100% of a core. The above patch improves the situation significantly. Also, it (approximately) follows what tvtohz does. -- Andriy Gapon From owner-freebsd-emulation@FreeBSD.ORG Thu Dec 13 13:09:00 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 5FD8CC56; Thu, 13 Dec 2012 13:09:00 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 7992E8FC19; Thu, 13 Dec 2012 13:08:59 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id PAA15818; Thu, 13 Dec 2012 15:08:58 +0200 (EET) (envelope-from avg@FreeBSD.org) Message-ID: <50C9D369.6040204@FreeBSD.org> Date: Thu, 13 Dec 2012 15:08:57 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: vbox@FreeBSD.org, freebsd-emulation@FreeBSD.org Subject: incorrect usage of callout_reset in vbox 4.2.4 ? X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=us-ascii 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: Thu, 13 Dec 2012 13:09:00 -0000 It looks like in timer-r0drv-freebsd.c the code tries to pass absolute time as a timeout parameter to callout_reset while that function actually expects relative time (period). I am testing the following patch, but I am sure that the code can be made more efficient. --- timer-r0drv-freebsd.c.orig 2012-12-12 20:13:27.623202784 +0200 +++ timer-r0drv-freebsd.c 2012-12-12 20:19:43.368202795 +0200 @@ -172,15 +172,16 @@ /* * Calc when it should start firing. */ - u64First += RTTimeNanoTS(); + const uint64_t u64Now = RTTimeNanoTS(); + u64First += u64Now; pTimer->fSuspended = false; pTimer->iTick = 0; pTimer->u64StartTS = u64First; pTimer->u64NextTS = u64First; - tv.tv_sec = u64First / 1000000000; - tv.tv_usec = (u64First % 1000000000) / 1000; + tv.tv_sec = (u64First - u64Now) / 1000000000; + tv.tv_usec = ((u64First - u64Now) % 1000000000) / 1000; callout_reset(&pTimer->Callout, tvtohz(&tv), rtTimerFreeBSDCallback, pTimer); return VINF_SUCCESS; @@ -247,8 +248,8 @@ if (pTimer->u64NextTS < u64NanoTS) pTimer->u64NextTS = u64NanoTS + RTTimerGetSystemGranularity() / 2; - tv.tv_sec = pTimer->u64NextTS / 1000000000; - tv.tv_usec = (pTimer->u64NextTS % 1000000000) / 1000; + tv.tv_sec = (pTimer->u64NextTS - u64NanoTS) / 1000000000; + tv.tv_usec = ((pTimer->u64NextTS - u64NanoTS) % 1000000000) / 1000; callout_reset(&pTimer->Callout, tvtohz(&tv), rtTimerFreeBSDCallback, pTimer); } -- Andriy Gapon From owner-freebsd-emulation@FreeBSD.ORG Thu Dec 13 16:31:24 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 08300ED3; Thu, 13 Dec 2012 16:31:24 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.59.238]) by mx1.freebsd.org (Postfix) with ESMTP id 91D548FC0A; Thu, 13 Dec 2012 16:31:23 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id A050873029; Thu, 13 Dec 2012 17:29:49 +0100 (CET) Date: Thu, 13 Dec 2012 17:29:49 +0100 From: Luigi Rizzo To: Adrian Chadd Subject: Re: new pc-bios/bios.bin breaks freebsd booting Message-ID: <20121213162949.GA23250@onelab2.iet.unipi.it> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: emulation@freebsd.org, nox@freebsd.org, current@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: Thu, 13 Dec 2012 16:31:24 -0000 On Wed, Dec 12, 2012 at 09:01:01AM -0800, Adrian Chadd wrote: > Yes, the qemu bios people decided that they could change the ACPI > setup, in order to make Linux boot slightly (1 line) quieter. > > http://git.qemu.org/?p=seabios.git;a=commit;h=4540409d19a4baeec5006d925cfca19f8038a96e the qemu folks are actually being very responsive in trying to fix this for FreeBSD. See http://lists.nongnu.org/archive/html/qemu-devel/2012-12/msg01703.html and also the message below cheers luigi ----- Forwarded message from Paolo Bonzini ----- Date: Thu, 13 Dec 2012 14:38:45 +0100 From: Paolo Bonzini Subject: Re: [SeaBIOS] [PATCH] acpi: reintroduce LNKS To: Laszlo Ersek CC: seabios@seabios.org, rizzo@iet.unipi.it, Marcelo Tosatti Il 13/12/2012 14:33, Laszlo Ersek ha scritto: >> > Unfortunately, the code after the patch is also against the spec, and it >> > breaks FreeBSD because it treats IRQ 9 polarity as active low without >> > the Interrupt() entry. Actually, numeric _PRT entries are handled the >> > same in Linux and FreeBSD (as active-low). However, under Linux it just >> > happens to trigger another special casing of SCI which sets SCI up from >> > its override entry in the MADT, ignoring the DSDT completely. > I won't pretend I understand what I'm talking about, but the ACPI spec > 5.0 says in "5.2.12.5 Interrupt Source Override Structure", > > Interrupt Source Overrides are also necessary when an identity > mapped interrupt input has a non-standard polarity. > > Hence "necessary but not sufficient", is that it? The MADT is about 8259 pins, while the _PRT entry identifies a GSI. So we have the same GSI (9) specified twice. Linux ignores the settings of the second entry and reuses those that came from the GSI. The important bit here is this: /* Don't set up the ACPI SCI because it's already set up */ if (acpi_gbl_FADT.sci_interrupt == gsi) return gsi; (And as you can see it's wrong, sci_interrupt is an 8259 interrupt not a GSI). > SCI_INT in the FADT is explained as > > [...] OSPM is required to treat the ACPI SCI interrupt as a > sharable, level, active low interrupt. > > which is then overridden in the MADT, stating active-high polarity. Yes, but this doesn't affect the definition of this GSI in the _PRT. It is always level/active-low for a numeric entry. Among the two conflicting choices, Linux happens to favor the MADT. FreeBSD doesn't. Paolo ----- End forwarded message ----- > > > > Adrian > > On 12 December 2012 08:07, Luigi Rizzo wrote: > > it seems that qemu-1.3.0 is broken for freebsd... > > > > cheers > > luigi > > > > ---------- Forwarded message ---------- > > From: Luigi Rizzo > > Date: Wed, Dec 12, 2012 at 8:04 AM > > Subject: new pc-bios/bios.bin breaks freebsd booting > > To: qemu-devel@nongnu.org, kraxel@redhat.com > > > > > > I am not sure if it has been reported already but this commit > > > > http://git.qemu.org/?p=qemu.git;a=commitdiff;h=d7a51dbbaa70677846453f8c961590913052dd86 > > > > (replacing pc-bios/bios.bin with a newer version) > > breaks booting of FreeBSD on recent qemu (starting roughly with qemu- > > 1.3.0-rc2). > > > > Using a FreeBSD host, and a FreeBSD guest, > > the qemu thread runs at 100% and the console is stuck > > after the 'pci0' probe: > > > > > > ... > > hpet0: iomem 0xfed00000-0xfed003ff on acpi0 > > > > Timecounter "HPET" frequency 100000000 Hz quality 950 > > > > Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 > > > > acpi_timer0: <24-bit timer at 3.579545MHz> port 0xb008-0xb00b on acpi0 > > > > pcib0: port 0xcf8-0xcff on acpi0 > > > > pci0: on pcib0 > > > > Reverting the bios fixes things. > > I wonder if it isn't the case of reverting this change ? > > > > cheers > > luigi > > > > > > > > -- > > -----------------------------------------+------------------------------- > > Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione > > http://www.iet.unipi.it/~luigi/ . Universita` di Pisa > > TEL +39-050-2211611 . via Diotisalvi 2 > > Mobile +39-338-6809875 . 56122 PISA (Italy) > > -----------------------------------------+------------------------------- > > > > > > > > > > -- > > -----------------------------------------+------------------------------- > > Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione > > http://www.iet.unipi.it/~luigi/ . Universita` di Pisa > > TEL +39-050-2211611 . via Diotisalvi 2 > > Mobile +39-338-6809875 . 56122 PISA (Italy) > > -----------------------------------------+------------------------------- > > _______________________________________________ > > freebsd-current@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-current > > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" From owner-freebsd-emulation@FreeBSD.ORG Thu Dec 13 17:46:30 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 DF113F18; Thu, 13 Dec 2012 17:46:30 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com [74.125.82.52]) by mx1.freebsd.org (Postfix) with ESMTP id 105918FC14; Thu, 13 Dec 2012 17:46:29 +0000 (UTC) Received: by mail-wg0-f52.google.com with SMTP id 12so929514wgh.31 for ; Thu, 13 Dec 2012 09:46:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=IUXFrUJOwQfoURlqb2RtVB/1gZJhbLwHUV5DQenv++w=; b=Y2Z+csbEudwCZ83iuVSG4a913MR9BvMlRb68+ck0TqZ/yDcZOiy9RvobvchK85lP+4 cjULiE0kZYerQak39xjmB5HZk/uhXRDqBK9THqZSztgMDiG3PNdCf7s6k8DPMjpp+QfD 3RXTp8RUjRWZGDOqoYRXvO3+8rdsgAjaVL1cNvyNqDnuSaKTRLWCcS5U/r5MBRGAAlZA he2Rp3pu1px9blOEOy5SaqujubBo8jio26Utn7lE184DQ//H/Is1p4pvz0qcE1ggQi08 kFdpqlC5v/X84WecuFVlKox7gkEJ/bAl8U0Yqaa7KO2zE7PVdRfHg6ARNpuBwaIdqdVa V9lw== MIME-Version: 1.0 Received: by 10.194.93.40 with SMTP id cr8mr9930777wjb.16.1355420783089; Thu, 13 Dec 2012 09:46:23 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Thu, 13 Dec 2012 09:46:23 -0800 (PST) In-Reply-To: <20121213162949.GA23250@onelab2.iet.unipi.it> References: <20121213162949.GA23250@onelab2.iet.unipi.it> Date: Thu, 13 Dec 2012 09:46:23 -0800 X-Google-Sender-Auth: wiFE1CjglvD1DhJioWcEbfSLs8Y Message-ID: Subject: Re: new pc-bios/bios.bin breaks freebsd booting From: Adrian Chadd To: Luigi Rizzo Content-Type: text/plain; charset=ISO-8859-1 Cc: emulation@freebsd.org, nox@freebsd.org, current@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: Thu, 13 Dec 2012 17:46:30 -0000 Oh, phew. :) adrian On 13 December 2012 08:29, Luigi Rizzo wrote: > On Wed, Dec 12, 2012 at 09:01:01AM -0800, Adrian Chadd wrote: >> Yes, the qemu bios people decided that they could change the ACPI >> setup, in order to make Linux boot slightly (1 line) quieter. >> >> http://git.qemu.org/?p=seabios.git;a=commit;h=4540409d19a4baeec5006d925cfca19f8038a96e > > the qemu folks are actually being very responsive in trying to fix > this for FreeBSD. See > > http://lists.nongnu.org/archive/html/qemu-devel/2012-12/msg01703.html > > and also the message below > > cheers > luigi > > ----- Forwarded message from Paolo Bonzini ----- > > Date: Thu, 13 Dec 2012 14:38:45 +0100 > From: Paolo Bonzini > Subject: Re: [SeaBIOS] [PATCH] acpi: reintroduce LNKS > To: Laszlo Ersek > CC: seabios@seabios.org, rizzo@iet.unipi.it, > Marcelo Tosatti > > Il 13/12/2012 14:33, Laszlo Ersek ha scritto: >>> > Unfortunately, the code after the patch is also against the spec, and it >>> > breaks FreeBSD because it treats IRQ 9 polarity as active low without >>> > the Interrupt() entry. Actually, numeric _PRT entries are handled the >>> > same in Linux and FreeBSD (as active-low). However, under Linux it just >>> > happens to trigger another special casing of SCI which sets SCI up from >>> > its override entry in the MADT, ignoring the DSDT completely. >> I won't pretend I understand what I'm talking about, but the ACPI spec >> 5.0 says in "5.2.12.5 Interrupt Source Override Structure", >> >> Interrupt Source Overrides are also necessary when an identity >> mapped interrupt input has a non-standard polarity. >> >> Hence "necessary but not sufficient", is that it? > > The MADT is about 8259 pins, while the _PRT entry identifies a GSI. So > we have the same GSI (9) specified twice. Linux ignores the settings of > the second entry and reuses those that came from the GSI. The important > bit here is this: > > /* Don't set up the ACPI SCI because it's already set up */ > if (acpi_gbl_FADT.sci_interrupt == gsi) > return gsi; > > (And as you can see it's wrong, sci_interrupt is an 8259 interrupt not a > GSI). > >> SCI_INT in the FADT is explained as >> >> [...] OSPM is required to treat the ACPI SCI interrupt as a >> sharable, level, active low interrupt. >> >> which is then overridden in the MADT, stating active-high polarity. > > Yes, but this doesn't affect the definition of this GSI in the _PRT. It > is always level/active-low for a numeric entry. Among the two > conflicting choices, Linux happens to favor the MADT. FreeBSD doesn't. > > Paolo > > ----- End forwarded message ----- > >> >> >> >> Adrian >> >> On 12 December 2012 08:07, Luigi Rizzo wrote: >> > it seems that qemu-1.3.0 is broken for freebsd... >> > >> > cheers >> > luigi >> > >> > ---------- Forwarded message ---------- >> > From: Luigi Rizzo >> > Date: Wed, Dec 12, 2012 at 8:04 AM >> > Subject: new pc-bios/bios.bin breaks freebsd booting >> > To: qemu-devel@nongnu.org, kraxel@redhat.com >> > >> > >> > I am not sure if it has been reported already but this commit >> > >> > http://git.qemu.org/?p=qemu.git;a=commitdiff;h=d7a51dbbaa70677846453f8c961590913052dd86 >> > >> > (replacing pc-bios/bios.bin with a newer version) >> > breaks booting of FreeBSD on recent qemu (starting roughly with qemu- >> > 1.3.0-rc2). >> > >> > Using a FreeBSD host, and a FreeBSD guest, >> > the qemu thread runs at 100% and the console is stuck >> > after the 'pci0' probe: >> > >> > >> > ... >> > hpet0: iomem 0xfed00000-0xfed003ff on acpi0 >> > >> > Timecounter "HPET" frequency 100000000 Hz quality 950 >> > >> > Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 >> > >> > acpi_timer0: <24-bit timer at 3.579545MHz> port 0xb008-0xb00b on acpi0 >> > >> > pcib0: port 0xcf8-0xcff on acpi0 >> > >> > pci0: on pcib0 >> > >> > Reverting the bios fixes things. >> > I wonder if it isn't the case of reverting this change ? >> > >> > cheers >> > luigi >> > >> > >> > >> > -- >> > -----------------------------------------+------------------------------- >> > Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione >> > http://www.iet.unipi.it/~luigi/ . Universita` di Pisa >> > TEL +39-050-2211611 . via Diotisalvi 2 >> > Mobile +39-338-6809875 . 56122 PISA (Italy) >> > -----------------------------------------+------------------------------- >> > >> > >> > >> > >> > -- >> > -----------------------------------------+------------------------------- >> > Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione >> > http://www.iet.unipi.it/~luigi/ . Universita` di Pisa >> > TEL +39-050-2211611 . via Diotisalvi 2 >> > Mobile +39-338-6809875 . 56122 PISA (Italy) >> > -----------------------------------------+------------------------------- >> > _______________________________________________ >> > freebsd-current@freebsd.org mailing list >> > http://lists.freebsd.org/mailman/listinfo/freebsd-current >> > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" From owner-freebsd-emulation@FreeBSD.ORG Thu Dec 13 22:16:58 2012 Return-Path: Delivered-To: freebsd-emulation@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 339DD1A5; Thu, 13 Dec 2012 22:16:58 +0000 (UTC) (envelope-from smh@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 F3F578FC13; Thu, 13 Dec 2012 22:16:57 +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 qBDMGvsu093091; Thu, 13 Dec 2012 22:16:57 GMT (envelope-from smh@freefall.freebsd.org) Received: (from smh@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBDMGvrK093087; Thu, 13 Dec 2012 22:16:57 GMT (envelope-from smh) Date: Thu, 13 Dec 2012 22:16:57 GMT Message-Id: <201212132216.qBDMGvrK093087@freefall.freebsd.org> To: smh@FreeBSD.org, freebsd-emulation@FreeBSD.org, smh@FreeBSD.org From: smh@FreeBSD.org Subject: Re: kern/129169: [linux] [patch] Linux Emulation ENOTCONN error using non-blocking TCP 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: Thu, 13 Dec 2012 22:16:58 -0000 Synopsis: [linux] [patch] Linux Emulation ENOTCONN error using non-blocking TCP Responsible-Changed-From-To: freebsd-emulation->smh Responsible-Changed-By: smh Responsible-Changed-When: Thu Dec 13 22:16:57 UTC 2012 Responsible-Changed-Why: I'll take it. http://www.freebsd.org/cgi/query-pr.cgi?pr=129169 From owner-freebsd-emulation@FreeBSD.ORG Fri Dec 14 00:00:10 2012 Return-Path: Delivered-To: emulation@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 21160CF5; Fri, 14 Dec 2012 00:00:10 +0000 (UTC) (envelope-from edwin@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 E37F18FC14; Fri, 14 Dec 2012 00:00:09 +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 qBE009os097128; Fri, 14 Dec 2012 00:00:09 GMT (envelope-from edwin@freefall.freebsd.org) Received: (from edwin@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBE0094N097124; Fri, 14 Dec 2012 00:00:09 GMT (envelope-from edwin) Date: Fri, 14 Dec 2012 00:00:09 GMT Message-Id: <201212140000.qBE0094N097124@freefall.freebsd.org> To: edwin@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, emulation@FreeBSD.org From: edwin@FreeBSD.org Subject: Re: ports/174424: www/linux-f10-flashplugin11 is vulnerable 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, 14 Dec 2012 00:00:10 -0000 Synopsis: www/linux-f10-flashplugin11 is vulnerable Responsible-Changed-From-To: freebsd-ports-bugs->emulation Responsible-Changed-By: edwin Responsible-Changed-When: Fri Dec 14 00:00:09 UTC 2012 Responsible-Changed-Why: Over to maintainer (via the GNATS Auto Assign Tool) http://www.freebsd.org/cgi/query-pr.cgi?pr=174424 From owner-freebsd-emulation@FreeBSD.ORG Fri Dec 14 00:05:24 2012 Return-Path: Delivered-To: emulation@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 39736DE3; Fri, 14 Dec 2012 00:05:24 +0000 (UTC) (envelope-from delphij@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 037068FC12; Fri, 14 Dec 2012 00:05:24 +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 qBE05NNw002903; Fri, 14 Dec 2012 00:05:23 GMT (envelope-from delphij@freefall.freebsd.org) Received: (from delphij@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBE05NwY002899; Fri, 14 Dec 2012 00:05:23 GMT (envelope-from delphij) Date: Fri, 14 Dec 2012 00:05:23 GMT Message-Id: <201212140005.qBE05NwY002899@freefall.freebsd.org> To: delphij@FreeBSD.org, emulation@FreeBSD.org, delphij@FreeBSD.org From: delphij@FreeBSD.org Subject: Re: ports/174424: www/linux-f10-flashplugin11 is vulnerable 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, 14 Dec 2012 00:05:24 -0000 Synopsis: www/linux-f10-flashplugin11 is vulnerable Responsible-Changed-From-To: emulation->delphij Responsible-Changed-By: delphij Responsible-Changed-When: Fri Dec 14 00:05:17 UTC 2012 Responsible-Changed-Why: Take. http://www.freebsd.org/cgi/query-pr.cgi?pr=174424 From owner-freebsd-emulation@FreeBSD.ORG Sat Dec 15 06:23:12 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 710406E1 for ; Sat, 15 Dec 2012 06:23:12 +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 54EBC8FC0A for ; Sat, 15 Dec 2012 06:23:12 +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 qBF6N6BW021063 for ; Fri, 14 Dec 2012 22:23:06 -0800 (PST) (envelope-from yuri@rawbw.com) Message-ID: <50CC174A.7040506@rawbw.com> Date: Fri, 14 Dec 2012 22:23:06 -0800 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: emulation@freebsd.org Subject: [linux-f10-flashplugin11] Flash colors messed up, red shown as blue, probably due to the hardware acceleration 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: Sat, 15 Dec 2012 06:23:12 -0000 All youtube videos appear to be bluish. Red color is displayed as blue. Someone had similar issue on Ubuntu http://ubuntuforums.org/showthread.php?t=1977481 , and suggested solution there is to turn off the hardware acceleration in Settings. But with the current BSD version (11.2.202.251) I can't turn off Acceleration for some reason. Check box keeps returning to "on" state. This started happening with the new graphics card, which is NVidia GeForce GT 610. Same page in VirtualBox (Ubuntu guest) shows correctly, even though in the vbox guest flash also claims it runs with the hardware acceleration and version of flash is the same. Is this a known problem, and is there any workaround? Thank you, Yuri From owner-freebsd-emulation@FreeBSD.ORG Sat Dec 15 06:26:26 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 E4315769 for ; Sat, 15 Dec 2012 06:26:26 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 583298FC0A for ; Sat, 15 Dec 2012 06:26:25 +0000 (UTC) Received: by mail-la0-f54.google.com with SMTP id j13so3385894lah.13 for ; Fri, 14 Dec 2012 22:26:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=z2p7fP/aKcrhK7WlajmMXNJ8lFl0iqV/yJU610aLQRs=; b=lAgQZz430N2YmFE0e76+zERTD+SkapjxLBalM8lBuBrorN8fmxwOzLDvwepVOZTwWH dSRbxW9ivfipsY4zd5mlWYgODosto5xKEtSDTLoQ9kdNbc7JwmER9OXn2qPpqVSXkEQm QP5x/vNx7vezQ+IvM504ga9FJHkohwWXzLtiI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-gm-message-state; bh=z2p7fP/aKcrhK7WlajmMXNJ8lFl0iqV/yJU610aLQRs=; b=dJAspN3AqXvSqCgGE47g6zGNX8qnPIMsdH5rTDwhi3bwM+3b50aKRi8abBW4+H7QvG +ISGCNECDXLLjewVJWHBZRuwDXKfy/Gve3qZHT1GBGFZAYH03tdqB1vjxiUL64jiO7cB heVTK0PWLtiu2uMH1XYnPCWNnn0bqDgyPE/XozeLB3y/bEqQT1vxJFVrtF2COlVmINXj hz6oXsawXlw6eIq5AIjiTsWxYccuelzBe57Je7mqATEzqt8S2jwN7VrLo/LtIgpCzSYn +N17C8moyTEvuhpQzvAhKSwSpDhsKCvgPXIuPihA09WHVe24THC1MKFJx4nwp6fqv0iH kZIw== Received: by 10.152.148.40 with SMTP id tp8mr4808819lab.30.1355552784960; Fri, 14 Dec 2012 22:26:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.149.225 with HTTP; Fri, 14 Dec 2012 22:25:54 -0800 (PST) In-Reply-To: <50CC174A.7040506@rawbw.com> References: <50CC174A.7040506@rawbw.com> From: Eitan Adler Date: Sat, 15 Dec 2012 01:25:54 -0500 Message-ID: Subject: Re: [linux-f10-flashplugin11] Flash colors messed up, red shown as blue, probably due to the hardware acceleration To: Yuri Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQlB/gUnFZc3m2XObYyOAiXC1W6A1V20FGkP5O/LlDXI/Kr4c0Q/tuCkcyQsEeX3NVqHhYzW Cc: 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, 15 Dec 2012 06:26:27 -0000 On 15 December 2012 01:23, Yuri wrote: > Is this a known problem, and is there any workaround? Hi, Yes this is a known issue. I believe a nvidia-driver update should fix the issue as should disabling HW acceleration. -- Eitan Adler From owner-freebsd-emulation@FreeBSD.ORG Sat Dec 15 16:50:01 2012 Return-Path: Delivered-To: freebsd-emulation@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3F257AAD for ; Sat, 15 Dec 2012 16:50:01 +0000 (UTC) (envelope-from gnats@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 208488FC19 for ; Sat, 15 Dec 2012 16:50:01 +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 qBFGo0Nk068348 for ; Sat, 15 Dec 2012 16:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBFGo0cI068347; Sat, 15 Dec 2012 16:50:00 GMT (envelope-from gnats) Date: Sat, 15 Dec 2012 16:50:00 GMT Message-Id: <201212151650.qBFGo0cI068347@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org Cc: From: Jan Beich Subject: Re: ports/169896: [patch] audio/linux-f10-alsa-lib: use OSS plugin by default X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Jan Beich List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Dec 2012 16:50:01 -0000 The following reply was made to PR ports/169896; it has been noted by GNATS. From: Jan Beich To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/169896: [patch] audio/linux-f10-alsa-lib: use OSS plugin by default Date: Sat, 15 Dec 2012 17:01:17 +0100 --=-=-= Content-Type: text/plain Content-Disposition: inline bsam@FreeBSD.org writes: > The commit made more harm than good, was reverted and should be > reconsidered along with other ports using linux audio. The regression[1] could be quickly caught before commit by a tinderbox run with ports that depend on linux-f10-alsa-lib e.g., linux-f10-alsa-plugins-oss. [1] http://lists.freebsd.org/pipermail/svn-ports-head/2012-December/008629.html --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=linux-alsa.diff Content-Description: version from Dec 7, before backout request Index: audio/linux-f10-alsa-lib/Makefile =================================================================== --- audio/linux-f10-alsa-lib/Makefile (revision 308949) +++ audio/linux-f10-alsa-lib/Makefile (working copy) @@ -12,6 +12,8 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}-${RPMVERSION} MAINTAINER= emulation@FreeBSD.org COMMENT= Advanced Linux Sound Architecture libraries (Linux Fedora 10) +RUN_DEPENDS= ${LOCALBASE}/etc/asound.conf:${PORTSDIR}/audio/alsa-lib + CONFLICTS= linux-alsa-lib-[0-9]* linux-f8-alsa-lib-[0-9]* ONLY_FOR_ARCHS= i386 amd64 @@ -21,4 +23,11 @@ RPMVERSION= 2.fc10 BRANDELF_FILES= usr/bin/aserver USE_LDCONFIG= yes +# We will use native configuration file, so delete the linux one +post-extract: + @${RM} -r ${WRKSRC}/etc + +post-install: + @${LN} -fs ${LOCALBASE}/etc/asound.conf ${PREFIX}/etc + .include Index: audio/linux-f10-alsa-plugins-oss/Makefile =================================================================== --- audio/linux-f10-alsa-plugins-oss/Makefile (revision 308949) +++ audio/linux-f10-alsa-plugins-oss/Makefile (working copy) @@ -23,16 +23,8 @@ RPMVERSION= 3.fc10 SRC_DISTFILES= ${PORTNAME:S/-oss//}-${PORTVERSION}-${RPMVERSION}${SRC_SUFX} USE_LDCONFIG= yes -CONF_FILE= etc/alsa/pcm/pcm-oss.conf +# We will use native configuration file, so delete the linux one +post-extract: + @${RM} -r ${WRKSRC}/etc -post-patch: - @${RM} ${WRKSRC}/${CONF_FILE}.orig - @${MV} ${WRKSRC}/${CONF_FILE} ${WRKSRC}/${CONF_FILE}-dist - -post-install: - @if [ ! -f ${PREFIX}/${CONF_FILE} ]; then \ - ${CP} -p ${PREFIX}/${CONF_FILE}-dist ${PREFIX}/${CONF_FILE} ; \ - fi - PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL - .include Index: audio/linux-f10-alsa-plugins-oss/files/patch-pcm-oss.conf =================================================================== --- audio/linux-f10-alsa-plugins-oss/files/patch-pcm-oss.conf (revision 308949) +++ audio/linux-f10-alsa-plugins-oss/files/patch-pcm-oss.conf (working copy) @@ -1,14 +0,0 @@ ---- etc/alsa/pcm/pcm-oss.conf.orig 2010-03-23 10:56:41.000000000 +0900 -+++ etc/alsa/pcm/pcm-oss.conf 2010-03-23 10:57:30.000000000 +0900 -@@ -7,3 +7,11 @@ - description "Open Sound System" - } - } -+ -+ctl.oss { -+ type oss -+ device /dev/mixer -+ hint { -+ description "Open Sound System" -+ } -+} Index: audio/linux-f10-alsa-plugins-oss/pkg-deinstall =================================================================== --- audio/linux-f10-alsa-plugins-oss/pkg-deinstall (revision 308949) +++ audio/linux-f10-alsa-plugins-oss/pkg-deinstall (working copy) @@ -1,16 +0,0 @@ -#!/bin/sh - -case "$2" in - POST-DEINSTALL) - conf=${PKG_PREFIX}/etc/asound.conf - if [ ! -f "$conf" ]; then - exit 1 - fi - grep -v '/etc/alsa/pcm/pcm-oss\.conf' <$conf >/tmp/asound.conf.new - ;; - *) - exit 0 - ;; -esac - -exit 0 Index: audio/linux-f10-alsa-plugins-oss/pkg-install =================================================================== --- audio/linux-f10-alsa-plugins-oss/pkg-install (revision 308949) +++ audio/linux-f10-alsa-plugins-oss/pkg-install (working copy) @@ -1,18 +0,0 @@ -#!/bin/sh - -case "$2" in - POST-INSTALL) - conf=${PKG_PREFIX}/etc/asound.conf - if [ ! -f "$conf" ]; then - exit 1 - fi - awk '{print $0}; /files/ { print "\t\t\t\"/etc/alsa/pcm/pcm-oss.conf\""}' <$conf >/tmp/asound.conf.new - mv /tmp/asound.conf.new $conf - exit 0 - ;; - *) - exit 0 - ;; -esac - -exit 0 Index: audio/linux-f10-alsa-plugins-oss/pkg-plist =================================================================== --- audio/linux-f10-alsa-plugins-oss/pkg-plist (revision 308949) +++ audio/linux-f10-alsa-plugins-oss/pkg-plist (working copy) @@ -1,13 +1,7 @@ -@unexec if cmp -s %D/etc/alsa/pcm/pcm-oss.conf-dist %D/etc/alsa/pcm/pcm-oss.conf; then rm -f %D/etc/alsa/pcm/pcm-oss.conf; fi -etc/alsa/pcm/pcm-oss.conf-dist -@exec if [ ! -f %D/etc/alsa/pcm/pcm-oss.conf ] ; then cp -p %D/%F %B/pcm-oss.conf; fi usr/lib/alsa-lib/libasound_module_ctl_oss.so usr/lib/alsa-lib/libasound_module_pcm_oss.so usr/share/doc/alsa-plugins-oss-1.0.21/COPYING usr/share/doc/alsa-plugins-oss-1.0.21/COPYING.GPL usr/share/doc/alsa-plugins-oss-1.0.21/README-pcm-oss @dirrm usr/share/doc/alsa-plugins-oss-1.0.21 -@dirrmtry etc/alsa/pcm -@dirrmtry etc/alsa @dirrmtry usr/lib/alsa-lib -@unexec if [ -f %D/etc/asound.conf ]; then fgrep -v '/etc/alsa/pcm/pcm-oss.conf' <%D/etc/asound.conf >/tmp/asound.conf.new; mv /tmp/asound.conf.new %D/etc/asound.conf; fi --=-=-=--