Re: [PATCH] trim memory not covered by WB MTRRs



On 6/12/07, Pavel Machek <pavel@xxxxxx> wrote:
> > > On some machines, buggy BIOSes don't properly setup WB MTRRs to
> > > cover all available RAM, meaning the last few megs (or even gigs)
> > > of memory will be marked uncached. Since Linux tends to allocate
> > > from high memory addresses first, this causes the machine to be
> > > unusably slow as soon as the kernel starts really using memory
> > > (i.e. right around init time).
> > >
> > > + if ((highest_addr >> PAGE_SHIFT) != end_pfn) {
> > > + printk(KERN_WARNING "***************\n");
> > > + printk(KERN_WARNING "**** WARNING: likely BIOS bug\n");
> > > + printk(KERN_WARNING "**** MTRRs don't cover all of "
> > > + "memory, trimmed %ld pages\n", end_pfn -
> > > + (highest_addr >> PAGE_SHIFT));
> > > + printk(KERN_WARNING "***************\n");
> > > + end_pfn = highest_addr >> PAGE_SHIFT;
> >
> > Missing 4K of memory is not worth 4K of junk in syslog per boot. Can
> > you drop the stars and stop shouting?
>
> How missing about 1G of memory? We already discussed this, and Andi and
> Venki felt that either a panic or a really obnoxious message was the
> way to go...

Just use panic, then.
Pavel,
who still thinks anyone missing 1GB of ram will not miss
friendly notice in dmesg, even if it goes without 20 stars.

Panicking when it's not necessary is anti-social. If the kernel can
continue, then it should, unless it's a correctness issue that may
cause data corruption. Given that the kernel can even work around the
problem now, throwing a panic is even less warranted.

Ray
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Home Office "does not always encrypt personal data before transferring it by disc"
    ... In recent years there have been numerous stories of CDs, memory sticks, laptops, hard drives and other devices storing large amounts of data going missing or being stolen from government departments and public bodies, and to be fair also from private organisations as well, though a recent newspaper report suggested data was twice as likely to go missing from public bodies than from private organisations ... Modern technology is such that a 4GB memory stick fits easily into the palm of my hand. ... This would easily hold the child benefits database which was downloaded to two CDs that went missing in the post. ... Large organisations that regularly transfer data or regularly let their employees take laptops on journeys with them will thus inevitably see some losses as a result. ...
    (uk.politics.misc)
  • Re: not enough memory error when opening files
    ... This usually means you are missing a service release. ... When the error message was ... memory was that there was not enough free memory left to put it into. ... I have tried restarting, shutting down and restarting, re-installing ...
    (microsoft.public.mac.office.word)
  • Re: Changing Ascii table for use by MSDOS emulator in Windows
    ... "bible" books (a carton went missing) during a country move. ... Memory ...
    (comp.os.msdos.programmer)
  • Re: System is low on virtual memory
    ... >>RealPlayer) and music files were missing. ... >>reinstalled Windows XP Home Edition with the HP Recovery ... >>memory to run anything. ... Have you checked the virtual memory settings ...
    (microsoft.public.windowsxp.general)
  • windows lost when adding new memory
    ... the following file is missing \windows system32/config system ... (note the missing drive prefixing the directory path) ... I bought a new memory chip and now I'd like to try and add this new memory ... Is a normal backup sufficient to recover a non-bootable pc or does this ...
    (microsoft.public.windowsxp.setup_deployment)