From: tytso@ATHENA.MIT.EDU (Theodore Ts'o) Subject: Re: Will ps0.97.2 work with 0.97.3 kernel -- mine won't! Date: Thu, 10 Sep 1992 00:56:45 GMT
From: rajat@watson.ibm.com (Rajat Datta)
Date: Wed, 09 Sep 1992 16:05:40 GMT
In article <1992Sep7.032352.27099@magnus.acs.ohio-state.edu> bjones@magnus.acs.ohio-state.edu (William A Jones) writes:
>
> symbol '_low_memory' not found
> trying to read invalid address
I'm at patchlevel 4. ps can be compiled and made to work with a
trivial patch. Replace k_addr("low_memory") with
k_addr("low_memory_start") in ps.c. There are other changes necessary
for top & free and I'm content to wait for the official changes for
those.
Actually, the correct patch should replace k_addr("low_memory") with
zero (0x0). Using k_addr("low_memory_start") will screw up the total
memory calculations. This will have only a minor effect on the ps
program, since it is only really used in percentage calculations, but it
will have an obviously wrong effect on the "free" program.
A quick and dirty patch to get "free" working is to replace
k_addr("swap_bitmap") with zero (0x0). This will result in a version of
free that doesn't know how to report swap usage on your system, but it
will get the memory, inode, buffers, and file descriptors right.
- Ted