* Way to show RAM size from shell?
@ 1996-08-08 4:00 Daniel Hillman
1996-08-09 4:00 ` Stephen Stuart
` (4 more replies)
0 siblings, 5 replies; 15+ messages in thread
From: Daniel Hillman @ 1996-08-08 4:00 UTC (permalink / raw)
Cc: danielh
I am trying to find a way to display the amount of RAM on a
DEC 3000 without resorting to the boot prom monitor.
Anyone know of a shell-available
system command that will display amount of
RAM on board?
-Dan
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: Way to show RAM size from shell? 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 ` Michael Rutter ` (3 subsequent siblings) 4 siblings, 0 replies; 15+ messages in thread From: Stephen Stuart @ 1996-08-09 4:00 UTC (permalink / raw) 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. : Anyone know of a shell-available : system command that will display amount of : RAM on board? % uerf -R | more until you find the startup record, or look in /var/adm/messages. Stephen -- - ----- Stephen Stuart stuart@pa.dec.com Network Systems Laboratory Digital Equipment Corporation ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Way to show RAM size from shell? 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 ` Michael Rutter 1996-08-14 4:00 ` Jonathan Oei 1996-08-10 4:00 ` A. Suleiman ` (2 subsequent siblings) 4 siblings, 1 reply; 15+ messages in thread From: Michael Rutter @ 1996-08-10 4:00 UTC (permalink / raw) 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); } ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Way to show RAM size from shell? 1996-08-10 4:00 ` Michael Rutter @ 1996-08-14 4:00 ` Jonathan Oei 0 siblings, 0 replies; 15+ messages in thread From: Jonathan Oei @ 1996-08-14 4:00 UTC (permalink / raw) 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. as root, uerf -R -- Jonathan Oei joei@hops.com "Christianity has not been tried and found wanting; it has been found difficult and not tried" -- G.K. Chesterton ^ permalink raw reply [flat|nested] 15+ messages in thread
* RE: Way to show RAM size from shell? 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 ` Michael Rutter @ 1996-08-10 4:00 ` A. Suleiman 1996-08-13 4:00 ` Paul Henderson 1996-08-12 4:00 ` Randy M. Hayman 1996-08-12 4:00 ` Daniel Lewis 4 siblings, 1 reply; 15+ messages in thread From: A. Suleiman @ 1996-08-10 4:00 UTC (permalink / raw) On Thursday, August 08, 1996, Daniel Hillman 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. > > Anyone know of a shell-available > system command that will display amount of > RAM on board? You can use "uerf" and specify "startup" record type 300, in reverse order and grep for RAM or similar clues: # uerf -r 300 -R | grep "RAM" ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Way to show RAM size from shell? 1996-08-10 4:00 ` A. Suleiman @ 1996-08-13 4:00 ` Paul Henderson 0 siblings, 0 replies; 15+ messages in thread From: Paul Henderson @ 1996-08-13 4:00 UTC (permalink / raw) > On Thursday, August 08, 1996, Daniel Hillman 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. > > \b In DU 4.0, the System Information application (/usr/bin/X11/dxsysinfo) will show you the amount of RAM on a system. It can also be invoked from the CDE Application Manager. ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Way to show RAM size from shell? 1996-08-08 4:00 Way to show RAM size from shell? Daniel Hillman ` (2 preceding siblings ...) 1996-08-10 4:00 ` A. Suleiman @ 1996-08-12 4:00 ` Randy M. Hayman 1996-08-13 4:00 ` Rob Hooft 1996-08-14 4:00 ` Rob Hooft 1996-08-12 4:00 ` Daniel Lewis 4 siblings, 2 replies; 15+ messages in thread From: Randy M. Hayman @ 1996-08-12 4:00 UTC (permalink / raw) 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. |> |> Anyone know of a shell-available |> system command that will display amount of |> RAM on board? |> take the following, compile it (cc -o physmem physmem.c), and place the executable in your path: #include <stdio.h> #include <sys/sysinfo.h> int status, *int_buff; main() { if( -1 == (status = getsysinfo(GSI_PHYSMEM,&int_buff,sizeof(int_buff),0,0))) fprintf(stdout, "error %d getting GSI_PHYSMEM\n", status); else fprintf(stdout, "Physical memory: %d KB\n", (int)int_buff); } -- Randy M. Hayman haymanr@icefog.alaska.edu "Ethernet works in practice but not in theory" -- Bob Metcalfe ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Way to show RAM size from shell? 1996-08-12 4:00 ` Randy M. Hayman @ 1996-08-13 4:00 ` Rob Hooft 1996-08-14 4:00 ` Rob Hooft 1 sibling, 0 replies; 15+ messages in thread From: Rob Hooft @ 1996-08-13 4:00 UTC (permalink / raw) >>>>> "RMH" == Randy M Hayman <haymanr@icefog.alaska.edu> writes: RMH> take the following, compile it (cc -o physmem physmem.c), and RMH> place the executable in your path: Based on that program I hacked together a somewhat more complete hardware report. Obviously not tested in all possible configurations. Enjoy. ------------------------------------------------------------------------------ /* hinv.c: based on a news-post by Randy M. Hayman (haymanr@icefog.alaska.edu) * * Hacked by Rob Hooft (hooft@embl-heidelberg.de). Version 1.0, Aug 13, 1996 * * (C) 1996 Rob Hooft, EMBL. Distribute freely. */ #include <stdio.h> #include <sys/sysinfo.h> #include <machine/hal_sysinfo.h> #include <machine/cpuconf.h> #define debug(x) /* printf(x) */ /* * Some return buffers for different calls */ int status, int_buff, start; #if defined(GSI_CPU_INFO) /* 3.x onwards? */ struct cpu_info buf; #endif struct { int width, height; } resbuf; char gratype[9]; char hw[100]; long long_buf; char *procid; /* * CPU Id strings */ char *cpustr[]={ /* 0 */ "UNKN_SYSTEM", /* 1 */ "VAX_780", /* 2 */ "VAX_750", /* 3 */ "VAX_730", /* 4 */ "VAX_8600", /* 5 */ "VAX_8200", /* 6 */ "VAX_8800", /* 7 */ "MVAX_I", /* 8 */ "MVAX_II", /* 9 */ "V_VAX Virtual VAX", /* 10 */ "VAX_3600 Mayfair I", /* 11 */ "VAX_6200 CVAX/Calypso", /* 12 */ "VAX_3400 Mayfair II", /* 13 */ "C_VAXSTAR VAX3100 (PVAX)", /* 14 */ "VAX_60 Firefox", /* 15 */ "VAX_3900 Mayfair III", /* 16 */ "DS_3100 DECstation 3100 (PMAX)", /* 17 */ "VAX_8820 Polarstar", /* 18 */ "DS_5400 MIPSfair", /* 19 */ "DS_5800 ISIS", /* 20 */ "DS_5000 3MAX", /* 21 */ "DS_CMAX", /* 22 */ "VAX_6400 RIGEL/Calypso", /* 23 */ "VAXSTAR", /* 24 */ "DS_5500 MIPSFAIR-2", /* 25 */ "DS_5100 MIPSMATE", /* 26 */ "VAX_9000", /* 27 */ "DS_5000_100 3MIN", /* 28 */ "ALPHA_ADU", /* 29 */ "DEC_4000 Cobra", /* 30 */ "DEC_3000_500 Flamingo workstation", /* 31 */ "DEC_7000 EV4 on Lazer platform", /* 32 */ "DS_5000_300 3MAX+/BIGMAX", /* 33 */ "DEC_3000_300 Pelican workstation", /* 34 */ "DEC_2000_300 Jensen Alpha PC", /* 35 */ "DEC_2100_A500 Sable", /* 36 */ "LCA_MUSTANG Mustang Desktop PC", /* 37 */ "DEC_2100_A50 Avanti Alpha PC system", /* 38 */ "ALPHA_KN20AA kn20aa workstation", /* 39 */ "DEC_21000 TurboLaser", /* 40 */ "DEC_AXPVME_64 Medulla", /* 41 */ "DEC_2100_C500 Gamma", /* 42 */ "DEC_AXPPCI_33", /* 43 */ "DEC_1000 Mikasa APS Server", /* 44 */ "EB64_PLUS EB64+ Evaluation Board", /* 45 */ "LCA_EB66 EB66 Evaluation Board", /* 46 */ "ALPHA_EB164 EB164 Evaluation Board", /* 47 */ "Unrecognized", /* 48 */ "Noritake", }; #if CPU_MAX>48 #error Please check list of cpu names in /usr/include/machine/hal/cpuconf.h #endif int main() { #if defined(GSI_PLATFORM_NAME) if (getsysinfo(GSI_PLATFORM_NAME,(caddr_t)hw,sizeof(hw),0,0)<0) { debug("O/S might be too old to get platform name\n"); } else { printf("Platform name : %s\n", hw); } #endif #if defined(GSI_PHYSMEM) if (getsysinfo(GSI_PHYSMEM,(caddr_t)&int_buff,sizeof(int_buff),0,0)<0) { debug("error getting GSI_PHYSMEM\n"); } else { printf("Physical memory : %7d kB\n", int_buff); } #endif #if defined(GSI_PROC_TYPE) if (getsysinfo(GSI_PROC_TYPE,(caddr_t)&long_buf,sizeof(long_buf),0,0)<0) { debug("O/S might be too old to get processor type\n"); } else { long_buf&=0xffffffff; #if defined(CPU_TYPE_TO_TEXT) CPU_TYPE_TO_TEXT(long_buf,procid); printf("Processor type : %7ld [%s]\n", long_buf,procid); #else printf("Processor type : %7ld\n", long_buf); #endif } #endif #if defined(GSI_CPU_INFO) if (getsysinfo(GSI_CPU_INFO,(caddr_t)&buf,sizeof(buf),0,0)<0) { debug("O/S might be too old to ask for CPU info\n"); #endif if (getsysinfo(GSI_CPU,(caddr_t)&int_buff,sizeof(int_buff),0,0)<0) { debug("Error getting GSI_CPU\n"); } else { printf("CPU type : %7d [%s]\n", int_buff, cpustr[int_buff]); } #if defined(GSI_CPUS_IN_BOX) if (getsysinfo(GSI_CPUS_IN_BOX,(caddr_t)&int_buff,sizeof(int_buff),0,0)<0) { debug("O/S might be too old to get # of CPU's in box\n"); } else { printf("CPU's in box : %7d\n", int_buff); } #endif #if defined(GSI_CPU_INFO) } else { printf("Current CPU : %7d\n", buf.current_cpu); printf("CPU's in box : %7d\n", buf.cpus_in_box); printf("CPU type : %7d [%s]\n", buf.cpu_type, cpustr[buf.cpu_type]); if (buf.mhz>1000 || buf.mhz<10) { debug("O/S might be too old to ask for CPU clock\n"); /* pre-4.0? */ } else { printf("CPU speed : %7d MHz\n",buf.mhz); /* 4.0 onwards? */ } } #endif #if defined(GSI_CLK_TCK) if (getsysinfo(GSI_CLK_TCK,(caddr_t)&int_buff,sizeof(int_buff),0,0)<0) { debug("error getting GSI_CLK_TCK\n"); } else { printf("Time slices : %7d Hz\n", int_buff); } #endif #if defined(GSI_GRAPHICTYPE) start=0; while (1) { if(getsysinfo(GSI_GRAPHICTYPE,(caddr_t)gratype,sizeof(gratype),&start,0)<0) { debug("O/S might be too old to get graphic type\n"); } else { if (start<0) break; gratype[8]=0; printf("Graphic type [unit %d]: %s\n", start,gratype); } if (!start) break; } #endif #if defined(GSI_GRAPHIC_RES) start=0; while (1) { if(getsysinfo(GSI_GRAPHIC_RES,(caddr_t)&resbuf,sizeof(resbuf),&start,0)<0) { debug("O/S might be too old to get graphic resolution\n"); } else { if (start<0) break; printf("Graphic res [unit %d]: %dx%d\n", start,resbuf.width,resbuf.height); } if (!start) break; } #endif return 0; } ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Way to show RAM size from shell? 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 1 sibling, 2 replies; 15+ messages in thread From: Rob Hooft @ 1996-08-14 4:00 UTC (permalink / raw) >>>>> "RMH" == Randy M Hayman <haymanr@icefog.alaska.edu> writes: RMH> take the following, compile it (cc -o physmem physmem.c), and RMH> place the executable in your path: Based on that program I hacked together a somewhat more complete hardware report. Obviously not tested in all possible configurations. Enjoy. [Phil Farrell <farrell@pangea.Stanford.EDU> reported a bug in version 1.0 which I posted yesterday. It could not be compiled on pre-DU4.0 boxes. Therefore here version 1.1. Comments welcome.] ------------------------------------------------------------------------------ /* hinv.c: based on a news-post by Randy M. Hayman (haymanr@icefog.alaska.edu) * * Hacked by Rob Hooft (hooft@embl-heidelberg.de). Version 1.1, Aug 14, 1996 * * (C) 1996 Rob Hooft, EMBL. Distribute freely. */ #include <stdio.h> #include <sys/sysinfo.h> #include <machine/hal_sysinfo.h> #include <machine/cpuconf.h> #define debug(x) /* printf(x) */ /* * Some return buffers for different calls */ int status, int_buff, start; #if defined(GSI_CPU_INFO) /* 3.x onwards? */ struct cpu_info buf; #endif struct { int width, height; } resbuf; char gratype[9]; char hw[100]; long long_buf; char *procid; /* * CPU Id strings */ char *cpustr[]={ /* 0 */ "UNKN_SYSTEM", /* 1 */ "VAX_780", /* 2 */ "VAX_750", /* 3 */ "VAX_730", /* 4 */ "VAX_8600", /* 5 */ "VAX_8200", /* 6 */ "VAX_8800", /* 7 */ "MVAX_I", /* 8 */ "MVAX_II", /* 9 */ "V_VAX Virtual VAX", /* 10 */ "VAX_3600 Mayfair I", /* 11 */ "VAX_6200 CVAX/Calypso", /* 12 */ "VAX_3400 Mayfair II", /* 13 */ "C_VAXSTAR VAX3100 (PVAX)", /* 14 */ "VAX_60 Firefox", /* 15 */ "VAX_3900 Mayfair III", /* 16 */ "DS_3100 DECstation 3100 (PMAX)", /* 17 */ "VAX_8820 Polarstar", /* 18 */ "DS_5400 MIPSfair", /* 19 */ "DS_5800 ISIS", /* 20 */ "DS_5000 3MAX", /* 21 */ "DS_CMAX", /* 22 */ "VAX_6400 RIGEL/Calypso", /* 23 */ "VAXSTAR", /* 24 */ "DS_5500 MIPSFAIR-2", /* 25 */ "DS_5100 MIPSMATE", /* 26 */ "VAX_9000", /* 27 */ "DS_5000_100 3MIN", /* 28 */ "ALPHA_ADU", /* 29 */ "DEC_4000 Cobra", /* 30 */ "DEC_3000_500 Flamingo workstation", /* 31 */ "DEC_7000 EV4 on Lazer platform", /* 32 */ "DS_5000_300 3MAX+/BIGMAX", /* 33 */ "DEC_3000_300 Pelican workstation", /* 34 */ "DEC_2000_300 Jensen Alpha PC", /* 35 */ "DEC_2100_A500 Sable", /* 36 */ "LCA_MUSTANG Mustang Desktop PC", /* 37 */ "DEC_2100_A50 Avanti Alpha PC system", /* 38 */ "ALPHA_KN20AA kn20aa workstation", /* 39 */ "DEC_21000 TurboLaser", /* 40 */ "DEC_AXPVME_64 Medulla", /* 41 */ "DEC_2100_C500 Gamma", /* 42 */ "DEC_AXPPCI_33", /* 43 */ "DEC_1000 Mikasa APS Server", /* 44 */ "EB64_PLUS EB64+ Evaluation Board", /* 45 */ "LCA_EB66 EB66 Evaluation Board", /* 46 */ "ALPHA_EB164 EB164 Evaluation Board", /* 47 */ "Unrecognized", /* 48 */ "Noritake", }; #if CPU_MAX>48 #error Please check list of cpu names in /usr/include/machine/hal/cpuconf.h #endif int main() { #if defined(GSI_PLATFORM_NAME) if (getsysinfo(GSI_PLATFORM_NAME,(caddr_t)hw,sizeof(hw),0,0)<0) { debug("O/S might be too old to get platform name\n"); } else { printf("Platform name : %s\n", hw); } #endif #if defined(GSI_PHYSMEM) if (getsysinfo(GSI_PHYSMEM,(caddr_t)&int_buff,sizeof(int_buff),0,0)<0) { debug("error getting GSI_PHYSMEM\n"); } else { printf("Physical memory : %7d kB\n", int_buff); } #endif #if defined(GSI_PROC_TYPE) if (getsysinfo(GSI_PROC_TYPE,(caddr_t)&long_buf,sizeof(long_buf),0,0)<0) { debug("O/S might be too old to get processor type\n"); } else { long_buf&=0xffffffff; #if defined(CPU_TYPE_TO_TEXT) CPU_TYPE_TO_TEXT(long_buf,procid); printf("Processor type : %7ld [%s]\n", long_buf,procid); #else printf("Processor type : %7ld\n", long_buf); #endif } #endif #if defined(GSI_CPU_INFO) if (getsysinfo(GSI_CPU_INFO,(caddr_t)&buf,sizeof(buf),0,0)<0) { debug("O/S might be too old to ask for CPU info\n"); #endif if (getsysinfo(GSI_CPU,(caddr_t)&int_buff,sizeof(int_buff),0,0)<0) { debug("Error getting GSI_CPU\n"); } else { printf("CPU type : %7d [%s]\n", int_buff, cpustr[int_buff]); } #if defined(GSI_CPUS_IN_BOX) if (getsysinfo(GSI_CPUS_IN_BOX,(caddr_t)&int_buff,sizeof(int_buff),0,0)<0) { debug("O/S might be too old to get # of CPU's in box\n"); } else { printf("CPU's in box : %7d\n", int_buff); } #endif #if defined(GSI_CPU_INFO) } else { printf("Current CPU : %7d\n", buf.current_cpu); printf("CPU's in box : %7d\n", buf.cpus_in_box); printf("CPU type : %7d [%s]\n", buf.cpu_type, cpustr[buf.cpu_type]); #if defined(GSI_PLATFORM_NAME) /* Dirty hack: how do I detect 4.0? */ if (buf.mhz>1000 || buf.mhz<10) { debug("O/S might be too old to ask for CPU clock\n"); /* pre-4.0? */ } else { printf("CPU speed : %7d MHz\n",buf.mhz); /* 4.0 onwards? */ } #endif } #endif #if defined(GSI_CLK_TCK) if (getsysinfo(GSI_CLK_TCK,(caddr_t)&int_buff,sizeof(int_buff),0,0)<0) { debug("error getting GSI_CLK_TCK\n"); } else { printf("Time slices : %7d Hz\n", int_buff); } #endif #if defined(GSI_GRAPHICTYPE) start=0; while (1) { if(getsysinfo(GSI_GRAPHICTYPE,(caddr_t)gratype,sizeof(gratype),&start,0)<0) { debug("O/S might be too old to get graphic type\n"); } else { if (start<0) break; gratype[8]=0; printf("Graphic type [unit %d]: %s\n", start,gratype); } if (!start) break; } #endif #if defined(GSI_GRAPHIC_RES) start=0; while (1) { if(getsysinfo(GSI_GRAPHIC_RES,(caddr_t)&resbuf,sizeof(resbuf),&start,0)<0) { debug("O/S might be too old to get graphic resolution\n"); } else { if (start<0) break; printf("Graphic res [unit %d]: %dx%d\n", start,resbuf.width,resbuf.height); } if (!start) break; } #endif return 0; } ^ permalink raw reply [flat|nested] 15+ messages in thread
* RE: Freely Available Software (Digital UNIX) 1996-08-14 4:00 ` Rob Hooft @ 1996-08-14 4:00 ` Randy M. Hayman 1996-08-14 4:00 ` Way to show RAM size from shell? Chi Xiaochen 1 sibling, 0 replies; 15+ messages in thread From: Randy M. Hayman @ 1996-08-14 4:00 UTC (permalink / raw) A couple of utilities I've submitted to Digital's "Freely Available Software" listing (http://www.digital.com/info/misc/pub-domain-osf1.txt.html): pak_list-1.0 --> ftp://raven.alaska.edu/pub/randy/license_utils/pak_list-1.0.tar.gz Description: Utility to list Digital License PAK information in another format. Also useful as a cron job to periodically mail information to a group of staff about PAKS expiring within # number of days. Particularily useful for participants of Digital's TEI program. Submitted by: haymanr@icefog.alaska.edu proc_info-1.0 --> ftp://raven.alaska.edu/pub/randy/proc_info_utils/proc_info-1.0.tar.gz Description: Displays various information about a selected process: Resource usage and limits, Signal usage, Environmental variables, etc... Submitted by: haymanr@icefog.alaska.edu syd-3.2 --> ftp://raven.alaska.edu/pub/randy/perf_mon_tools/syd-3.2.tar.gz Description: Patched version of syd-3.1-k08 to provide first string of argument buffer which is the "long" command of the processes. Particularily useful if running multiple instances of Oracle which changes all shared server processes to show them to be running "oracle", now can be shown as "ora_s###_". Updated reference page to reflect these changes also. Submitted by: haymanr@icefog.alaska.edu sys_stat-1.2 --> ftp://raven.alaska.edu/pub/randy/perf_mon_tools/sys_stat-1.2.tar.gz Description: Client/Server utility to gather system status information from Digital UNIX systems (v3.n-v4.0), log it locally, and provide snapshots to local or remote systems as requested. Server daemon sends to clients via locally defined TCP port. Submitted by: haymanr@icefog.alaska.edu zuausr-1.08a --> ftp://raven.alaska.edu/pub/randy/zuausr/zuausr-1.08a.tar.gz Description: Text based (command line driven) Digital UNIX Enhanced Security suite of tools to provide account management. Continuously improved and updated to provide additional features and consistency for new versions of Digital UNIX. Tiered security model allows pushing account management tasks away from Technical/Systems staff closer to the end users. Setld installable, configurable, includes reference pages and Administrator's Guide. Submitted by: haymanr@icefog.alaska.edu -- Randy M. Hayman haymanr@icefog.alaska.edu "Ethernet works in practice but not in theory" -- Bob Metcalfe ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Way to show RAM size from shell? 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 ` Chi Xiaochen 1996-08-14 4:00 ` Dan Pop 1996-08-15 4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes. 1 sibling, 2 replies; 15+ messages in thread From: Chi Xiaochen @ 1996-08-14 4:00 UTC (permalink / raw) In article <vzyu3u6mggd.fsf@nu.embl-heidelberg.de>, Rob.Hooft@embl-heidelberg.de says... > >>>>>> "RMH" == Randy M Hayman <haymanr@icefog.alaska.edu> writes: > > RMH> take the following, compile it (cc -o physmem physmem.c), and > RMH> place the executable in your path: > >Based on that program I hacked together a somewhat more complete hardware >report. Obviously not tested in all possible configurations. Enjoy. > >[Phil Farrell <farrell@pangea.Stanford.EDU> reported a bug in version > 1.0 which I posted yesterday. It could not be compiled on pre-DU4.0 > boxes. Therefore here version 1.1. Comments welcome.] > [ ................ deleted .......................] The physical memory reported by this program is really total physical memory installed in a machine, or the memory available to the operating system, that is physical memory minus the space occupied by the kernel? Chi Xiaochen ---------------- xchi@ulb.ac.be ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Way to show RAM size from shell? 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. 1 sibling, 0 replies; 15+ messages in thread From: Dan Pop @ 1996-08-14 4:00 UTC (permalink / raw) In <4usk56$e22@rc1.vub.ac.be> xchi@ulb.ac.be (Chi Xiaochen) writes: >In article <vzyu3u6mggd.fsf@nu.embl-heidelberg.de>, Rob.Hooft@embl-heidelberg.de says... >> >>>>>>> "RMH" == Randy M Hayman <haymanr@icefog.alaska.edu> writes: >> >> RMH> take the following, compile it (cc -o physmem physmem.c), and >> RMH> place the executable in your path: >> >>Based on that program I hacked together a somewhat more complete hardware >>report. Obviously not tested in all possible configurations. Enjoy. >> >>[Phil Farrell <farrell@pangea.Stanford.EDU> reported a bug in version >> 1.0 which I posted yesterday. It could not be compiled on pre-DU4.0 >> boxes. Therefore here version 1.1. Comments welcome.] >> >[ ................ deleted .......................] > >The physical memory reported by this program is really total physical memory >installed in a machine, or the memory available to the operating system, that >is physical memory minus the space occupied by the kernel? Total physical memory installed, including the couple of MB "eaten" by the console firmware and the memory occupied by the kernel itself. Dan -- Dan Pop CERN, CN Division Email: Dan.Pop@cern.ch Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Way to show RAM size from shell? 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. 1 sibling, 0 replies; 15+ messages in thread From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 1996-08-15 4:00 UTC (permalink / raw) In article <4usk56$e22@rc1.vub.ac.be>, xchi@ulb.ac.be (Chi Xiaochen) writes: >> [ No way I'll keep the atributions straight, but summary is that someone asked how to find out how much memory is on a system. There is no distributed command to find out easily, but the getsysinfo(2) system call has a code to get the information. Just a small matter of programming... ] >The physical memory reported by this program is really total physical memory >installed in a machine, or the memory available to the operating system, that >is physical memory minus the space occupied by the kernel? It is really total physical memory. Early systems stole 2 MB for their PAL code, but recent systems may manage to give some of that back once the OS is booted. It really doesn't matter since the systems support virtual memory and the size of the kernel is very fluid. The kernel memory allocator will wire down paged memory as needed, the buffer cache can consume most of free memory given the chance and will thrash against programs if the conditions are just wrong enough and many drivers are dynamically loadable and will take away memory when loaded. > -- Alan Rollow alan@nabeth.cxo.dec.com ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Way to show RAM size from shell? 1996-08-08 4:00 Way to show RAM size from shell? Daniel Hillman ` (3 preceding siblings ...) 1996-08-12 4:00 ` Randy M. Hayman @ 1996-08-12 4:00 ` Daniel Lewis 1996-08-19 4:00 ` J. Shane Kennedy 4 siblings, 1 reply; 15+ messages in thread From: Daniel Lewis @ 1996-08-12 4:00 UTC (permalink / raw) 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. dd bs=1024 if=/dev/mem of=/dev/null Of course you have to be root, yes, you are doing it the hard way, but it appeals to my sense of humor. D. Lewis ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Way to show RAM size from shell? 1996-08-12 4:00 ` Daniel Lewis @ 1996-08-19 4:00 ` J. Shane Kennedy 0 siblings, 0 replies; 15+ messages in thread From: J. Shane Kennedy @ 1996-08-19 4:00 UTC (permalink / raw) Daniel Lewis (dlewis@voicenet.com) wrote: : 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. : : dd bs=1024 if=/dev/mem of=/dev/null : : Of course you have to be root, yes, you are doing it the hard way, : but it appeals to my sense of humor. : : D. Lewis grep mem /var/adm/messages | tail -3 -- ( ( / J. Shane Kennedy \ ) ) / ) ) / kennedy@encmail.encompass.com \ ( ( \ / ( ( / =============================================== \ ) ) \ / ) ) my opinions do not reflect those of my employer ( ( \ ^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~1996-08-19 4:00 UTC | newest] Thread overview: 15+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 ` Michael Rutter 1996-08-14 4:00 ` Jonathan Oei 1996-08-10 4:00 ` A. Suleiman 1996-08-13 4:00 ` Paul Henderson 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
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox