From: "Jan Beulich" Subject: RE: planned csched improvements? Date: Mon, 12 Oct 2009 08:27:43 +0100 Message-ID: <4AD2F68F020000780001934B@vpn.id2.novell.com> References: <4ACF6A8F02000078000190E2@vpn.id2.novell.com> <0A882F4D99BBF6449D58E61AAFD7EDD6337162CB@pdsmsx502.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <0A882F4D99BBF6449D58E61AAFD7EDD6337162CB@pdsmsx502.ccr.corp.intel.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Kevin Tian Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org >>> "Tian, Kevin" 10.10.09 10:03 >>> >>From: Jan Beulich >>On a lightly loaded many-core non-hyperthreaded system (e.g. a single >>CPU bound process in one VM, and only some background load elsewhere), >>I see this CPU bound vCPU permanently switch between sockets, which is >>a result of csched_cpu_pick() eagerly moving vCPU-s to "more idle" >>sockets. It would seem that some minimal latency consideration might be >>useful to get added here, so that a very brief interruption by another >>vCPU doesn't result in unnecessary migration. > >there's a migration delay (default is 1ms) to judge cache hotness and >thus avoid unnecessary migration. However so far it's only checked=20 >when one cpu wants to steal vcpus from other runqueue. Possibly it >makes sense to add this check to csched_vcpu_acct, as a cold cache >and cascade of other VCPU migrations could easily beat benefit on a=20 >"more idle" socket. Where do you see this 1ms delay - I can't seem to spot it... Jan