LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Mike Travis <travis@sgi.com>
To: Andrew Morton <akpm@linux-foundation.org>,
	Ingo Molnar <mingo@elte.hu>, Thomas Gleixner <tglx@linutronix.de>,
	Andi Kleen <ak@suse.de>
Cc: Christoph Lameter <clameter@sgi.com>,
	Jack Steiner <steiner@sgi.com>,
	linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: [PATCH 0/4] NR_CPUS: non-x86 arch specific reduction of NR_CPUS usage
Date: Fri, 08 Feb 2008 15:37:38 -0800	[thread overview]
Message-ID: <20080208233738.108449000@polaris-admin.engr.sgi.com> (raw)


Here's another round of removing static allocations of arrays
using NR_CPUS to size the length.  The change is to use PER_CPU
variables in place of the static tables.

Based on linux-2.6.git + x86.git

Cc: Dave Jones <davej@codemonkey.org.uk>
Cc: cpufreq@lists.linux.org.uk
Cc: Len Brown <len.brown@intel.com>
Cc: linux-acpi@vger.kernel.org
Cc: Philippe Elie <phil.el@wanadoo.fr>
Cc: oprofile-list@lists.sf.net

Signed-off-by: Mike Travis <travis@sgi.com>
---
(1 - if modules enabled, does not complete boot even
     without this patch)

x86_64 configs built and booted:

    ingo-stress-test(1)
    defconfi
    nonuma
    nosmp
    bigsmp (NR_CPUS=1024, 1024 possible, 8 real)

Other configs built:

    arm-default
    i386-default
    i386-single
    i386-smp
    ppc-pmac32
    ppc-smp
    sparc64-default
    sparc64-smp
    x86_64-8psmp
    x86_64-debug
    x86_64-default
    x86_64-numa
    x86_64-single
    x86_64-allmodconfig
    x86_64-allyesconfig
    x86_64-maxsmp (NR_CPUS=4096 MAXNODES=512)

Configs not built due to prior errors:

    ia64-sn2
    ia64-default
    ia64-nosmp
    ia64-zx1
    s390-default
    sparc-default

Memory effects using x86_64-maxsmp

    Removes 1MB from permanant data adding 440 bytes to percpu area.

4k-cpus-before                      4k-cpus-after
   3463036 .bss                         -98304 -2%
   6067456 .data.cacheline_alig       -1048576 -17%
     48712 .data.percpu                   +440 +0%
  14275505 .text                          +336 +0%

  14275505 Text                           +336 +0%
   8521495 Data                           -336 +0%
   3463036 Bss                          -98304 -2%
  10974520 OtherData                  -1048576 -9%
     48712 PerCpu                         +440 +0%
  39275796 Total                      -1146104 -2%

-- 

             reply	other threads:[~2008-02-08 23:37 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-08 23:37 Mike Travis [this message]
2008-02-08 23:37 ` [PATCH 1/4] cpufreq: change cpu freq tables to per_cpu variables Mike Travis
2008-02-11  2:48   ` Dave Jones
2008-02-11 17:32     ` Mike Travis
2008-02-11 17:56       ` Dave Jones
2008-02-08 23:37 ` [PATCH 2/4] acpi: change cpufreq " Mike Travis
2008-02-12 23:33   ` Andrew Morton
2008-02-13 18:10     ` Mike Travis
2008-02-13 19:43       ` Andrew Morton
2008-02-08 23:37 ` [PATCH 3/4] oprofile: change cpu_buffer from array to per_cpu variable Mike Travis
2008-02-08 23:37 ` [PATCH 4/4] x86: minor cleanup of comments in processor.h Mike Travis

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=20080208233738.108449000@polaris-admin.engr.sgi.com \
    --to=travis@sgi.com \
    --cc=ak@suse.de \
    --cc=akpm@linux-foundation.org \
    --cc=clameter@sgi.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mingo@elte.hu \
    --cc=steiner@sgi.com \
    --cc=tglx@linutronix.de \
    --subject='Re: [PATCH 0/4] NR_CPUS: non-x86 arch specific reduction of NR_CPUS usage' \
    /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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).