[Info-vax] Apache + mod_php performance

Arne Vajhøj arne at vajhoej.dk
Thu Sep 26 21:20:38 EDT 2024


On 9/26/2024 10:30 AM, Craig A. Berry wrote:
> On 9/26/24 7:38 AM, Craig A. Berry wrote:
>> On 9/25/24 6:14 PM, Arne Vajhøj wrote:
>>> Does anyone know internals of Apache on VMS?
>>>
>>> Based on some messages in error_log it looks like
>>> it uses mailboxes APACHE$AWS_CONTROL_MBX_nn.
>>>
>>> If every request result in mailbox comm between
>>> master process and a child process, then that could
>>> slow down things.
>>
>> I vaguely remember that there was a separate image installed with
>> privileges that increased socket buffer size from 255 bytes to something
>> reasonable and these sockets were used as pipes for IPC.
>>
>> The following links still seem to work if you want (old) sources:
>>
>> https://ftp.hp.com/pub/openvms/apache/CSWS-V20-2-ALPHA-SRC- 
>> KIT.BCK_SFX_AXPEXE
>>
>> https://ftp.hp.com/pub/openvms/apache/CSWS-V20-2-I64-SRC- 
>> KIT.BCK_SFX_I64EXE
> 
> Trial and error shows that *slightly* later versions are available at
> the same place:
> 
> https://ftp.hp.com/pub/openvms/apache/CSWS-V21-1-ALPHA-SRC- 
> KIT.BCK_SFX_AXPEXE
> 
> https://ftp.hp.com/pub/openvms/apache/CSWS-V21-1-I64-SRC-KIT.BCK_SFX_I64EXE

I took a look.

It has:

[.httpd.server.mpm.prefork]prefork.c with 1350 lines calling fork
[.httpd.server.mpm.vms]prefork.c with 3900 lines calling sys$creprc

So it looks like the porting approach was to reimplement prefork
more or less from scratch for VMS.

A very quick search make me think that the mailbox is only used
for control not for data.

So I am still stuck.

Arne



More information about the Info-vax mailing list