[comp.sys.hp] SZ field in ps

randy@aplcomm.jhuapl.edu (RANDALL SCHRICKEL ) (05/08/91)

Does anyone know the (REAL) size of the blocks referred to by the ps command?
The man page just says blocks, the HPSL says 512 bytes, at least two other 
manuals (SA Tasks and SA Concepts) say 2048 bytes. I guess if it refers to disk
blocks, then it _could_ vary, depending on machine, OS, etc. We're running
HP-UX 7.0 on a 9000 835S. Thanx...

franks@hpuamsa.neth.hp.com (Frank Slootweg CRC) (05/15/91)

600/800 7.0 :  512 bytes per block (i.e. "normal" UNIX blocks a la "du")
300/400 7.0 : 4096 bytes per block (i.e.  Series 300/400 pages)

  Others (i.e. 8.0 and/or 700) : Don't know. The 8.0 manual page does
not tell.

Frank Slootweg, working but not speaking for HP at the Dutch RC.

mck@hpcuhc.cup.hp.com (Doug McKenzie) (05/16/91)

> Does anyone know the (REAL) size of the blocks referred to by the ps command?
> The man page just says blocks, the HPSL says 512 bytes, at least two other 
> manuals (SA Tasks and SA Concepts) say 2048 bytes. I guess if it refers to disk
> blocks, then it _could_ vary, depending on machine, OS, etc. We're running
> HP-UX 7.0 on a 9000 835S. Thanx...

For the S800, SZ is in 512 byte blocks.  SZ adds the incore text size, data
size and stack size, which are held in the kernel as pages, then it's
multiplied by bytes-per-page to get bytes, then it's divided by 512 to get
512 byte blocks.

There are a variety of block sizes, aren't there :-?

Doug McKenzie
HP S800/HP-UX Support
mck@cup.hp.com

Speaking only for myself, etc.

graham@hpwin052.HP.COM (Graham McMahon) (05/17/91)

SZ field is is in 512 byte blocks on the S800 & 4096 byte blocks
on the S300.

Graham McMahon