[lkml]   [2001]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: 4G SGI quad Xeon - memory-related slowdowns
    In article <>,
    Paul Hubbard <> wrote:
    >We're having some problems with the 2.4.0 kernel on our SGI 1450, and
    >were hoping for some help.
    > The box is a quad Xeon 700/2MB, with 4GB of memory, ServerSet III HE
    >chipset, RH6.1 (slightly modified for local configuration) distribution.
    >a) If we compile the kernel with no high memory support, /proc/meminfo
    >shows 1G of memory and everything works fine.


    >b) If we compile for 4G of memory, /proc/meminfo shows about 3G, and
    >overriding the amount at the lilo prompt causes kernel panics at bootup.
    >However, other than missing a quarter of the memory, it works just

    3GB is right - your last 1GB is above the 4GB mark, and it's mapped
    there explicitly so that you'll have space in the low 32 bits to map PCI
    devices etc (and things like the APIC, you get the idea).

    If you try to override it, you will very obviously crash, because if you
    tell Linux that you have 4GB of memory, Linux will think that you have
    4GB of _contiguous_ memory, which is not true. The only way to use that
    last gigabyte is to enable support for memory > 4GB, and get the proper
    memory map _without_ any overrides that shows the proper holes for PCI

    Check your "dmesg" output under a working kernel for details - you'll
    see how the memory is laid out and reported by the e820 call..

    >c) If we compile the kernel for 64G high memory (PAE mode), we see all
    >of the memory but have other problems:
    > i) mkefs -m0 on a 72GB Seagate SCSI disk runs very slowly (about
    >5MB/sec instead of 22-25) and the machine hangs after the format
    >completes. To be exact, the command prompt returns, but
    > ls or any other command will never return, and you have to reset
    >the box. This is a
    > showstopper for us!

    Sounds like a true-to-God bug. Possibly in the form of incorrect MTRR
    settings. Make sure you enable MTRR support.

    I do need more information on what seems to hang, and how it hangs. One
    of the pre-kernels will give you a nice stack backtrace for each process
    if you press control-scrolllock, and that might be useful.

    > ii) If I override the amount of memory via lilo, we still get the
    > hang, but performance actually improves!

    The performance problem is _probably_ due to the kernel having to
    double-buffer the IO requests, coupled with bad MTRR settings (ie memory
    above the 4GB range is probably marked as non-cacheable or something,
    which means that you'll get really bad performance).

    Not using the high memory will avoid the double-buffering, and will also
    avoid using memory that isn't cached. If I'm right.

    The hang still indicates that something is wrong in PAE-land, though.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:17    [W:0.044 / U:3.416 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site