Welcome! Log In Create A New Profile

Advanced

[PHP-DEV] PHP 8 (or earlier) RFC Proposal

Posted by Admin NxPoint 
Admin NxPoint
[PHP-DEV] PHP 8 (or earlier) RFC Proposal
August 19, 2017 05:20PM
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



--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Dan Ackroyd
Re: [PHP-DEV] PHP 8 (or earlier) RFC Proposal
August 20, 2017 02:20PM
On 19 August 2017 at 15:28, Admin NxPoint <[email protected]> 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.

I think either you've misunderstood how swap works, or haven't
explained why that isn't suitable for your use case.

cheers
Dan

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Andrea Faulds
Re: [PHP-DEV] PHP 8 (or earlier) RFC Proposal
August 23, 2017 12:10AM
Hi,

Dan Ackroyd wrote:
> On 19 August 2017 at 15:28, Admin NxPoint <[email protected]> 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/

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Sorry, only registered users may post in this forum.

Click here to login