T.R | Title | User | Personal Name | Date | Lines |
---|
258.1 | Alpha-V6.2 | PADKOA::COSTEUX | Le Plat Pays qui est le mien... | Thu Feb 27 1997 09:26 | 1 |
| Forgot to say that the customer run OpenVMS AXP-V6.2
|
258.2 | must have resource wait set. | MILORD::BISHOP | The punishment that brought us peace was upon Him | Thu Feb 27 1997 09:39 | 15 |
| you have to have resource wait set. I remember tripping over this years
ago and investigating why.
The spawning processing throughs a number of large messages into the
mailbox (process logical names, symbols, etc) and only stops when it
hits the resource wait. At this point t he spawned process can get in
and start reading them. There's no synchronization between the two, the
parent sends its messages as fast as the system will let it; the
subprocess reads them as fast as they appear.
If you don't have resource wait set, then the parent gets an error back
that it doesn't attempt to handle, instead of letting the system handle
it all behind its back (the designed approach for spawn).
- Richard.
|
258.3 | | AUSS::GARSON | DECcharity Program Office | Thu Feb 27 1997 17:13 | 10 |
| re .0
> It only works if we do first a SET PROCESS/RESOURCE_WAIT...
True. Known feature.
Don't ask me why SPAWN doesn't set resource wait mode before doing its
stuff but calling $SETRWM yourself around the call may be a workaround
if you really have to have resource wait off (in which case you would
want to restore the setting after the SPAWN).
|
258.4 | disable resource wait only when necessary, NOT globally | GIDDAY::GILLINGS | a crucible of informative mistakes | Thu Feb 27 1997 20:40 | 20 |
| > It only works if we do first a SET PROCESS/RESOURCE_WAIT
Jean-Pierre,
Are you sure you and your customer understand the full impliciations of
running with /NORESOURCE_WAIT? There are lots of things which will fail
in mysterious and possibly non-repeatable ways if you do this (like, for
example SPAWN ;-). There are lots of places that resource wait is assumed
that you have no control over. Rewriting sections of OpenVMS so they
explicitly enable and disable resource wait would just slow things down
for everyone and only benefit those who like to run with the blade guards
off and no seatbelts. Moreover, it would be a direct violation of the
users explicit instructions (I said "NORESOURCE_WAIT", I mean it!).
Rather than enabling resource wait before the SPAWN and reenabling it
afterwards, I would *strongly* recommend that your customer have resource
wait enabled normallly, figure out precisely what operations they want
performed without resource wait and disable it for the duration of those
operations only.
John Gillings, Sydney CSC
|