All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Zijlstra <a.p.zijlstra@chello.nl>
To: Alex Shi <lkml.alex@gmail.com>
Cc: mingo@kernel.org, torvalds@linux-foundation.org,
	cmetcalf@tilera.com, tony.luck@intel.com, sivanich@sgi.com,
	akpm@linux-foundation.org, ralf@linux-mips.org,
	greg.pearson@hp.com, ink@jurassic.park.msu.ru,
	tglx@linutronix.de, rth@twiddle.net,
	kamezawa.hiroyu@jp.fujitsu.com, paulus@samba.org,
	linux-kernel@vger.kernel.org, hpa@zytor.com, anton@samba.org,
	lethal@linux-sh.org, davem@davemloft.net,
	benh@kernel.crashing.org, dhowells@redhat.com,
	mattst88@gmail.com, fenghua.yu@intel.com,
	Alex Shi <alex.shi@intel.com>,
	linux-tip-commits@vger.kernel.org
Subject: Re: [tip:sched/core] sched/numa: Rewrite the CONFIG_NUMA sched domain support
Date: Wed, 06 Jun 2012 11:15:05 +0200	[thread overview]
Message-ID: <1338974105.2749.85.camel@twins> (raw)
In-Reply-To: <CAGjg+kFhGwhjfxp3vmQbDVUyHiOfn1HMKBDgtjZKU_f+fw=JWw@mail.gmail.com>

On Wed, 2012-06-06 at 15:43 +0800, Alex Shi wrote:
> > +       /*
> > +        * O(nr_nodes^2) deduplicating selection sort -- in order to find the
> > +        * unique distances in the node_distance() table.
> > +        *
> > +        * Assumes node_distance(0,j) includes all distances in
> > +        * node_distance(i,j) in order to avoid cubic time.
> 
> Curious for other platforms node_distance number, actually, this
> assumption is right for what I saw Intel platforms. but it is not
> match acpispec50.pdf:
> 
> Table 6-152 Example Relative Distances Between Proximity Domains
> Proximity Domain 0 1 2 3
> 0 10 15 20 18
> 1 15 10 16 24
> 2 20 16 10 12
> 3 18 24 12 10

Yes I know its allowed, I just haven't seen it in practice.

I've got a patch that validates this assumption if you boot with
"sched_debug". If we ever run into such a setup we might need to fix
this -- it shouldn't be too hard, just expensive.

  reply	other threads:[~2012-06-06  9:15 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-09 14:29 [tip:sched/core] sched/numa: Rewrite the CONFIG_NUMA sched domain support tip-bot for Peter Zijlstra
2012-05-10 17:30 ` Yinghai Lu
2012-05-10 17:44   ` Peter Zijlstra
2012-05-10 17:54     ` Yinghai Lu
2012-05-29  0:32       ` Jiang Liu
2012-05-29 12:13         ` Peter Zijlstra
2012-05-29 17:12         ` Yinghai Lu
2012-05-24 21:23 ` Tony Luck
2012-05-25  7:31   ` Peter Zijlstra
2012-05-25 14:24     ` Tony Luck
2012-05-25 16:26       ` Tony Luck
2012-05-29  0:19     ` Anton Blanchard
2012-06-05  7:16     ` Alex Shi
2012-06-06  7:43 ` Alex Shi
2012-06-06  9:15   ` Peter Zijlstra [this message]
2012-06-07  0:34     ` Alex Shi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1338974105.2749.85.camel@twins \
    --to=a.p.zijlstra@chello.nl \
    --cc=akpm@linux-foundation.org \
    --cc=alex.shi@intel.com \
    --cc=anton@samba.org \
    --cc=benh@kernel.crashing.org \
    --cc=cmetcalf@tilera.com \
    --cc=davem@davemloft.net \
    --cc=dhowells@redhat.com \
    --cc=fenghua.yu@intel.com \
    --cc=greg.pearson@hp.com \
    --cc=hpa@zytor.com \
    --cc=ink@jurassic.park.msu.ru \
    --cc=kamezawa.hiroyu@jp.fujitsu.com \
    --cc=lethal@linux-sh.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=lkml.alex@gmail.com \
    --cc=mattst88@gmail.com \
    --cc=mingo@kernel.org \
    --cc=paulus@samba.org \
    --cc=ralf@linux-mips.org \
    --cc=rth@twiddle.net \
    --cc=sivanich@sgi.com \
    --cc=tglx@linutronix.de \
    --cc=tony.luck@intel.com \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.