public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Mike Travis <travis@sgi.com>
To: "H. Peter Anvin" <hpa@zytor.com>
Cc: Christoph Lameter <cl@linux-foundation.org>,
	Jeremy Fitzhardinge <jeremy@goop.org>,
	"Eric W. Biederman" <ebiederm@xmission.com>,
	Ingo Molnar <mingo@elte.hu>,
	Andrew Morton <akpm@linux-foundation.org>,
	Jack Steiner <steiner@sgi.com>,
	linux-kernel@vger.kernel.org,
	Arjan van de Ven <arjan@infradead.org>
Subject: Re: [RFC 00/15] x86_64: Optimize percpu accesses
Date: Thu, 10 Jul 2008 17:12:28 -0700	[thread overview]
Message-ID: <4876A56C.3050707@sgi.com> (raw)
In-Reply-To: <48767F4F.1010209@zytor.com>

H. Peter Anvin wrote:
...
> -- I believe 2 MB mappings are too large, except perhaps as an option.
> 
>     -hpa

Hmm, that might be the way to go.... At boot up time determine the
size of the system in terms of cpu count and memory available and
attempt to do the right thing, with startup options to override the
internal choices... ?

(Surely a system that has a "gazillion ip tunnels" could modify it's
kernel start options... ;-)

Unfortunately, we can't use a MODULE to support different options unless
we change how the kernel starts up (would need to mount the root fs
before starting secondary cpus.)

Btw, the "zero_based_only" patch (w/o the pda folded into the percpu
area) gets to the point shown below.  Dropping NR_CPUS from 4096 to 256
clears up the error.  So except for the "stack overflow" message I got
yesterday, the result is the same.  As soon as I get a chance, I'll try
it out with gcc-4.2.0 to see if it changed the boot up problem.

Thanks,
Mike

[    0.096000] ACPI: Core revision 20080321
[    0.108889] Parsing all Control Methods:
[    0.116198] Table [DSDT](id 0001) - 364 Objects with 40 Devices 109 Methods 20 Regions
[    0.124000] Parsing all Control Methods:
[    0.128000] Table [SSDT](id 0002) - 43 Objects with 0 Devices 16 Methods 0 Regions
[    0.132000]  tbxface-0598 [02] tb_load_namespace     : ACPI Tables successfully acquired
[    0.148000] evxfevnt-0091 [02] enable                : Transition to ACPI mode successful
[    0.200000] CPU0: Intel(R) Xeon(R) CPU           E5345  @ 2.33GHz stepping 07
[    0.211685] Using local APIC timer interrupts.
[    0.220000] APIC timer calibration result 20781901
[    0.224000] Detected 20.781 MHz APIC timer.
[    0.228000] BUG: unable to handle kernel NULL pointer dereference at 0000000000000000
[    0.228000] IP: [<0000000000000000>]
[    0.228000] PGD 0
[    0.228000] Oops: 0010 [1] SMP
[    0.228000] CPU 0
[    0.228000] Pid: 1, comm: swapper Not tainted 2.6.26-rc8-tip-ingo-test-0701-00208-g79a4d68-dirty #7
[    0.228000] RIP: 0010:[<0000000000000000>]  [<0000000000000000>]
[    0.228000] RSP: 0000:ffff81022ed1fe18  EFLAGS: 00010286
[    0.228000] RAX: 0000000000000000 RBX: ffff81022ed1fe84 RCX: ffffffff80d0de80
[    0.228000] RDX: 0000000000000001 RSI: 0000000000000003 RDI: ffffffff80d0de80
[    0.228000] RBP: ffff81022ed1fe50 R08: ffff81022ed1fe84 R09: ffffffff80e28ae0
[    0.228000] R10: ffff81022ed1fe80 R11: ffff81022ed39188 R12: 00000000ffffffff
[    0.228000] R13: ffffffff80d0de40 R14: 0000000000000001 R15: 0000000000000003
[    0.228000] FS:  0000000000000000(0000) GS:ffffffff80de69c0(0000) knlGS:0000000000000000
[    0.228000] CS:  0010 DS: 0018 ES: 0018 CR0: 000000008005003b
[    0.228000] CR2: 0000000000000000 CR3: 0000000000201000 CR4: 00000000000006e0
[    0.228000] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[    0.228000] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[    0.228000] Process swapper (pid: 1, threadinfo ffff81022ed10000, task ffff81022ec93100)
[    0.228000] Stack:  ffffffff8024f34c 0000000000000000 0000000000000001 0000000000000001
[    0.228000]  00000000fffffff0 ffffffff80e8e4e0 0000000000092fd0 ffff81022ed1fe60
[    0.228000]  ffffffff8024f3cc ffff81022ed1fea0 ffffffff808ef5b8 0000000000000008
[    0.228000] Call Trace:
[    0.228000]  [<ffffffff8024f34c>] ? notifier_call_chain+0x38/0x60
[    0.228000]  [<ffffffff8024f3cc>] __raw_notifier_call_chain+0xe/0x10
[    0.228000]  [<ffffffff808ef5b8>] cpu_up+0xa8/0x138
[    0.228000]  [<ffffffff80e4d9b9>] kernel_init+0xdf/0x327
[    0.228000]  [<ffffffff8020d4b8>] child_rip+0xa/0x12
[    0.228000]  [<ffffffff8020c955>] ? restore_args+0x0/0x30
[    0.228000]  [<ffffffff80e4d8da>] ? kernel_init+0x0/0x327
[    0.228000]  [<ffffffff8020d4ae>] ? child_rip+0x0/0x12
[    0.228000]
[    0.228000]
[    0.228000] Code:  Bad RIP value.
[    0.228000] RIP  [<0000000000000000>]
[    0.228000]  RSP <ffff81022ed1fe18>
[    0.228000] CR2: 0000000000000000
[    0.232000] ---[ end trace a7919e7f17c0a725 ]---
[    0.236000] Kernel panic - not syncing: Attempted to kill init!



  reply	other threads:[~2008-07-11  0:12 UTC|newest]

Thread overview: 190+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-09 16:51 [RFC 00/15] x86_64: Optimize percpu accesses Mike Travis
2008-07-09 16:51 ` [RFC 01/15] x86_64: Cleanup early setup_percpu references Mike Travis
2008-07-09 16:51 ` [RFC 02/15] x86_64: Fold pda into per cpu area Mike Travis
2008-07-09 22:02   ` Eric W. Biederman
2008-07-13 17:54     ` Ingo Molnar
2008-07-14 14:24       ` Mike Travis
2008-07-09 16:51 ` [RFC 03/15] x86_64: Reference zero-based percpu variables offset from gs Mike Travis
2008-07-09 16:51 ` [RFC 04/15] x86_64: Replace cpu_pda ops with percpu ops Mike Travis
2008-07-09 16:51 ` [RFC 05/15] x86_64: Replace xxx_pda() operations with x86_xxx_percpu() Mike Travis
2008-07-09 16:51 ` [RFC 06/15] x86_64: Replace xxx_pda() operations in include_asm-x86_current_h Mike Travis
2008-07-09 16:51 ` [RFC 07/15] x86_64: Replace xxx_pda() operations in include_asm-x86_hardirq_64_h Mike Travis
2008-07-09 16:51 ` [RFC 08/15] x86_64: Replace xxx_pda() operations in include_asm-x86_mmu_context_64_h Mike Travis
2008-07-09 16:51 ` [RFC 09/15] x86_64: Replace xxx_pda() operations in include_asm-x86_percpu_h Mike Travis
2008-07-09 16:51 ` [RFC 10/15] x86_64: Replace xxx_pda() operations in include_asm-x86_smp_h Mike Travis
2008-07-09 16:51 ` [RFC 11/15] x86_64: Replace xxx_pda() operations in include_asm-x86_stackprotector_h Mike Travis
2008-07-09 16:51 ` [RFC 12/15] x86_64: Replace xxx_pda() operations in include_asm-x86_thread_info_h Mike Travis
2008-07-09 16:51 ` [RFC 13/15] x86_64: Replace xxx_pda() operations in include_asm-x86_topology_h Mike Travis
2008-07-09 16:51 ` [RFC 14/15] x86_64: Remove xxx_pda() operations Mike Travis
2008-07-09 16:51 ` [RFC 15/15] x86_64: Remove cpu_pda() macro Mike Travis
2008-07-09 17:19 ` [RFC 00/15] x86_64: Optimize percpu accesses H. Peter Anvin
2008-07-09 17:40   ` Mike Travis
2008-07-09 17:42     ` H. Peter Anvin
2008-07-09 18:05       ` Mike Travis
2008-07-09 17:44   ` Jeremy Fitzhardinge
2008-07-09 18:09     ` Mike Travis
2008-07-09 18:30       ` H. Peter Anvin
2008-07-09 19:34       ` Ingo Molnar
2008-07-09 19:44         ` H. Peter Anvin
2008-07-09 20:26           ` Adrian Bunk
2008-07-09 21:03         ` Mike Travis
2008-07-09 21:23         ` Jeremy Fitzhardinge
2008-07-25 15:49     ` Mike Travis
2008-07-25 16:08       ` Jeremy Fitzhardinge
2008-07-25 16:46         ` Mike Travis
2008-07-25 16:58           ` Jeremy Fitzhardinge
2008-07-25 18:12             ` Mike Travis
2008-07-09 17:27 ` Jeremy Fitzhardinge
2008-07-09 17:39   ` Christoph Lameter
2008-07-09 17:51     ` Jeremy Fitzhardinge
2008-07-09 18:14       ` Mike Travis
2008-07-09 18:22         ` Jeremy Fitzhardinge
2008-07-09 18:31           ` Mike Travis
2008-07-09 19:08             ` Jeremy Fitzhardinge
2008-07-09 18:02     ` Mike Travis
2008-07-09 18:13       ` Christoph Lameter
2008-07-09 18:26         ` Jeremy Fitzhardinge
2008-07-09 18:34           ` Christoph Lameter
2008-07-09 18:37             ` H. Peter Anvin
2008-07-09 18:48             ` Jeremy Fitzhardinge
2008-07-09 18:53               ` Christoph Lameter
2008-07-09 19:07                 ` Jeremy Fitzhardinge
2008-07-09 19:12                   ` Christoph Lameter
2008-07-09 19:32                     ` Jeremy Fitzhardinge
2008-07-09 19:41                       ` Ingo Molnar
2008-07-09 19:45                         ` H. Peter Anvin
2008-07-09 19:52                         ` Christoph Lameter
2008-07-09 20:00                           ` Ingo Molnar
2008-07-09 20:09                             ` Jeremy Fitzhardinge
2008-07-09 21:05                         ` Mike Travis
2008-07-09 19:44                       ` Christoph Lameter
2008-07-09 19:48                         ` Jeremy Fitzhardinge
2008-07-09 18:27         ` Mike Travis
2008-07-09 18:46           ` Jeremy Fitzhardinge
2008-07-09 20:22             ` Eric W. Biederman
2008-07-09 20:35               ` Jeremy Fitzhardinge
2008-07-09 20:53                 ` Eric W. Biederman
2008-07-09 21:03                   ` Ingo Molnar
2008-07-09 21:16                   ` H. Peter Anvin
2008-07-09 21:10               ` Arjan van de Ven
2008-07-09 23:20                 ` Eric W. Biederman
2008-07-09 18:31         ` H. Peter Anvin
2008-07-09 18:00   ` Mike Travis
2008-07-09 19:05     ` Jeremy Fitzhardinge
2008-07-09 19:28 ` Ingo Molnar
2008-07-09 20:55   ` Mike Travis
2008-07-09 21:12     ` Ingo Molnar
2008-07-09 20:00 ` Eric W. Biederman
2008-07-09 20:05   ` Jeremy Fitzhardinge
2008-07-09 20:15     ` Ingo Molnar
2008-07-09 20:07   ` Ingo Molnar
2008-07-09 20:11     ` Jeremy Fitzhardinge
2008-07-09 20:18       ` Christoph Lameter
2008-07-09 20:33         ` Jeremy Fitzhardinge
2008-07-09 20:42           ` H. Peter Anvin
2008-07-09 20:48             ` Jeremy Fitzhardinge
2008-07-09 21:06               ` Eric W. Biederman
2008-07-09 21:16                 ` H. Peter Anvin
2008-07-09 21:20                 ` Jeremy Fitzhardinge
2008-07-09 21:25           ` Christoph Lameter
2008-07-09 21:36             ` H. Peter Anvin
2008-07-09 21:41             ` Jeremy Fitzhardinge
2008-07-09 22:22             ` Eric W. Biederman
2008-07-09 22:32               ` Jeremy Fitzhardinge
2008-07-09 23:36                 ` Eric W. Biederman
2008-07-10  0:19                   ` H. Peter Anvin
2008-07-10  0:24                     ` Jeremy Fitzhardinge
2008-07-10 14:14                       ` Christoph Lameter
2008-07-10 14:26                         ` H. Peter Anvin
2008-07-10 15:26                           ` Christoph Lameter
2008-07-10 15:42                             ` H. Peter Anvin
2008-07-10 16:24                               ` Christoph Lameter
2008-07-10 16:33                                 ` H. Peter Anvin
2008-07-10 16:45                                   ` Christoph Lameter
2008-07-10 17:33                                     ` Jeremy Fitzhardinge
2008-07-10 17:42                                       ` Christoph Lameter
2008-07-10 17:53                                         ` Jeremy Fitzhardinge
2008-07-10 17:55                                           ` H. Peter Anvin
2008-07-10 20:52                                           ` Christoph Lameter
2008-07-10 20:58                                             ` Jeremy Fitzhardinge
2008-07-10 21:03                                               ` H. Peter Anvin
2008-07-11  0:55                                                 ` Mike Travis
2008-07-10 21:05                                               ` Christoph Lameter
2008-07-10 21:22                                                 ` Eric W. Biederman
2008-07-10 21:29                                                 ` H. Peter Anvin
2008-07-11  0:12                                                   ` Mike Travis [this message]
2008-07-11  0:14                                                     ` H. Peter Anvin
2008-07-11  0:58                                                       ` Mike Travis
2008-07-11  1:41                                                         ` H. Peter Anvin
2008-07-11 15:37                                                         ` Christoph Lameter
2008-07-11  0:42                                                     ` Eric W. Biederman
2008-07-11 15:36                                                     ` Christoph Lameter
2008-07-10 17:53                                     ` H. Peter Anvin
2008-07-10 17:26                                 ` Eric W. Biederman
2008-07-10 17:38                                   ` Christoph Lameter
2008-07-10 19:11                                     ` Mike Travis
2008-07-10 19:12                                     ` Eric W. Biederman
2008-07-10 17:46                                   ` Mike Travis
2008-07-10 17:51                                   ` H. Peter Anvin
2008-07-10 19:09                                     ` Eric W. Biederman
2008-07-10 19:18                                       ` Mike Travis
2008-07-10 19:32                                         ` H. Peter Anvin
2008-07-10 23:37                                           ` Mike Travis
2008-07-10 20:17                                         ` Eric W. Biederman
2008-07-10 20:24                                           ` Ingo Molnar
2008-07-10 21:33                                             ` Eric W. Biederman
2008-07-11  1:39                                           ` Mike Travis
2008-07-11  2:57                                             ` Eric W. Biederman
2008-07-10  0:23                   ` Jeremy Fitzhardinge
2008-07-09 20:35         ` H. Peter Anvin
2008-07-09 20:39       ` Arjan van de Ven
2008-07-09 20:44         ` H. Peter Anvin
2008-07-09 20:50           ` Jeremy Fitzhardinge
2008-07-09 21:12             ` H. Peter Anvin
2008-07-09 21:26               ` Jeremy Fitzhardinge
2008-07-09 21:37                 ` H. Peter Anvin
2008-07-09 22:10               ` Eric W. Biederman
2008-07-09 22:23                 ` H. Peter Anvin
2008-07-09 23:54                   ` Eric W. Biederman
2008-07-10 16:22                     ` Mike Travis
2008-07-10 16:25                       ` H. Peter Anvin
2008-07-10 16:35                         ` Christoph Lameter
2008-07-10 16:39                           ` H. Peter Anvin
2008-07-10 16:47                             ` Christoph Lameter
2008-07-10 17:21                               ` Jeremy Fitzhardinge
2008-07-10 17:31                                 ` Christoph Lameter
2008-07-10 17:48                                   ` Jeremy Fitzhardinge
2008-07-10 18:00                                   ` H. Peter Anvin
2008-07-10 17:20                         ` Mike Travis
2008-07-10 17:07                       ` Jeremy Fitzhardinge
2008-07-10 17:12                         ` Christoph Lameter
2008-07-10 17:25                           ` Jeremy Fitzhardinge
2008-07-10 17:34                             ` Christoph Lameter
2008-07-10 17:41                         ` Mike Travis
2008-07-10 18:01                           ` H. Peter Anvin
2008-07-10 20:51                             ` Christoph Lameter
2008-07-10 20:58                               ` H. Peter Anvin
2008-07-10 21:07                                 ` Christoph Lameter
2008-07-10 21:11                                   ` H. Peter Anvin
2008-07-11 15:32                                     ` Christoph Lameter
2008-07-11 16:07                                       ` H. Peter Anvin
2008-07-11 16:57                                       ` Eric W. Biederman
2008-07-11 17:10                                         ` H. Peter Anvin
2008-07-10 21:26                                   ` Eric W. Biederman
2008-07-10 18:48                       ` Eric W. Biederman
2008-07-10 18:54                         ` Jeremy Fitzhardinge
2008-07-10 19:18                           ` Eric W. Biederman
2008-07-10 19:56                             ` Jeremy Fitzhardinge
2008-07-10 20:22                               ` Eric W. Biederman
2008-07-10 20:54                                 ` Jeremy Fitzhardinge
2008-07-11  6:59                                 ` Rusty Russell
2008-07-10 20:25                               ` Eric W. Biederman
2008-07-10 17:57                     ` H. Peter Anvin
2008-07-10 18:08                     ` H. Peter Anvin
2008-07-09 20:46         ` Jeremy Fitzhardinge
2008-07-09 20:14   ` Arjan van de Ven
2008-07-09 20:33     ` Eric W. Biederman
2008-07-09 21:01       ` Ingo Molnar
2008-07-09 21:39   ` Mike Travis
2008-07-09 21:47     ` Jeremy Fitzhardinge
2008-07-09 21:55     ` Eric W. Biederman

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=4876A56C.3050707@sgi.com \
    --to=travis@sgi.com \
    --cc=akpm@linux-foundation.org \
    --cc=arjan@infradead.org \
    --cc=cl@linux-foundation.org \
    --cc=ebiederm@xmission.com \
    --cc=hpa@zytor.com \
    --cc=jeremy@goop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=steiner@sgi.com \
    /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