Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100280 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40599 invoked from network); 22 Aug 2017 22:01:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Aug 2017 22:01:30 -0000 X-Host-Fingerprint: 2.24.106.64 unknown Received: from [2.24.106.64] ([2.24.106.64:3692] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9F/78-34801-9B9AC995 for ; Tue, 22 Aug 2017 18:01:29 -0400 Message-ID: <9F.78.34801.9B9AC995@pb1.pair.com> To: internals@lists.php.net References: Date: Tue, 22 Aug 2017 23:01:26 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Posted-By: 2.24.106.64 Subject: Re: [PHP-DEV] PHP 8 (or earlier) RFC Proposal From: ajf@ajf.me (Andrea Faulds) Hi, Dan Ackroyd wrote: > On 19 August 2017 at 15:28, Admin NxPoint 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/