1830899 Members
3525 Online
110017 Solutions
New Discussion

Memory Windows usage

 
SOLVED
Go to solution
Toshiro
New Member

Memory Windows usage

Hi,

For each memory window, I would like to sort users by their memory windows usage.
Could you help me plz ?

Toshiro
6 REPLIES 6
Steve Steel
Honored Contributor

Re: Memory Windows usage

Hi

see

/usr/share/doc/mem_wndws.txt


which is on your machine

7.0 What tools/statistics exist for debugging?
----------------------------------------------

The 11.00 and 11.10 releases ship memory windows functionality only as a
patch. Memory windows is not part of the release base and as such there
are restrictions on what changes are acceptable. For instance, changing
visible header files can cause unforeseen compatibility problems. HP
recognizes the need to return status information and not to break binary
compatibility. For the patch this meant return status information was
not placed in the appropriate places and was reported through a
different means. Because HP wants to place the information in the
appropriate place, the command to provide memory window information is
an unsupported tool at the 11.0 and 11.10 releases.

memwin_stats is available at:

ftp://hpchs.cup.hp.com/tools/11.X/memwin_stats.shar

memwin_stats is the Unsupported command to display information about
shared memory segments, processes and the memory windows themselves.

syntax: memwin_stats [-m] [-w] [-p pid]


steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Toshiro
New Member

Re: Memory Windows usage

Thanks for advices.

I have already run memwin_stats, but with -w option I have got just one PID by Memory Window. And I'm not sure if this shows the really usage of each Memory Window. Overmore this PID are not identified by command ps.

For each Memory Window, I need to determine the size used by process (run process and forked process)of each user.

For instance :

Memory Window n??3
=> toto used 100M
=> tutu used 200M

Memory Window n??4
=> tata used 150M

...
Patrick Wallek
Honored Contributor

Re: Memory Windows usage

The 'shminfo' utility might help you.

You can get it here:
tp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/programs/shminfo/
Toshiro
New Member

Re: Memory Windows usage

Thx,

I'am going to use that, I think. There are options to identify process ?
James Murtagh
Honored Contributor
Solution

Re: Memory Windows usage

Hi Toshiro,

The memwin_stats is obsolete now, as mentioned shminfo is the one to use. As with all the contributed tools use the -h flag to get all thw options.

In your case, use:

# shminfo -w

To get the virtual adress start point, size and shared memory id (shmid). Then use:

# shminfo -s

To see a full description of the process etc.

Regards,

James.
Toshiro
New Member

Re: Memory Windows usage

Wow ! That's wonderfull.
Thx ;)