Hi,
I would like to know your opinion on an RFC I'm thinking to propose.
I don't have the skills to code this into PHP Core so anyone who would like
to be involved is welcomed.
The RFC would refer to PHP's ability to use either SWAP memory and/or SWAP
Files.
There are some very interesting things that PHP knows how to do, related to
data-processing, filtering, regex and so on, but one of the main blockers
is the "memory limit".
There are servers or situation where memory can't be extended, but where
disk space is available and maybe even fast enough (SSD) to cover that gap.
At this moment PHP doesn't know how to use the SWAP memory from linux, and
there isn't any way to specify a file that could act as one, similar to an
internal PHP SWAP.
I would like to propose such a system for implementation in PHP 8 (or even
earlier if possible).
Waiting for you comments/feedback if I should make an RFC on this.
Thank you.
Am 19.08.2017 um 16:28 schrieb Admin NxPoint:
I would like to know your opinion on an RFC I'm thinking to propose.
I don't have the skills to code this into PHP Core so anyone who would like
to be involved is welcomed.The RFC would refer to PHP's ability to use either SWAP memory and/or SWAP
Files.There are some very interesting things that PHP knows how to do, related to
data-processing, filtering, regex and so on, but one of the main blockers
is the "memory limit".There are servers or situation where memory can't be extended, but where
disk space is available and maybe even fast enough (SSD) to cover that gap.At this moment PHP doesn't know how to use the SWAP memory from linux, and
there isn't any way to specify a file that could act as one, similar to an
internal PHP SWAP
PHP itself has no business to deal with swap or even know that swap
exists at all - thats the natural core business of teh underlying
operating system and userland has not to try outsmart the OS
Hi,
At this moment PHP doesn't know how to use the SWAP memory from linux,
Why would it need to 'know' how to use swap memory?
My understanding is that the normal way to get a program to use swap
memory is to:
i) Enable swapping in the operating system.
ii) Set the program to use more memory than is physically usable.
I think either you've misunderstood how swap works, or haven't
explained why that isn't suitable for your use case.
cheers
Dan
Hi,
Dan Ackroyd wrote:
Hi,
At this moment PHP doesn't know how to use the SWAP memory from linux,
Why would it need to 'know' how to use swap memory?
My understanding is that the normal way to get a program to use swap
memory is to:i) Enable swapping in the operating system.
ii) Set the program to use more memory than is physically usable.
To clarify to uh… Admin?, PHP will use swap memory automatically; PHP
doesn't manage swap memory itself, that's the OS's job, but PHP uses the
same virtual memory as any other process does, so if the OS allows
swapping, PHP may end up using it.
If the PHP memory limit is the problem, raise it or disable it.
I think either you've misunderstood how swap works, or haven't
explained why that isn't suitable for your use case.
--
Andrea Faulds
https://ajf.me/