Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: mjr19@phy.cam.ac.uk (Michael Rutter)
Subject: Re: Way to show RAM size from shell?
Date: 1996/08/10	[thread overview]
Message-ID: <4uiisf$mol@lyra.csx.cam.ac.uk> (raw)
In-Reply-To: 320A6D0D.41C6@panbio.com


In article <320A6D0D.41C6@panbio.com>,
Daniel Hillman  <danielh@panbio.com> wrote:
>I am trying to find a way to display the amount of RAM on a 
>DEC 3000 without resorting to the boot prom monitor.

You could consider writing one. The following is not pretty,
but it might provoke some thoughts in the right direction.
It does assume that the target is a DEC Alpha running OSF/1
- the code is in no way portable, but it works for the purpose
for which it was originally written :-)

MJR


/* Compile with cc -DULT_BIN_COMPAT foo.c */
#include <stdio.h>
#include <sys/sysinfo.h>
#include <machine/hal_sysinfo.h>

main()
{
    int memsize;

    getsysinfo(GSI_PHYSMEM, &memsize, sizeof(memsize), NULL, NULL);
    printf("This machine has %d Mb of memory.\n", memsize/1024);
    exit(0);
}



  parent reply	other threads:[~1996-08-10  4:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-08  4:00 Way to show RAM size from shell? Daniel Hillman
1996-08-09  4:00 ` Stephen Stuart
1996-08-10  4:00 ` A. Suleiman
1996-08-13  4:00   ` Paul Henderson
1996-08-10  4:00 ` Michael Rutter [this message]
1996-08-14  4:00   ` Jonathan Oei
1996-08-12  4:00 ` Randy M. Hayman
1996-08-13  4:00   ` Rob Hooft
1996-08-14  4:00   ` Rob Hooft
1996-08-14  4:00     ` Freely Available Software (Digital UNIX) Randy M. Hayman
1996-08-14  4:00     ` Way to show RAM size from shell? Chi Xiaochen
1996-08-14  4:00       ` Dan Pop
1996-08-15  4:00       ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1996-08-12  4:00 ` Daniel Lewis
1996-08-19  4:00   ` J. Shane Kennedy
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox