From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,99073c7e4b8e8c08 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,99073c7e4b8e8c08 X-Google-Attributes: gid1164f8,public From: jonathan@Kowhai.Stanford.EDU (Jonathan Stone) Subject: Re: NT Meltdowns/Disasters; Documented Examples needed Date: 1998/07/16 Message-ID: <6olire$24l$2@nntp.Stanford.EDU>#1/1 X-Deja-AN: 372108305 References: <35a56f19.868279549@199.217.9.201> <6od6j4$6hg$1@news-2.csn.net> <6ohj9j$89t$1@chinet.chinet.com> <6oi70v$9cj$1@col3.caribsurf.com> <6oj5qe$7ch$8@nntp.Stanford.EDU> <6ol97b$i7a@ds2.acs.ucalgary.ca> Organization: Stanford Distributed Systems Grop Reply-To: jonathan@DSG.Stanford.EDU Newsgroups: comp.os.vms,comp.sys.dec In article <6ol97b$i7a@ds2.acs.ucalgary.ca>, patchkov@acs1.acs.ucalgary.ca (Serguei Patchkovskii) writes: |> Jonathan Stone (jonathan@Kowhai.Stanford.EDU) wrote: |> |> : Well, there was an 11/750 that was running scheduling and monitoring |> : software for an extremely expensive peice of high-energy physics |> : equipment. The box stayed up so long that, so the story goes, DEC |> : released a software patch to avoid reusing process-id 0 when the |> : process numbers wrapped. |> |> Come on, on a busy unix machine it is not exactly unusual to have |> PIDs to wrap over dayly. With a 16-bit PID you only need 0.75 forks/ |> second to do it in 24 hours, and a medium-sized multiprocessor unix |> system can easily do several hundreds. With 32-bit PIDs it is getting |> a bit harder - a busy system doing 1000 forks per second will need |> about 49 days to wrap *that* over. Still, the 50 days uptimes are |> not hard to come by. Yes, I know. I use Unix systems. I help maintain one of the free-Unix ports. Anyone who knows anything about the internals or usage patterns of both Unix and VMS will realize that in VMS, processes are much, much more heavyweight entities than in Unix. Unix forks a new process to execute each command from a shell; VMS uses a LCI running in supervisor mode instead of a separate shell prodecss. Each executable gets set up, runs in usermode in the same procses as the "shell", and then on "process exit", the program gets rundown and the CLI ("shell") regains control via a supervisor-mode exithook. A typical login user consumes only _one_ process for the life of their login session -- unless they did an explicit spawn. Back in the days of VMS 4.x and 5.x on small-to-medium vaxes, ordinary users might not even _have_ spawn prilelege. Your estimate of the time for VMS PIDs to wrap isnt even of the right order of magnitude.