public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <ak@suse.de>
To: Alex Pankratov <ap@swapped.cc>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] [2.6] [2/2] hlist: remove IFs from hlist functions
Date: 11 Feb 2004 09:55:34 +0100	[thread overview]
Message-ID: <p73y8ra5721.fsf@nielsen.suse.de> (raw)
In-Reply-To: <4029D2D5.7070504@swapped.cc.suse.lists.linux.kernel>

Alex Pankratov <ap@swapped.cc> writes:

> Stephen Hemminger wrote:
> >  +++ linux-2.6.2.hlist/lib/list.c    2004-02-10 13:03:08.000000000 -0800
> >
> >> @@ -0,0 +1,10 @@
> >> +#include <linux/module.h>
> >> +#include <linux/list.h>
> >> +
> >> +/*
> >> + *    shared tail sentinel for hlists
> >> + */
> >> +struct hlist_node hlist_null;
> > Could this be const?
> 
> No, because its 'pprev' field *is* getting modified.

I didn't notice this before, sorry. But this could end up 
being a scalability problem on big SMP systems. Even though
the cache line of this is never read it will bounce all the
time between all CPUs using hlists and add considerably 
latency and cross node traffic. Remember Linux is supposed
to run well on 128 CPU machines now.

Maybe you can make it UP only, but I'm still not sure it's 
worth it.

-Andi

       reply	other threads:[~2004-02-11  8:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4029CB7E.4030003@swapped.cc.suse.lists.linux.kernel>
     [not found] ` <4029CF24.1070307@osdl.org.suse.lists.linux.kernel>
     [not found]   ` <4029D2D5.7070504@swapped.cc.suse.lists.linux.kernel>
2004-02-11  8:55     ` Andi Kleen [this message]
2004-02-11 16:48       ` [PATCH] [2.6] [2/2] hlist: remove IFs from hlist functions Alex Pankratov
2004-02-14 18:59         ` Andi Kleen
2004-02-12  4:42           ` Alex Pankratov
2004-02-14 19:43           ` Andi Kleen
2004-02-11  6:28 Alex Pankratov
2004-02-11  6:43 ` Stephen Hemminger
2004-02-11  6:59   ` Alex Pankratov

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=p73y8ra5721.fsf@nielsen.suse.de \
    --to=ak@suse.de \
    --cc=ap@swapped.cc \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox