* finding the amount of ram
@ 1994-02-16 22:42 Wright, Thomas E.
1994-02-17 18:29 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1994-02-22 11:08 ` anthony baxter
0 siblings, 2 replies; 4+ messages in thread
From: Wright, Thomas E. @ 1994-02-16 22:42 UTC (permalink / raw)
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? 2nd, how do I determin how much RAM
a program will need (to run at a comfortable pace) b/4 I run it?
thanx,
thomas wright
st3a3@jetson.uh.edu
e771@uhibpd.phys.uh.edu
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: finding the amount of ram
1994-02-16 22:42 finding the amount of ram Wright, Thomas E.
@ 1994-02-17 18:29 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1994-02-22 11:08 ` anthony baxter
1 sibling, 0 replies; 4+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 1994-02-17 18:29 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: finding the amount of ram
1994-02-16 22:42 finding the amount of ram Wright, Thomas E.
1994-02-17 18:29 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
@ 1994-02-22 11:08 ` anthony baxter
1994-03-04 21:24 ` Hans-Ch. Eckert
1 sibling, 1 reply; 4+ messages in thread
From: anthony baxter @ 1994-02-22 11:08 UTC (permalink / raw)
st3a3@rosie.uh.edu (Wright, Thomas E.) writes:
> My first duty at this job
>is to find out how much RAM this DEC 5000/200 has.
Look at the bootup messages - they will tell you. 'cnfg 3' from the
boot prompt will also show it.
Alternatively, if the machine is up, "kvar -k -s physmem -rl /vmunix"
will tell you the number of Mb the machine has. (whats physmem? a long?
I can never remember) (oh, it outputs in hexadecimal) (need to be root
to run this)
Also, try sysinfo, from usc.edu:/pub/sysinfo. This gives lots of information
about all sorts of things, including memory.
> 2nd, how do I determin how much RAM
>a program will need (to run at a comfortable pace) b/4 I run it?
Umm, this is a bit harder. You really just have to guess. then you run the
processes, looking at vmstat to see how much paging is going on, and use
this to tune the amount of memory that is available for the machine, and
how much you allocate to buffers and suchlike. You could also use 'monitor'
to monitor the machine's performance while the processes are running, it
should be available somewhere on gatekeeper.dec.com:/pub/DEC or something.
Anthony
--
anthony baxter @ /\/\|| |= Sarah McLachlan mailing =| australian artificial
email: anthony@aaii.oz.au |= list: mail fte-request@ =| intelligence institute
phone: +613 663 7922 |= yoyo.cc.monash.edu.au. =| 1 grattan st, carlton
Practice random kindness and senseless acts of sarcasm. australia 3053.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: finding the amount of ram
1994-02-22 11:08 ` anthony baxter
@ 1994-03-04 21:24 ` Hans-Ch. Eckert
0 siblings, 0 replies; 4+ messages in thread
From: Hans-Ch. Eckert @ 1994-03-04 21:24 UTC (permalink / raw)
Although I'm about 10 days behind with this, I do have a solution for
this problem that is easy to use (unless you still have to install
perl, that is :-)
Greetings,
Ripley
----8<---- /usr/local/bin/mem ----8<----
#!/usr/local/bin/perl
#
# Copyright 1993 by H.Eckert (ripley@nostromo.in-berlin.de)
# (Can you say ``GNU public licence'' ? I knew you can...)
#
# If suid/sgid-scripts are available uncomment and remove the else-part
# You then need to set mem to sgid kmem...
#die "Permission denied on /dev/kmem.\n" unless (-r "/dev/kmem");
if (-r "/dev/kmem") {
open (MEM,"/usr/etc/kvar -s physmem -rl -k /vmunix|")
|| die "invokation of /usr/etc/kvar failed\n";
while(<MEM>){
($size) = /.* (.*)$/ ;
}
$memsize = (hex($size)*4);
}
else
{
open (MEM, "/usr/etc/uerf -R -r 300|")
|| die "invokation of /usr/etc/uerf failed\n";
$i=0;$tmp="";
while(($tmp=<MEM>) && ($i<30)){
$size = $tmp if grep(/real mem/, $tmp);
$i++;
}
($memsize) = $size =~ /.*=(.*)$/;
$memsize /= 1024;
}
print ("This machine has ". $memsize . "KB of physical memory.\n");
--
Hans-Ch. Eckert, Regensburger Str.2, 10777 Berlin, Germany * ISO 8859-1
(intl) ripley@nostromo.in-berlin.de, * � � �
Alternative: ripley@cs.tu-berlin.de * aeoeuess
NeXTmail: hansagia@w271zrz.zrz.tu-berlin.de (and nowhere else!) * � � �
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1994-03-04 21:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-02-16 22:42 finding the amount of ram Wright, Thomas E.
1994-02-17 18:29 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1994-02-22 11:08 ` anthony baxter
1994-03-04 21:24 ` Hans-Ch. Eckert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox