From: "Jan Beulich" Subject: Re: High CPU temp, suspend problem - xen 4.1.5-pre, linux 3.7.x Date: Tue, 16 Apr 2013 13:51:58 +0100 Message-ID: <516D658E02000078000CD976@nat28.tlf.novell.com> References: <5140E69F.9090803@invisiblethingslab.com> <20130315130240.GA8582@phenom.dumpdata.com> <514C79F3.5050504@invisiblethingslab.com> <20130322165651.GA4827@phenom.dumpdata.com> <515036BF.10105@invisiblethingslab.com> <20130325141701.GI11546@phenom.dumpdata.com> <515191CC.6060609@invisiblethingslab.com> <5151AC8C02000078000C88B9@nat28.tlf.novell.com> <5151A788.809@invisiblethingslab.com> <5151D4CC02000078000C8A1C@nat28.tlf.novell.com> <5151D0A9.7070100@invisiblethingslab.com> <5151D49C.2000809@citrix.com> <5151DE1C.1020307@invisiblethingslab.com> <5151E0D5.3050707@citrix.com> <5151E72D.30205@invisiblethingslab.com> <5151EE0B.9030605@citrix.com> <5152C16E02000078000C8CB8@nat28.tlf.novell.com> <515302C3.3000607@invisiblethingslab.com> <51547A5302000078000C962C@nat28.tlf.novell.com> <515493F0.6030708@invisiblethingslab.com> <515A30D4.90003@invisiblethingslab.com> <516C7AB2.8050406@invisiblethingslab.com> <516D2C2D02000078000CD79E@nat28.tlf.novell.com> <516D58B202000078000CD8E0@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ben Guthro Cc: Andrew Cooper , Juergen Gross , Konrad Rzeszutek Wilk , Marek Marczykowski , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org >>> On 16.04.13 at 14:09, Ben Guthro wrote: > On Tue, Apr 16, 2013 at 7:57 AM, Jan Beulich wrote: >>>>> On 16.04.13 at 13:49, Ben Guthro wrote: >>> On Tue, Apr 16, 2013 at 4:47 AM, Jan Beulich wrote: >>>>>>> On 16.04.13 at 00:09, Marek Marczykowski >>> wrote: >>>>> II. Not (fully) fixed issues: >>>>> >>>>> 1. CPU Pool-0 contains only CPU0 after resume - patch quoted above fixes the >>>>> issue, but it isn't applied to xen-unstable >>>>> 2. After resume scheduler chooses (almost) only CPU0 (above quoted listing). >>>>> Removing and re-adding all CPUs to Pool-0 solves the problem. Perhaps some >>>>> timers are not restarted after resume? >>>> >>>> So I understand there is a patch dealing with this, but I'm not clear >>>> whether that's known to break CPU pools? >>> >>> All cpus will end up in cpu pool 0 after S3. >>> I'm not sure that is "broken" - but it probably isn't ideal either. >>> >>> IMO - it is better than the alternative state...but Juergen seems to >>> disagree. >> >> But it can't be that difficult to save/restore pool association on top >> of said patch? > > I took a brief look, in the hopes of taking a similar tack as with the > vcpu affinity restoration. > However, it seems to be a slightly more difficult problem. > In the vcpu affinity, there was an existing structure to stash away > the information we needed after resume. > > In a pcpu, there is no such associated metadata...the SMP processor id > is just an integer. > So - where would we store the pool information temporarily across the > S3 process? Do it the other way around - the CPU pools have a mask of valid CPUs. You could latch those pre-suspend for each of the pools (e.g. by again introducing a second mask hanging off the same structure). (Also adding Juergen to Cc in case he has other thoughts.) Jan