All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [kernel-reviewers] a small code review (2414483) Automated g4 rollback of changelist 2396062.
       [not found]                   ` <20060426173225.GB28519@google.com>
@ 2006-04-26 17:36                     ` Martin Bligh
  2006-04-26 17:43                       ` Tim Hockin
  2006-04-26 18:24                       ` Andi Kleen
  0 siblings, 2 replies; 3+ messages in thread
From: Martin Bligh @ 2006-04-26 17:36 UTC (permalink / raw)
  To: Tim Hockin; +Cc: Ken Harrenstien, linux-kernel

Tim Hockin wrote:
> On Wed, Apr 26, 2006 at 10:12:14AM -0700, Ken Harrenstien wrote:
> 
>>That doesn't work because IIRC it only reports the amount of memory
>>the kernel has been told (eg via "mem=") to manage in a certain sense,
>>not how much is actually physically available.
>>
>>The I2 netboot kernel would really REALLY like some exported /proc
>>values that accurately report physical memory (if nothing else, the
>>number of DIMMs and their sizes).  It has to figure this out in order
>>to install the proper kernel with proper LILO command-line args.
> 
> 
> The kernel can't really know how much memory is in the system without
> getting chipset-specific.
> 
> MTRR is a good way to hazard a guess, and will probably be right, but as
> you indicated, BIOS vendors have historically been REALLY bad about
> MTRRs.  Better now, but bad a few years ago.
> 
> SMBIOS (on our boards) *does* accurately report the number of DIMMS and
> their sizes (and more!).  But it only works on Google BIOS.

cc: linux-kernel
bcc: kernel-reviewers

Are you saying our e820 maps and srat tables are wrong? that's a little
worrying ...

M.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [kernel-reviewers] a small code review (2414483) Automated g4 rollback of changelist 2396062.
  2006-04-26 17:36                     ` [kernel-reviewers] a small code review (2414483) Automated g4 rollback of changelist 2396062 Martin Bligh
@ 2006-04-26 17:43                       ` Tim Hockin
  2006-04-26 18:24                       ` Andi Kleen
  1 sibling, 0 replies; 3+ messages in thread
From: Tim Hockin @ 2006-04-26 17:43 UTC (permalink / raw)
  To: Martin Bligh; +Cc: Ken Harrenstien, linux-kernel

On Wed, Apr 26, 2006 at 10:36:54AM -0700, Martin Bligh wrote:
> Tim Hockin wrote:
> >On Wed, Apr 26, 2006 at 10:12:14AM -0700, Ken Harrenstien wrote:
> >
> >>That doesn't work because IIRC it only reports the amount of memory
> >>the kernel has been told (eg via "mem=") to manage in a certain sense,
> >>not how much is actually physically available.
> >>
> >>The I2 netboot kernel would really REALLY like some exported /proc
> >>values that accurately report physical memory (if nothing else, the
> >>number of DIMMs and their sizes).  It has to figure this out in order
> >>to install the proper kernel with proper LILO command-line args.
> >
> >
> >The kernel can't really know how much memory is in the system without
> >getting chipset-specific.
> >
> >MTRR is a good way to hazard a guess, and will probably be right, but as
> >you indicated, BIOS vendors have historically been REALLY bad about
> >MTRRs.  Better now, but bad a few years ago.
> >
> >SMBIOS (on our boards) *does* accurately report the number of DIMMS and
> >their sizes (and more!).  But it only works on Google BIOS.
> 
> Are you saying our e820 maps and srat tables are wrong? that's a little
> worrying ...

e820 is fine, except there's not a good kernel interface to it.  Parsing
dmesg is *always* a last resort.

We don;t currently have SRAT. :)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [kernel-reviewers] a small code review (2414483) Automated g4 rollback of changelist 2396062.
  2006-04-26 17:36                     ` [kernel-reviewers] a small code review (2414483) Automated g4 rollback of changelist 2396062 Martin Bligh
  2006-04-26 17:43                       ` Tim Hockin
@ 2006-04-26 18:24                       ` Andi Kleen
  1 sibling, 0 replies; 3+ messages in thread
From: Andi Kleen @ 2006-04-26 18:24 UTC (permalink / raw)
  To: Martin Bligh; +Cc: Ken Harrenstien, linux-kernel

Martin Bligh <mbligh@google.com> writes:

> Tim Hockin wrote:
> > On Wed, Apr 26, 2006 at 10:12:14AM -0700, Ken Harrenstien wrote:
> >
> >>That doesn't work because IIRC it only reports the amount of memory
> >>the kernel has been told (eg via "mem=") to manage in a certain sense,
> >>not how much is actually physically available.
> >>
> >>The I2 netboot kernel would really REALLY like some exported /proc
> >>values that accurately report physical memory (if nothing else, the
> >>number of DIMMs and their sizes).  It has to figure this out in order
> >>to install the proper kernel with proper LILO command-line args.
> > The kernel can't really know how much memory is in the system without
> > getting chipset-specific.
> > MTRR is a good way to hazard a guess, and will probably be right,
> > but as
> > you indicated, BIOS vendors have historically been REALLY bad about
> > MTRRs.  Better now, but bad a few years ago.
> > SMBIOS (on our boards) *does* accurately report the number of DIMMS
> > and
> > their sizes (and more!).  But it only works on Google BIOS.

Actually quite a lot of SMBIOS report DIMMs more or less correct.
It works even on my laptop.

I implemented support for it in the latest mcelog (--dmi). Not all
and a few big names screw it up (in particular the mappings from
address range to interleave set). But overall it looks surprisingly
good so far. 

-Andi

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-04-26 18:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <444F0729.2020407@google.com>
     [not found] ` <444F0A94.70100@google.com>
     [not found]   ` <6599ad830604252300m27db3d20j39beafbe09788824@mail.google.com>
     [not found]     ` <444F1218.6020601@google.com>
     [not found]       ` <6599ad830604252334yd6d933w5386dccb4af4b971@mail.google.com>
     [not found]         ` <444F9777.9090704@google.com>
     [not found]           ` <444F989B.3040900@google.com>
     [not found]             ` <444F9E2B.40704@google.com>
     [not found]               ` <444FA2BB.2070908@google.com>
     [not found]                 ` <Pine.LNX.4.56.0604261002430.4623@minbar.corp.google.com>
     [not found]                   ` <20060426173225.GB28519@google.com>
2006-04-26 17:36                     ` [kernel-reviewers] a small code review (2414483) Automated g4 rollback of changelist 2396062 Martin Bligh
2006-04-26 17:43                       ` Tim Hockin
2006-04-26 18:24                       ` Andi Kleen

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.