- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Global Sections: How to find out processes tha...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2009 06:18 AM
тАО01-13-2009 06:18 AM
Re: Global Sections: How to find out processes that are attached
a colleague of mine provided me with the tool, but it tells me 0 processes found :-(
@Wim,
the tool doesn't generate any output. I searched the workfiles, but here, too, the section is not found.
I'm going to post an example with one section currently in use and my attempts with the various tools to determine the processes. Maybe this helps illustrating the problem a bit. Just hang on a little while until I gather the output.
Regards,
Bernado
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2009 07:59 AM
тАО01-13-2009 07:59 AM
Re: Global Sections: How to find out processes that are attached
http://h71000.www7.hp.com/wizard/wiz_3365.html
http://h71000.www7.hp.com/wizard/wiz_3530.html
http://h71000.www7.hp.com/wizard/wiz_3635.html
http://h71000.www7.hp.com/wizard/wiz_3768.html
Personally, I prefer to use RMS files with global buffers enabled (rather faster than you might think, already fully distributed and cluster-aware, and it deals with all the corner cases for you), or failing that (and when requiring use of shared memory) I'd tend to use global section system services and not installed shareable images.
Example code:
http://h71000.www7.hp.com/wizard/wiz_2486.html
Shared memory gets ugly regardless, as you (unless you use RMS here) have to deal with the processor caches and SMP. Some further details are here:
http://h71000.www7.hp.com/wizard/wiz_2637.html
http://h71000.www7.hp.com/wizard/wiz_2681.html
http://h71000.www7.hp.com/wizard/wiz_6984.html
Some virtual memory and cache-related topics:
http://64.223.189.234/node/228
http://64.223.189.234/node/401
http://64.223.189.234/node/407
Installed shareable images are not my favorite OpenVMS construct; they (as you're discovering) tend to have issues around maintenance and upgrades.
As for the specific ^Y case with that outside image, you might want to make that a privileged image (to cause a rundown on ^Y) or you might want to add a ^Y handler into the tool. Here's an example of the latter:
http://64.223.189.234/node/1099
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2009 02:23 AM
тАО01-14-2009 02:23 AM
Re: Global Sections: How to find out processes that are attached
so here is the example:
We have following global section that is mapped by a couple of processes on the node:
PND_XSVFR_BOARD-DF0004-61
My first approach was following:
DF0004_PND61> pipe show dev /file u1$: | grep PND_XSVFR_BOARD-DF0004-61
00000000 [USER.PND61EXCH61]PND_XSVFR_BOARD-DF0004-61.SECTION;1
But here I only see the 0000000 PID as the owner process of the file ( makes sense ).
Now let's try with the GBLSEC Tool from the Freeware CD:
DF0004_PND61> define gblsec$sda u1$:[bpehar]GBLSEC$SDA.EXE
DF0004_PND61> anal/sys
OpenVMS system analyzer
SDA> gblsec PND_XSVFR_BOARD-DF0004-61
GBLSEC V1.2 (c) 2005, Ian Miller (miller@encompasserve.org) built on VMS V8.3
Press RETURN for more.
SDA>
Global section: PND_XSVFR_BOARD-DF0004-61
-----------------------------------------
GSD: Global Section Descriptor
GSName: PND_XSVFR_BOARD-DF0004-61
PCBUIC: [1075,1]
FILUIC: [175,77]
ORB: 94799248
GSTX: 00000341
PROT: 0000FFFF
IDENT: 00000000
IPID/RGSTX: 00000000
FLAGS: 00C283CD
WRTMOD = USER, AMOD = USER, GBL DZERO WRT SYS
File: DISK50:[USER.PND61EXCH61]PND_XSVFR_BOARD-DF0004-61.SECTION;1
GSTE: Global Section Table Entry
GSD: A8F53820
PFC: 0.
WINDOW: 934064C0
VBN: 1
Press RETURN for more.
SDA>
Global section: PND_XSVFR_BOARD-DF0004-61
-----------------------------------------
REFCNT: 11.
UNITCNT: 16.
VPX: 8464.
FLAGS: 00C283CD
WRTMOD = USER, AMOD = USER, GBL DZERO WRT SYS
%GBLSEC-I-SEARCHING, searching for processes mapped to this global section
0 processes found to be mapped to this global section
Now trying with the tool of Wim:
DF0004_PND61> @x PND_XSVFR_BOARD-DF0004-61
DF0004_PND61>
Now with the approach from the other thread as suggested by Volker Halle:
DF0004_PND61> anal/sys
OpenVMS system analyzer
SDA> show gst/section=163
Global Section Table
--------------------
Index Address Sect/GPTE Addr GSD Pagelets VBN Window R
efcnt Flink Blink Flags
-------- -------- ----------------- -------- -------- -------- -------- --
------ ----- ----- --------------------
00000163 9000DD70 FFFFFEFE.9FE6D528 A8F66340 00000010 00000001 91F36980 00
00000A 0163 0163 WRT AMOD=USER SYSGBL
Name = PND_XSVFR_BOARD-DF0004-61
File = DSA60:[USER.PND61EXCH61]PND_XSVFR_BOARD-DF0004-61.SECTION;1
SDA> set out home:x.x /noinde
SDA> show proc /chan all
SDA> set out sys$output
SDA> exit
DF0004_PND61> sea home:x.x 91F36980
%SEARCH-I-NOMATCHES, no strings matched
@Hoff: I'm going to have a look at the 'Ask the wizard' Topics you mentioned. I already have been searching the 'Ask the wizard' archives for topics mentioning global sections as well as the information offered under the Section "Questions frequently asked by Partners". I guess this time I'll really have to dig deeper into VMS to find out.
The implementation of an interrupt handler will be considered definitely, so this situation should at least be prevented.
Regards,
Bernado
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2009 09:30 AM
тАО01-14-2009 09:30 AM
Re: Global Sections: How to find out processes that are attached
As a start...
INSTALL LIST /FULL filespec
Kumar_Sanjay's comments are correct in the general case, but the INSTALL utility itself uses global section system services as part of its implementation. There's a subtlety or three here. You definitely don't want to mix the global section services with the INSTALL mechanism if you can avoid it, but the two are still and confusingly somewhat interrelated. And sometimes you DO use INSTALL to expunge a section. What is known as a Fortran-style common or an installed-writable shareable image does have associated section(s), but does use INSTALL.
And as for a variant approach for the ATW area, download the wizard.zip archive that's offered over there (it was listed at the bottom of the main page, IIRC) and unpack it. Far easier and far faster to search all that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2009 11:51 AM
тАО01-14-2009 11:51 AM
Re: Global Sections: How to find out processes that are attached
The "Name" shown by SDA indicates that this is not a writable shareable image installed with the INSTALL utility, it is a file based global section, created with $crmpsc. INSTALL creates a name from the KFE address, in hex, the "INS$" prefix and the and a suffix "_nnn" with nnn being the number of the image section, starting with 1. So there is no way to delete it with INSTALL.
[On the other hand, if you remove an installed iamge with INSTALL, and the image is in use, mapped, then the global section is still there: therefore the KFE address in the name.]
You may want to check, if the channel to the file was $deassgn'ed after calling $crmpsc. Then you may not see an open channel in any process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2009 09:08 AM
тАО01-15-2009 09:08 AM
Re: Global Sections: How to find out processes that are attached
FLAGS: 00C283CD
WRTMOD = USER, AMOD = USER, GBL DZERO WRT SYS
The code checks for (SEC$M_DZRO 0x4) being set and if it is displays DZERO. 'tis strange though.
I see REFCNT: 11. - I think this has to be 0 before the global section will be deleted.
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2009 09:06 AM
тАО01-19-2009 09:06 AM
Solutionthere are some differences in the section information displayed by GBLSEC$SDA and by the SDA commands, so I'm not sure, if you are really looking at the same data at the same time...
GSTX: 00000341 .ne. SDA> show gst/section=163
GSD: A8F53820 .ne. A8F66340
etc.
Once you have obtained the correct GSTX, you can also use SDA to search for pages mapped to this global section for all processes in the system:
SDA> SHOW PROCESS/PAGE/GSTX=
This should work, even if the channel to the section file has been closed.
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2009 09:26 AM
тАО01-19-2009 09:26 AM
Re: Global Sections: How to find out processes that are attached
well observed, the data is different, but this is due to the fact that I ran the examples on 2 different days, where the sections had already been recreated. Nevertheless, your last SDA command was the solution: It lists all processes attached to the section, exactly what I was looking for !!! In combination with the GBLSEC Extension from Ian Miller this is all I need ;-)
Thanks a lot for the hint !
Regards,
Bernado
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2009 12:33 AM
тАО01-20-2009 12:33 AM
Re: Global Sections: How to find out processes that are attached
SDA> SHOW PROCESS/PAGE/GSTX=
finds processes and GBLSEC$SDA does not then I have some work to do :-)
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2009 08:11 AM
тАО01-21-2009 08:11 AM
Re: Global Sections: How to find out processes that are attached
that would be a nice thing to have, since the GBLSEC tool is really neat and would save the work of having to send the output to a file and search it for the information ( since there can be quite a lot of output from the SDA Commands on the terminal ).
Regards,
Bernado
- « Previous
-
- 1
- 2
- Next »