Operating System - HP-UX
1847471 Members
2299 Online
110265 Solutions
New Discussion

What is the size unit of SEGSZ?

 
Prasad Joshi
Regular Advisor

What is the size unit of SEGSZ?

bash-2.02# ipcs -ma
IPC status from /dev/kmem as of Fri May 5 11:25:48 2006
T ID KEY MODE OWNER GROUP CREATOR CGROUP NATTCH SEGSZ CPID LPID ATIME DTIME CTIME
Shared Memory:
m 0 0x410c3406 --rw-rw-rw- root root root root 0 348 1161 1161 10:05:49 10:05:49 10:05:43
m 1 0x4e0c0002 --rw-rw-rw- root root root root 1 61760 1161 1161 10:05:45 10:05:49 10:05:43
m 2 0x410e20d8 --rw-rw-rw- root root root root 1 8192 1161 1173 10:05:45 10:05:43 10:05:43

bash-2.02# ipcs -ma | sed -n '/^m/p' | awk '{total += $ (NF-5)} END {printf ("%d\n",total)}'
70300

What is the unit here with 70300, MB KB GB ?

Thanks
3 REPLIES 3
Arunvijai_4
Honored Contributor

Re: What is the size unit of SEGSZ?

Hi Prasad,

It is in bytes,

You can refer # man ipcs for more information.

-Arun

"A ship in the harbor is safe, but that is not what ships are built for"
RAC_1
Honored Contributor

Re: What is the size unit of SEGSZ?

I think, segment size is 4k. Each segment is 4k. So need to mutipley by 4096 to get bytes.
There is no substitute to HARDWORK
Ninad_1
Honored Contributor

Re: What is the size unit of SEGSZ?

Prasad,

Is is in bytes. I just checked the size of one of my oracle database - SGA and verified trhu ipcs -mb and it seems that the SEGZ is in bytes.

Regards,
Ninad