From: Ben Guthro Subject: Re: [PATCH] x86/S3: Fix cpu pool scheduling after suspend/resume (v3) Date: Fri, 19 Apr 2013 13:16:40 +0000 Message-ID: References: <1366233408-2674-1-git-send-email-benjamin.guthro@citrix.com> <5171110D.8010701@ts.fujitsu.com> <87E56C18-52DB-46B7-9634-CF4504F600BB@citrix.com>, <517159CC02000078000CF02C@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <517159CC02000078000CF02C@nat28.tlf.novell.com> Content-Language: en-US List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: "juergen.gross@ts.fujitsu.com" , "" , Ben Guthro List-Id: xen-devel@lists.xenproject.org On Apr 19, 2013, at 8:50 AM, "Jan Beulich" wrote: >>>> On 19.04.13 at 14:27, Ben Guthro wrote: > = >> On Apr 19, 2013, at 5:40 AM, J=FCrgen Gro=DF wrote: >> = >>> Am 17.04.2013 23:16, schrieb Ben Guthro: >>>> This review is another S3 scheduler problem with the system_state vari= able >> introduced with the following changeset: >> http://xenbits.xen.org/gitweb/?p=3Dxen.git;a=3Dcommit;h=3D269f543ea750ed= 567d18f2e81 = >> 9e5d5ce58eda5c5 >>>> = >>>> Specifically, the cpu_callback function that takes the CPU down during >> suspend, and back up during resume. >>>> We were seeing situations where, after S3, only CPU0 was in cpupool0. = Guest >> performance suffered greatly, since all vcpus were only on a single pcpu= . = >> Guests under high CPU load showed the problem much more quickly than an = idle = >> guest. >>>> = >>>> Removing this if condition forces the CPUs to go through the expected >> online/offline state, and be properly scheduled after S3. >>>> = >>>> This also includes a necessary partial change proposed earlier by Toma= sz >> Wroblewski here: >>>> http://lists.xen.org/archives/html/xen-devel/2013-01/msg02206.html = >>>> = >>>> It should also resolve the issues discussed in this thread: >>>> http://lists.xen.org/archives/html/xen-devel/2012-11/msg01801.html = >>>> = >>>> v2: >>>> Address concerns from Juergen Gross about the cpus not being put back = into >> the pool they were in prior to suspend >>>> = >>>> v3: >>>> Addressed leak of cpu_suspended, clean up hard tabs >>>> = >>>> Signed-off-by: Ben Guthro >>> = >>> Not tested, as I'm on vacation, but looks okay, so: >>> = >>> Acked-by: Juergen Gross >> = >> Thanks for the review J=FCrgen. >> = >> Jan - is this a candidate for commit to 4.3, or will this be pushed out = >> because of the code freeze? > = > This fixing a bug I already committed it now that J=FCrgen acked it. > = > Jan Thanks. = This will also apply cleanly to the 4.2 tree, and should be considered for = a backport, IMO