How I lost (and subsequently found) 32 MB of RAM on my Compaq in OpenBSD

| | Comments (0) |

My inability to do more-than-simple mathematics at times has really put a cramp in my computing style.

In the case of OpenBSD and the $15 Laptop — the Compaq Armada 7770dmt — it has cost me 32 MB of RAM ever since I upgraded from 64 MB to the maximum 144 MB.

The reason is that in some Compaq's OpenBSD will not address more than 16 MB of RAM without some intervention on the part of the user.

This intervention is described in OpenBSD's installation FAQ. In order to have the system recognize the additional memory in the affected Compaqs, you must create a file called /etc/boot.conf containing one line, which tells the OS about your additional memory.

The example in the OpenBSD FAQ is for a system with 64 MB of RAM but with the aforementioned 16 MB being recognized.

To get the additional 48 MB recognized by the system, the following line should be in your new /etc/boot.conf file:

machine mem +0x3000000@0x1000000

That worked perfectly when I, also had 64 MB of RAM.

But when I added 128 MB to the 16 MB on the motherboard (removing the 48 MB of RAM that the laptop had when I originally got it working), I had to change the value in /etc/boot.conf.

And I didn't do my math correctly. This is what I had:

machine mem +0x6000000@0x1000000

I suspected that the machine wasn't using the entire 144 MB, but I'm not conversant enough in OpenBSD as opposed to Linux to a) figure out exactly how much memory the system was recognizing (a number available in the dmesg output) and how much the system was using and how much was still "free" (which can be seen in the output of the top utility.

I've been looking at OpenBSD's installation FAQ again recently because I'm eager to try the OS on my new/old Power Macintosh G4/466, and I looked at the section on Compaq memory again and realized my error.

I realized that if 48 MB is recognized with +0x3000000, then each +0x1000000 represents 16 MB of additional memory. And following that logic, 48 MB is 16 MB times three, yielding the FAQ example of +0x3000000.

And since I was adding 128 MB, that was 16 MB times ... how many? Eight is the answer. So instead of the +0x6000000, I needed the following line in /etc/boot.conf:

machine mem +0x8000000@0x1000000

I booted OpenBSD 4.2 (I don't have enough space in /usr to upgrade to 4.3 — such is the problem with making that partition only 1 GB in size when it needs to be, as the FAQ says, 5 GB). Then I changed the value in /etc/boot.conf, rebooted and saw the dmesg roll by during the reboot with the entire 144 MB being recognized.

Missing 32 MB all this time represents a very large performance hit, and I'll be anxious to see how gaining access to that memory changes performance under X.

For those keeping score, here's the relevant part of my OpenBSD dmesg AFTER doing the /etc/boot.conf fix:

real mem = 150564864 (143MB)
avail mem = 137732096 (131MB)

Leave a comment

Tech Talk column

Steven Rosenberg's weekly Tech Talk column, which appears Saturdays in the Los Angeles Daily News, is now available on the Daily News Technology page.

About this blog

New ways to sign in to comment: I just added the ability for prospective commenters on this blog to sign in using their AOL, Yahoo! and Wordpress.com accounts (for the past 200 posts anyway ... more than that will take an extensive, middle-of-the-night rebuild). That's in addition to the other sign-in choices, which include starting a Movable Type account on this blog, Typekey, OpenID, Live Journal and Vox. If you have trouble getting your Movable Type account verified, or any of the other sign-in options are not working properly, please e-mail me. With these added ways of signing in, there's more reason than ever for you to make a comment (or several!).




Steven Rosenberg aims to learn what he does not know. He writes about it here.



About this Entry

This page contains a single entry by Steven Rosenberg published on September 17, 2008 3:00 AM.

The Debian Mac needs more memory was the previous entry in this blog.

Auto-indentation in Geany: made for programmers, great for writers is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Recent Comments

Powered by Movable Type 4.25

LXer

Links

Daily News technology
LXer
Distrowatch
Linus' Blog
David Pogue
BoingBoing
Linux Today
TuxRadar
Linux.com
Linux Planet
The Open Road
Linux Outlaws podcast
Dan Lynch
Fabian Scherschel
The VAR Guy
Larry the Free Software Guy
Chess Griffin
Linux Reality podcast
Desktop Linux
Practical Technology
Linux Devices
ZDNet
ZDNet U.K.
iTWire
CNet News
TechCrunch
The Register
Ars Technica
Reg Developer
Computerworld
Computerworld blogs
Steven J. Vaughan-Nichols at Computerworld
Debian
Planet Debian
Debian Forums
Debian News
debianHELP
debiantutorials.org
The Debian User
Wolfgang Lonien
Debian-News.net
Debian Administration
Debian Admin
Debian Weather
Ubuntu
Xubuntu
Kubuntu
Edubuntu
Gobuntu
Planet Ubuntu
Ubuntu Forums
Ubuntu Geek
Works With U
Dustin Kirkland
Ubuntu UK Podcast
Popey
gNewSense
CrunchBang Linux
OpenBSD
OpenBSD Journal
OpenBSD Ports
OpenBSD 101
Planet.OpenBSD.nu
jggimi's OpenBSD live CD
DaemonForums
BSDanywhere
Marc Balmer
Denny's OpenBSD blog
Polarwave's OpenBSD Tips and Tricks
Binary Updates for OpenBSD
Puppy Linux
Damn Small Linux
Tiny Core Linux
PCLinuxOS
Mandriva
Red Hat
Red Hat News
Red Hat Blogs
Red Hat: Truth Happens
Red Hat Magazine
CentOS
Planet CentOS
Fedora
Slackware
Slackbuilds
Robby's Slackware Packages
Slackblogs
dropline GNOME for Slackware
GNOME Slackbuild
GWARE - GNOME for Slackware
Wolvix
Zenwalk Linux
Vector Linux
Slax
Splack Linux — Slackware for Sparc
Nonux
How to Forge
marc.info BSD and Linux mailing list archive
FreeBSD
FreeBSD, the Unknown Giant
A Year in the Life of a BSD Guru
NetBSD
PC-BSD
DesktopBSD
DragonFlyBSD
DragonFlyBSD Digest
DesktopBSD
BSD Talk podcast
OpenSolaris
MilaX
BeleniX
DeLi Linux
Linux Loop
Electronista
Engadget
Gizmodo

Advertisement

Other blogs

Johnson Update in Inside USC with Scott Wolf
Has Bynum outgrown Kareem? in Inside the Lakers
Can the Angels just get to the end of this thing without an injury? in Farther Off the Wall
Neuheisel On: in Inside UCLA with Jon Gold
U.S. Roster for Final Two WCQ Announced in 100 Percent Soccer