Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jun 1995 15:19:30 -0700
From:      Satoshi Asami <asami>
To:        CVS-commiters, cvs-ports
Subject:   cvs commit: ports/utils/top/patches patch-ac
Message-ID:  <199506252219.PAA10101@freefall.cdrom.com>

next in thread | raw e-mail | index | archive | help
asami       95/06/25 15:19:30

  Added:       utils/top/patches  patch-ac
  Log:
  Submitted by:	Peter Wemm <peter@haywire.DIALix.COM>
  
  Hi all..
  
  I wasn't sure whether to send this to ports@freebsd.org, or send it via
  send-pr as a "change request"..
  
  Oh well here goes anyway...
  
  I made a change to top so that it would show the amount of data in the VM
  disk cache - because I was "informed" by a Linux user that Linux was
  obviously better than FreeBSD because Linux uses free memory for cache,
  and since FreeBSD is obviously so memory hungry that it only has 80K of
  free ram, then it can't be doing much caching at all, can it?
  
  It's not the first time I've seen that - the current flame wars in
  comp.unix.bsd.freebsd.misc have been through is a few times too.
  
  Anyway, I extended top to show the amount of space allocated to cache -
  only it made the line too long, and try as I might, it didn't fit well
  without tossing something useful, or looking UGLY, so I made a seperate
  Memory: line and added a "Swap:" line as well, just like the linux top.
  
  It this patch will make top look like this:
  
  [........]
  Memory: 15M Active, 224K Inact, 2736K Wired, 4724K Cache, 4648K Free
  Swap:   31M Total, 23M Free, 26% Inuse  [xxxKin] [yyyKout]
  [.... rest of display ....]
  
  (I've just quit XFree86, and the cache is filling up again...)
  
  I think that makes it pretty obvious where the memory is, and fairly
  unambiguous.
  
  I sent a much smaller version of this in before while the code freeze was
  in place still - but that version wrapped around the memory line if
  paging started.
  
  Anyway, here's my utils/top/patches/patch-ac:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199506252219.PAA10101>