From owner-freebsd-virtualization@FreeBSD.ORG Thu Jun 11 09:32:22 2015 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 85CDAE16 for ; Thu, 11 Jun 2015 09:32:22 +0000 (UTC) (envelope-from prvs=597ee80ab=roger.pau@citrix.com) Received: from SMTP.CITRIX.COM (smtp.citrix.com [66.165.176.89]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "mail.citrix.com", Issuer "Cybertrust Public SureServer SV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2CEF71C1D for ; Thu, 11 Jun 2015 09:32:21 +0000 (UTC) (envelope-from prvs=597ee80ab=roger.pau@citrix.com) X-IronPort-AV: E=Sophos;i="5.13,594,1427760000"; d="scan'208";a="270967870" Message-ID: <5579555D.5060002@citrix.com> Date: Thu, 11 Jun 2015 11:31:09 +0200 From: =?windows-1252?Q?Roger_Pau_Monn=E9?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Stefan Andritoiu , Subject: Re: Lock Holder Preemption on bhyve References: In-Reply-To: Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-DLP: MIA1 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jun 2015 09:32:22 -0000 Hello, El 06/06/15 a les 0.59, Stefan Andritoiu ha escrit: > Hello everyone, > > My name is Stefan Andritoiu and I'm currently studying Computer > Science in my 4th year at the University POLITEHNICA of Bucharest. > I'm fairly new to the FreeBSD operating system, having only a > background in Linux. For the past few months I've been investigating > the problem of Lock Holder Preemption on bhyve, how other hypervisors > deal with this problem and a possible implementation of these > solutions on bhyve. > I am currently working on implementing Gang Scheduling on FreeBSD to > test if it is a viable solution. I also plan to continue my work, by > implementing and testing other techniques of avoiding overhead caused > by lock holder preemption, and comparing their results. FWIW, Xen doesn't do gang-scheduling, so the lock-holder preemption problem is solved inside of the guest by using pvspinlocks/pvticketlocks. Not to detriment the work you are doing on gang-scheduling, but having some like this would help FreeBSD when running in all virtualized environments regardless of whether the underlying hypervisor does gang-scheduling or not. Some more information about it: https://blog.xenproject.org/2012/05/11/benchmarking-the-new-pv-ticketlock-implementation/ http://www-archive.xenproject.org/files/xensummitboston08/LHP.pdf https://lwn.net/Articles/556141/ Roger.