[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 1/3] xen/sched: populate cpupool0 only after all cpus are up


  • To: Juergen Gross <JGross@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Dario Faggioli <dfaggioli@xxxxxxxx>
  • Date: Tue, 13 Aug 2019 16:07:32 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=suse.com;dmarc=pass action=none header.from=suse.com;dkim=pass header.d=suse.com;arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZD0vI0AraatwbuU6RcDNHqEfJelP5tj+cMVqndQolC0=; b=DyfyQPseu/6dumAmigtCi3aXjuZVcsh+3pjNncWIAFCL/bp6DtMaxJ4b+3K6XhFFS2e4okDmVbc0lzNfUCKdcXLOwKcc4MXqjarM/+ii+SqBX0SN0CcMbOl/WTtRiVWrcDb9mOW+Q2sAp2macMt9UAfsTHf0jUh/x3FbvYZN3ZyK0JH3MnP05iRfh2CDE5jCfee9EFueRIhGNI8by79Fcs1Zou8mtn52/kZAk4kSkgWZrI/53u7CrqZFCG/cL2+L/aPSHYasEeCYBWlaU+3OlErwkx8D0l+FItdYcZVkBu1PLJDsflu9H/mJVclrVl/82mAgiu5OvSMiTc5Nqo/2RA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aG585jhiZxlotgJhtJI4IVryMhZY3XqwiGnOCJB4AnPnR3hR6WZSXwK6ANbF5y0Uqv89rSfiXRKQf5gb1UlOkya0jX2LUw0VyC5wYRjjKW8XqzlgfhhD66SQbq2Ht1VUO9H0OXBDdtXB5KKK0M6dat9jwvuosyfvd5QguThXh/x28+KMyd09S+0bMcbgsBJOIkCXCkusELirqGFE6sNze36QwBo8k/jAKAseOH4U/ELDYGecnnUrieO6TByChAgp1VInlGUruRCfzkX3QCeMG5D3s+DrcwdntwZYmkzz188OB1O5PWyxrOKjB9pyz8SMoRsIBk3lEzDRfn8M+B12kA==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=dfaggioli@xxxxxxxx;
  • Delivery-date: Tue, 13 Aug 2019 16:20:20 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHVSTNKKFQK8XVh00OIkOngoDoQmKb5UAWA
  • Thread-topic: [Xen-devel] [PATCH 1/3] xen/sched: populate cpupool0 only after all cpus are up

On Fri, 2019-08-02 at 15:07 +0200, Juergen Gross wrote:
> With core or socket scheduling we need to know the number of siblings
> per scheduling unit before we can setup the scheduler properly. In
> order to prepare that do cpupool0 population only after all cpus are
> up.
> 
> With that in place there is no need to create cpupool0 earlier, so
> do that just before assigning the cpus. Initialize free cpus with all
> online cpus at that time in order to be able to add the cpu notifier
> late, too.
> 
So, now that this series has been made independent, I think that
mentions to the core-scheduling one should be dropped.

I mean, it is at least possible that this series would go in, while the
core-scheduling one never will. And at that point, it would be very
hard, for someone doing archaeology, to understand what went on.

It seems to me that, this patch, simplifies cpupool initialization (as,
e.g., the direct call to the CPU_ONLINE notifier for the BSP was IMO
rather convoluted). And that is made possible by moving the
initialization itself to a later point, making all the online CPUs look
like free CPUs, and using the standard (internal) API directly (i.e.,
cpupool_assign_cpu_locked()) to add them to Pool-0.

So, I'd kill the very first sentence and rearrange the rest to include
at least a quick mention to the simplification that we achieve.

Regards
-- 
Dario Faggioli, Ph.D
http://about.me/dario.faggioli
Virtualization Software Engineer
SUSE Labs, SUSE https://www.suse.com/
-------------------------------------------------------------------
<<This happens because _I_ choose it to happen!>> (Raistlin Majere)

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.