home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / linux / 10329 < prev    next >
Encoding:
Text File  |  1992-09-09  |  1.6 KB  |  38 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!snorkelwacker.mit.edu!bloom-picayune.mit.edu!daemon
  3. From: tytso@ATHENA.MIT.EDU (Theodore Ts'o)
  4. Subject: Re: Will ps0.97.2 work with 0.97.3 kernel -- mine won't!
  5. Message-ID: <1992Sep10.005645.24246@athena.mit.edu>
  6. Sender: daemon@athena.mit.edu (Mr Background)
  7. Reply-To: tytso@ATHENA.MIT.EDU (Theodore Ts'o)
  8. Organization: The Internet
  9. Date: Thu, 10 Sep 1992 00:56:45 GMT
  10. Lines: 26
  11.  
  12.    From: rajat@watson.ibm.com (Rajat Datta)
  13.    Date: Wed, 09 Sep 1992 16:05:40 GMT
  14.  
  15.    In article <1992Sep7.032352.27099@magnus.acs.ohio-state.edu> bjones@magnus.acs.ohio-state.edu (William A Jones) writes:
  16.    >
  17.    >               symbol '_low_memory' not found
  18.    >               trying to read invalid address
  19.  
  20.    I'm at patchlevel 4.  ps can be compiled and made to work with a
  21.    trivial patch.  Replace k_addr("low_memory") with
  22.    k_addr("low_memory_start") in ps.c. There are other changes necessary
  23.    for top & free and I'm content to wait for the official changes for
  24.    those.
  25.  
  26. Actually, the correct patch should replace k_addr("low_memory") with
  27. zero (0x0).  Using k_addr("low_memory_start") will screw up the total
  28. memory calculations.  This will have only a minor effect on the ps
  29. program, since it is only really used in percentage calculations, but it
  30. will have an obviously wrong effect on the "free" program.
  31.  
  32. A quick and dirty patch to get "free" working is to replace
  33. k_addr("swap_bitmap") with zero (0x0).  This will result in a version of
  34. free that doesn't know how to report swap usage on your system, but it
  35. will get the memory, inode, buffers, and file descriptors right.
  36.  
  37.                             - Ted
  38.