Re: OPCache: invalidate vs unlink

From: Date: Sun, 21 Jan 2018 12:26:46 +0000
Subject: Re: OPCache: invalidate vs unlink
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-101647@lists.php.net to get a copy of this message
On 1/21/2018 1:04 PM, Nikita Popov wrote: > Unless you are running specifically into the max files limit (and not the > memory limit), unlinking from the hashtable will not provide any benefit. > It does exactly what it says on the tin, and in particular it's not going > to free up any space. > > The reason why opcache has a restart mechanism, is that it does not track > which files are currently (potentially) in use. During a restart it waits > until all workers stop using SHM, at which point the memory can be safely > reset. To improve this some more precise tracking of SHM usage would be > necessary (not necessarily per-file, but more than just "yes or no"). > > Nikita > Many thanks. :) -- Richard "Fleshgrinder" Fussenegger

« previous php.internals (#101647) next »