🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.os.hp-ux
2 messages
2 total messages Started by Lukasz Tylutki Wed, 05 Nov 1997 12:28
ilosc pamieci
#415
Author: Lukasz Tylutki
Date: Wed, 05 Nov 1997 12:28
10 lines
855 bytes
Jak sprawdzic ile jest pamieci w systemi hp-ux 9.07, i inne 
parametry komputera na ktorym pracuje system????

Pozdrawiam:

-- 
Tylutki Lukasz 
 Computer systems and network manager.   tel.:  (12) 633-63-77 w 575
 Jagiellonian University, Institute of Physics  fax:  (12) 633-70-86
mailto:tylutki@if.uj.edu.pl   http://student.uci.agh.edu.pl/~tylutki
Re: ilosc pamieci
#416
Author: Wojciech Myszka
Date: Fri, 07 Nov 1997 20:28
45 lines
1967 bytes
Lukasz Tylutki <tylutki@thrisc.if.uj.edu.pl> wrote in article
<34606674.290B@thrisc.if.uj.edu.pl>...
: Jak sprawdzic ile jest pamieci w systemi hp-ux 9.07, i inne 
: parametry komputera na ktorym pracuje system????
  ---
  Wyjatek z comp.sys.hp.hpux FAQ (dostepne w roznych miejscach,
miedzy innymi w http://www.immt.pwr.wroc.pl/faq/):

Subject: 9.18  How can I determine how much RAM I have
non-interactively?

Here is a short program that returns the RAM size:

#include <sys/pstat.h>
main()
{
   struct pst_static buf;
   pstat(PSTAT_STATIC, &buf, sizeof(buf), 0, 0);
   printf("Physical RAM = %ldMB\n", buf.physical_memory/256);
}

If you are root, you can use adb as follows:

echo "physmem/D" | adb /hp-ux /dev/kmem | tail -1 | \
awk '$2 > 0 { print $2 / 256 }'

Or if /etc/dmesg is still current, you can grep it:

/etc/dmesg | grep "real mem" | tail -1 | awk '$4 > 0 { print $4 /
1048576 }'

(thanks to Richard Lloyd <rkl@csc.liv.ac.uk> and
 Mike Frison <mike_frison@mentorg.com>)

------------------------------

Podczas kazdego rebootu odpowiednie informacje powinny pojawic sie na
konsoli (ostatnie komunikaty z konsoli dosteone sa po wydaniu
polecenia dmesg ale tylko jako root).

Sprawdz ez czy masz zainstalowane oprogramowanie diagnostyczne.
Troche roznych informaji powinien podac program xdm (o ile sobie
przypominam :-)

Wojtek
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads