From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,ac4db33d5ebd4275 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-02-17 10:29:44 PST Newsgroups: comp.sys.dec Path: gmd.de!xlink.net!howland.reston.ans.net!wupost!decwrl!pa.dec.com!nntpd.lkg.dec.com!nntpd2.cxo.dec.com!nabeth.cxo.dec.com!alan From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Subject: Re: finding the amount of ram Message-ID: <1994Feb17.182944.22364@nntpd2.cxo.dec.com> Sender: usenet@nntpd2.cxo.dec.com (USENET News System) Reply-To: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Organization: Digital Equipment Corporation References: <16FEB199416420571@rosie.uh.edu> Date: Thu, 17 Feb 1994 18:29:44 GMT In article <16FEB199416420571@rosie.uh.edu>, st3a3@rosie.uh.edu (Wright, Thomas E.) writes: > >Hello everyone, > I just got a job with the PHYS. dept. here at U of H as a sys. manager. >>From now on, y'all will be hearing from me alot. My first duty at this job >is to find out how much RAM this DEC 5000/200 has. They said that it was not >included in the information that came with the machine. Is there a command >(in ultrix) that I can use to find this? You can: 1. Use the console (>> prompt) command, cnfg, to get basic system configuration information. That will tell you about the CPU and what is in each TURBOchannel slot. You can do the same for each slot: >> cnfg >> cnfg slot-# 2. The amount of memory is printed when the system boots. These messages are written to the binary error log file, which can be examined with the uerf(8) command: # uerf -R -r 300 | page The -R flag prints the contents of the file in reverse chronological order. The -r flag prints a selected type of message. In this case record type #300 which is the boot messages. 3. Examine the kernel variable "physmem". Multiply by the page size (getpagesize(2)). Among the ways: dbx(1) or kvar(8) >2nd, how do I determin how much RAM >a program will need (to run at a comfortable pace) b/4 I run it? For some programs you can use the size(1) command to see the different sizes of the program segments. This will work for programs that don't make extensive use of the stack or allocate memory dynamically. I suspect most FORTRAN programs will fit into this group. For programs that use a lot of stack or dynamic memory, you'd have to examine the sources to get a clue how much it uses or run it see. >thanx, >thomas wright >st3a3@jetson.uh.edu >e771@uhibpd.phys.uh.edu > > -- Alan Rollow alan@nabeth.cxo.dec.com