home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!nic!netlabs!lwall
- From: lwall@netlabs.com (Larry Wall)
- Newsgroups: comp.sys.sun.admin
- Subject: Re: How much physical memory?
- Message-ID: <1992Jul31.060900.22471@netlabs.com>
- Date: 31 Jul 92 06:09:00 GMT
- References: <ASHERMAN.92Jul29114658@laser.fmrco.com> <CHETAL.92Jul30045312@is1.is.morgan.com> <13832@auspex-gw.auspex.com>
- Sender: news@netlabs.com
- Organization: NetLabs, Inc.
- Lines: 19
- Nntp-Posting-Host: scalpel.netlabs.com
-
- In article <13832@auspex-gw.auspex.com> guy@Auspex.COM (Guy Harris) writes:
- : I.e., if you have a program or script that you want to run on arbitrary
- : SPARC-based machines, your program or script *must not* have the page
- : size hardcoded into it.
- :
- : Then again, if you don't have only Suns, you may or may not have a
- : "physmem" variable in your kernel on the non-Sun machines, so....
- :
- : (And, for that matter, SunOS 5.0 might not have it, either....)
-
- The safest bet at the moment is probably to run ps and compare %MEM to
- RSS, rounding up to the nearest 4 meg. If you're really paranoid (like
- me) you find the %MEM and RSS fields by looking at the offsets of those
- strings in the title line.
-
- Of course, there's no guarantee they won't break *that* too. :-)
-
- Larry Wall
- lwall@netlabs.com
-