HP-UX 에서 Glance와 ps로 보는 메모리 내용의 차이점.
Take a look at document #A4678152 ("Comparing page size for vmstat, top, glance, ps -el").
1. Top reports free memory in 1kb chunks so to get them to match you must divide tops free amount by 4 to get the true number of 4kb pages free and have it match vmstat. In other words, top reports in 1kb pages so these numbers must be multiplied by 4 to get 4kb kernel pages numbers.
2. For vmstat, avm (active virtual pages) and free (size of the free list) memory are reported in 4kb pages sizes.
3. Glance reports 1kb page sizes. This number will often be significantly different from ps -el since glance reports usage of shared memory also.
From the Glance help window for RSS (* PROC_MEM_RES): The number of KB of resident memory for the process. This consists of text, data, stack, as well as the process' portion of shared memory. This value is similar to the SZ field of the ps -el command, except that the ps command shows only data, stack, and text areas, and it reports their sizes in page units rather than KB. On some systems ps reports the virtual rather than
resident size.
4. ps -el reports in 4kb kernel page sizes.
vsz = The size in kilobytes (1024 byte units) of the core image of the process. See column sz, above.
sz = The size in physical pages of the core image of the process, including text, data, and stack space.
Glance RSS = RSS(* PROC_MEM_RES): The number of KB of resident memory for the process. This consists of text, data, stack, as well as the process' portion of shared memory. This value is similar to the SZ field of the ps -el command, except that the ps command shows only data, stack, and text areas.