Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!hplabs!hpda!hpcuhc!blewis From: blewis@hpcuhc.cup.hp.com (Bob Lewis) Newsgroups: comp.sys.hp Subject: Re: System-configurable parameters Message-ID: <530021@hpcuhc.cup.hp.com> Date: 16 Nov 90 23:13:57 GMT References: <675@modus.sublink.ORG> Organization: Hewlett Packard, Cupertino Lines: 64 First, list the .h files that describe the parameters of interest. $ cd /usr/include/sys $ sed -n -e '/info/,/}/p' msg.h sem.h shm.h ** Message information structure. */ struct msginfo { int msgmap, /* # of entries in msg map */ msgmax, /* max message size */ msgmnb, /* max # bytes on queue */ msgmni, /* # of message queue identifiers */ msgssz, /* msg segment size (should be word size multiple) */ msgtql; /* # of system message headers */ ushort msgseg; /* # of msg segments (MUST BE < 32768) */ }; ** semaphore information structure */ struct seminfo { int semmap, /* # of entries in semaphore map */ semmni, /* # of semaphore identifiers */ semmns, /* # of semaphores in system */ semmnu, /* # of undo structures in system */ semmsl, /* max # of semaphores per id */ semopm, /* max # of operations per semop call */ semume, /* max # of undo entries per process */ semusz, /* size in bytes of undo structure */ semvmx, /* semaphore maximum value */ semaem; /* adjust on exit max value */ }; struct shminfo { int shmmax, /* max shared memory segment size */ shmmin, /* min shared memory segment size */ shmmni, /* # of shared memory identifiers */ shmseg, /* max attached shared memory segments per process */ shmbrk, /* gap (in clicks) used between data and shared memory * shmall, /* max total shared memory system wide (in clicks) */ nshm_hash, /* size of segment address hash table */ nshm_free_segs; /* number of free segment discriptors */ }; Then, use adb to display those parameters. Note that one "gotcha" exists. See the above ushort. That is displayed using the "/d" to display short. The other values are just listed nicely in a table and you can pick out the values you want by referring to the .h file descriptions. The specific key strokes are: echo msginfo+18\/d\\nmsginfo,19\/D|adb -k /hp-ux /dev/kmem The results: $ adb -k /hp-ux /dev/kmem sbr 121280 slr 22C2800 msginfo+18: 1024 msginfo: msginfo: 100 8192 16384 50 8 40 67108864 seminfo: 10 10 60 30 500 500 10 96 32767 16384 shminfo: 67108864 1 100 12 16 1536 128 200 $q