From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,32c594a83e2d8db X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,32c594a83e2d8db X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-10-07 15:34:06 PST Xref: gmd.de comp.os.vms:32103 comp.sys.dec:10649 Newsgroups: comp.os.vms,comp.sys.dec Path: gmd.de!xlink.net!howland.reston.ans.net!agate!headwall.Stanford.EDU!unixhub!slacvx.slac.stanford.edu!fairfield From: fairfield@slacvx.slac.stanford.edu Subject: Re: Move from VMS to Open VMS or to HP-UX? Advice sought! Message-ID: <1993Oct7.134036.1@slacvx.slac.stanford.edu> Followup-To: comp.client-server Sender: news@unixhub.SLAC.Stanford.EDU Organization: Stanford Linear Accelerator Center References: <28vscu$8br@agate.berkeley.edu> <1993Oct7.023037.18596@gordian.com> <55096@sdcc12.ucsd.edu> Date: Thu, 7 Oct 1993 21:40:36 GMT In article <55096@sdcc12.ucsd.edu>, xm9@sdcc12.ucsd.edu (Tony Burzio) writes: > In article <1993Oct7.023037.18596@gordian.com> mike@gordian.com (Michael Thomas) writes: >> Er, need I point out the difference between lib$spawn() and fork()? >>Unix piping etc, etc, is *painfully* slow under VMS. Believe me, >>I've tried and it takes *much* hacking to get the VMS side to >>behave respectably. > > Even though VMS sucks, it *is* possible to get reasonable performance with > a spawn in VMS, if you use SPAWN/NOSYM/NOLOG to stop the DCL thingy from > copying all those zillions of bytes of tables down to the new process. > What you see is VMS's lack of the path concept, which is why UNIX is faster > on the spawn... Of course, your subprocess will have to find another > way to locate all those VMS goodies, like SYS$WHATCHAMACALLIT :-) ^^^^^^^^^^^^^^^^^^^ Close, but no cigar. It is only your PROCESS logicals that don't get copied to the subprocess on SPAWN/NOLOGICAL_NAMES. There are _many_ shared logical name tables, LNM$JOB and LNM$SYSTEM to name two, that get you to essentially everything you need. Logical names in a shared lnm table do NOT get "copied" to the subprocess but are available to it. In particular, anything named SYS$xxx is going to reside in a directory pointed to by a logical in LNM$SYSTEM. "Private" logical names that you want the subprocess to inherit simply need to be defined /JOB in the user's LOGIN.COM rather than in the default LNM$PROCESS. (BTW, /NOLOG is not quite sufficient...it needs to be /NOLOGI since there is also a /NOLOG (/LOG) qualifier that controls whether certain informational messages are displayed at the time of the SPAWN.) As another poster mentioned, the /NOSYMBOLS can be a big win since most users...and system managers on behalf of their users...define _lots_ of symbols which need to be copied to the child process. Just trying to take care of factual details while staying clear of the gun fire... -Ken -- Dr. Kenneth H. Fairfield | Internet: Fairfield@Slac.Stanford.Edu SLAC, P.O.Box 4349, MS 98 | DECnet: 45537::FAIRFIELD (45537=SLACVX) Stanford, CA 94309 | FAX: (415) 926-4335 ---------------------------------------------------------------------------- These opinions are mine, not SLAC's, Stanford's, nor the DOE's...