rostamia@umbc3.UMBC.EDU (Rouben Rostamian) (07/22/90)
Is there a utility to determine what fraction of the physical memory is being used on a machine? The closest I can come to is to execute the ps command (with optional flags) to get the percentage of memory used by individual processes, then add up all the percentages. [I am not even sure if the memory referred by ps is virtual or physical memory.] I have a DECstation 3100 with 8MB of memory. The reason I want to check the memory usage is to determine whether the memory gets saturated at all, and whether investing in additional memory modules is worthwhile. I tried 'man -k mem' but did not find anything useful there. I would appreciate any pointers and suggestions. -- Rouben Rostamian Phone: 301 455-2458 Department of Mathematics e-mail: University of Maryland Baltimore County rostamian@umbc.bitnet Baltimore, MD 21228 rostamian@umbc3.umbc.edu
jak@sactoh0.UUCP (Jay A. Konigsberg) (07/22/90)
In article <3634@umbc3.UMBC.EDU> rostamia@umbc3.umbc.edu (Rouben Rostamian) writes: >Is there a utility to determine what fraction of the physical memory >is being used on a machine? > >The closest I can come to is to execute the ps command (with >optional flags) to get the percentage of memory used by individual >processes, then add up all the percentages. [I am not even sure >if the memory referred by ps is virtual or physical memory.] > >I have a DECstation 3100 with 8MB of memory. The reason I want to check >the memory usage is to determine whether the memory gets saturated at all, >and whether investing in additional memory modules is worthwhile. > Well, I saw your first post and wondered if someone would answer - guess not. So, here is my shot. ** from the "Unix System V/386" manual ** ps -el will produce most of the desiered information you need with one known cavate. Different users running the same program will report the same memory for that program being used twice when its only being used once. One copy is in memory and multiple file/program pointers and data areas will be maintained. The collum for SZ is the info your after. Also, at boot time the system will report the amount of memory used by the kernel (on a 3B2 anyway), try checking the output of the "prtconf" and "sysdef" commands (3B2's also). If this information isn't easily available, you will have to go into the kernel configuration file (or the sysdef output) and figure it all up from the information in the Systems Administrators reference manual. -- ------------------------------------------------------------- Jay @ SAC-UNIX, Sacramento, Ca. UUCP=...pacbell!sactoh0!jak If something is worth doing, its worth doing correctly.
alan@shodha.dec.com ( Alan's Home for Wayward Notes File.) (07/22/90)
In article <3634@umbc3.UMBC.EDU>, rostamia@umbc3.UMBC.EDU (Rouben Rostamian) writes: > Is there a utility to determine what fraction of the physical memory > is being used on a machine? Vmstat(1) should have what you want lurking in it. If not you can: 1. Look on gatekeeper.dec.com for something called monitor.tar.Z (/pub/DEC/...). 2. Write you own program to go poking around kernel memory. I think the interesting data structure is called "total". > > I have a DECstation 3100 with 8MB of memory. The reason I want to check > the memory usage is to determine whether the memory gets saturated at all, > and whether investing in additional memory modules is worthwhile. With only 8 MB you're almost certainly paging. Maybe even a lot. It depends on what you're doing. > > -- > Rouben Rostamian Phone: 301 455-2458 -- Alan Rollow alan@nabeth.enet.dec.com
mike@raven.uss.tek.com (Mike Ewan) (07/23/90)
In article <3634@umbc3.UMBC.EDU> rostamia@umbc3.umbc.edu (Rouben Rostamian) writes: >Is there a utility to determine what fraction of the physical memory >is being used on a machine? It sounds like what you want is a total amount of memory in use, which is reported by /usr/ucb/vmstat. That is on a VAXstation II/Ultrix 3.1. It should be available in RISC Ultrix. Vmstat will report avm (Active Virtual Memory) and fre (Free Memory) in 1k pages. It also reports various disk and controller statistics. Mike -- Michael Ewan (503)627-6468 Internet: mike@raven.USS.TEK.COM Unix Systems Support UUCP: ...!tektronix!puffin!raven!mike Tektronix, Inc. Compuserve: 73747,2304 "Fig Newton: The force required to accelerate a fig 39.37 inches/sec."--J. Hart
guy@auspex.auspex.com (Guy Harris) (07/23/90)
>>I have a DECstation 3100 with 8MB of memory. ... ... >** from the "Unix System V/386" manual ** DECStation 3100s run Ultrix, not S5/386 nor even S5/3B2, nor any direct derivative of them; the answer for S5/386 doesn't help in this case. He might try looking at "vmstat"....