| Deutsch English Français Italiano |
|
<vdfj20$2drhq$2@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=C3=B8j?= <arne@vajhoej.dk> Newsgroups: comp.os.vms Subject: Re: Apache + mod_php performance Date: Mon, 30 Sep 2024 21:25:20 -0400 Organization: A noiseless patient Spider Lines: 59 Message-ID: <vdfj20$2drhq$2@dont-email.me> References: <vcv0bl$39mnj$1@dont-email.me> <vcvmu1$3cnv1$2@dont-email.me> <vd10re$nmp$1@reader1.panix.com> <vd1bdp$3npm3$1@dont-email.me> <vd1lgd$dbq$1@reader1.panix.com> <vd1u8j$3qqpg$1@dont-email.me> <vd7hbi$tgu3$2@dont-email.me> <66f8183e$0$715$14726298@news.sunsite.dk> <66f8a44c$0$716$14726298@news.sunsite.dk> <vda9tl$1facd$1@dont-email.me> <vdaala$1es94$1@dont-email.me> <vdab8a$1facd$7@dont-email.me> <vdbp7k$1pg2p$1@dont-email.me> <vdcm06$1tmdr$2@dont-email.me> <vdcn50$1tq3t$1@dont-email.me> <vdcom4$1tmdr$13@dont-email.me> <vdcpri$1tq3s$1@dont-email.me> <vdcufi$1unhf$2@dont-email.me> <vdcvmo$1tq3s$3@dont-email.me> <vdcvu7$1utjr$1@dont-email.me> <vdd0kl$1tq3t$2@dont-email.me> <vdd0th$22qgt$1@dont-email.me> <vdd2mr$1tq3s$4@dont-email.me> <vdd553$23amd$1@dont-email.me> <66fb394e$0$717$14726298@news.sunsite.dk> <vdfffi$2ec8o$1@dont-email.me> <66fb4377$0$717$14726298@news.sunsite.dk> <vdfi7t$2ema9$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 01 Oct 2024 03:25:20 +0200 (CEST) Injection-Info: dont-email.me; posting-host="a0849865778b96932d42f61b4fe5c580"; logging-data="2551354"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+tJ3zvKtcq5zM5Y0Ghqmu3yung4mmHYCg=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:8pkmWRuSF3kt7TolgwUABwZb1eA= In-Reply-To: <vdfi7t$2ema9$1@dont-email.me> Content-Language: en-US Bytes: 4166 On 9/30/2024 9:10 PM, Dave Froble wrote: > On 9/30/2024 8:33 PM, Arne Vajhøj wrote: >> On 9/30/2024 8:24 PM, Lawrence D'Oliveiro wrote: >>> On Mon, 30 Sep 2024 19:50:38 -0400, Arne Vajhøj wrote: >>>> On 9/29/2024 11:15 PM, Lawrence D'Oliveiro wrote: >>>>> On Sun, 29 Sep 2024 22:34:04 -0400, Arne Vajhøj wrote: >>>>>> But I am pretty sure that it will not work on VMS. >>>>> >>>>> That’s what I figured. VMS, like Windows, really wants you to use >>>>> threads. >>>> >>>> For massive parallel processing on VMS then threads not >>>> processes is the way to go. >>> >>> Threads require shared memory, though. Processes allow you to have a mix >>> of shared and private data, plus the use of IPC mechanisms like message >>> passing. This makes for a looser coupling, which better suits the way >>> massively parallel systems are built. >> >> It is undeniable that multiple processes are more loosely coupled >> than multiple threads. >> >> But efficiency is a problem. VMS does not do fork. Process creation >> is expensive on VMS. None of that fancy moving descriptors over >> Unix socket stuff. >> >> VMS got plenty of methods for IPC. A solution with a fixed number >> of processes doing IPC between each other may work fine. >> >> But the concept of constantly starting new processes and killing >> old processes is not going to perform great. > Well, now, that is a rather bold statement. Sometimes I make such. :-) > Granted, starting up a new process involves some overhead. > > But it really depends upon the requirements. The more use out of a > process once it is started, the better overall performance. If a group > of worker processes is started once, then used for many tasks, then that > overhead happens only once. Perhaps once a day, week, month, and even > year. There are various communication methods available on VMS. > > In the end, it comes down to the requirements. An engineer must > evaluate the task(s) and determine what methods will give adequate results. There are obviously a scale. But the Apache case is to start with 5 processes, start 145 new processes in a few seconds and then kill 140 again after maybe 30-45 seconds. And repeat. Arne