(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version



Best of the Newsgroups: 4GB ram problems sco osr5

Main Index

From: Bela Lubkin <filbo@armory.com>
Subject: Re: Maximum memory...
Date: 21 Oct 2005 01:38:29 -0400
Message-ID: <200510202238.aa01781@deepthought.armory.com> 
References: <8sigl1dms13u8stqjolldot2e1clkphmkc@4ax.com> <Iop0I6.3D2@stevedunn.ca> 

Stephen M. Dunn wrote:

> In article <8sigl1dms13u8stqjolldot2e1clkphmkc@4ax.com> Jon Lapp <jonlapp@adelphia.net> writes:
> $What is the maximum amount of RAM supported by Openserver 5.0.4, 5.0.5
> $and 5.0.6?
> 
>    According to the FAQ, 5.0.4 supported 4 GB.  The documentation for
> 5.0.5 and 5.0.7 also says 4 GB max, so it's reasonable to assume
> the same applies to 5.0.6.

All of those releases will operate with and use 4GB of RAM.  However,
the number, severity and creativity of 4GB-related bugs decreases
steadily with each successive release.

All releases before 507 have a set of behaviors which, while not
strictly related to 4GB, tends to cramp the system's style whenever you
really _use_ a lot of RAM.  The kernel distinguishes between several
classes of memory usable for different purposes.  There's "DMAABLE"
memory, below 16MB, which is usable for ancient ISA direct memory access
(DMA); "direct mapped", below 768MB, which is more convenient for
certain kinds of device drivers; and "unmapped", which can only be used
for user process memory and driver buffers operated by newer drivers
that know how to use it.

Notice that the "DMAABLE" area is tiny compared to the rest of the
system.  It comes out of a 16MB space, but certain parts of the kernel
are firmly nailed down there to start with.  It's under 10MB in a
typical system.  That's 1/400th of the memory in a 4GB system...

Meanwhile, the kernel memory allocation functions _assume_ you require
DMAABLE memory unless you tell them otherwise.  This is for the benefit
of ancient drivers which did in fact require DMAABLE, and had no idea
that any other sort of memory existed.  (The first release of the SCO
Unix kernel supported a _maximum_ of 16MB RAM.  Drivers which date back
that far assume they can use any memory at all for ISA DMA.)

Before OSR507, many many parts of the kernel were allocating DMAABLE
memory "by mistake", that is, they called memory allocation functions
without explicitly noting that they didn't need DMAABLE memory.

As a result, the kernel could easily end up struggling to scrape
together DMAABLE memory for purposes which really didn't need it.

Between 506 and 507, the kernel was audited for such misuses of memory.
507 is much cleaner about only using DMAABLE for the few purposes that
need it (in modern systems, this is essentially only the legacy floppy
driver!)  There's no reverse bottleneck because a request that doesn't
require DMAABLE memory can be satisfied with DMAABLE, if that's all the
kernel has available.

As I remember it, NFS was one of the worst culprits in this area.
You're more likely to be OK with 4GB pre-507 if you don't use NFS.

These problems only happen if you're really using the memory.  If you
have 4GB but your active memory footprint is only 600MB, you're fine.

>Bela<
 



Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar


LOD Communications, Inc.



/Bofcusm/2623.html copyright 1997-2004 (various authors) All Rights Reserved

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.



More:
       - OSR5
       - Bofcusm
       - Bela


Unix/Linux Consultants

Skills Tests

Guest Post Here











My Favorites

Change Congress