Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66657 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60526 invoked from network); 16 Mar 2013 01:54:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Mar 2013 01:54:07 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 209.85.219.42 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.219.42 mail-oa0-f42.google.com Received: from [209.85.219.42] ([209.85.219.42:63938] helo=mail-oa0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1F/05-51298-EB0D3415 for ; Fri, 15 Mar 2013 20:54:07 -0500 Received: by mail-oa0-f42.google.com with SMTP id i18so4135184oag.29 for ; Fri, 15 Mar 2013 18:54:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:x-enigmail-version:content-type:content-transfer-encoding :x-gm-message-state; bh=y8hQpC62sh+EaNJ/7Hmrgq4l1x7Q+2PoEClSFYEJiDM=; b=DV22OufRa8JnBiWSH5kCxAeXASnqp1ZeEG04jSTX9v4keAiYT0M9zG8YbkAzeaKVvI 19gRFbGzVSiEGeN8eKkMumEFRa5CXDV1+I+lZjrxaFncnTWuKUOtPaV8mjzyQ3tDI3KX v6dOpzN7uGQKvOuocFs8ivdtb4ZWqTQIalRTLtlw8ChsJe4zYv1V7uTiS/NfH0enyGS+ t3TYxeuadekhQyzfeN5+9kO51ygUEtceyxglLuiNM5zGb2aqBuIPD2Avsl3dCTeEppT8 +No+GLKG1g92Dp5v/+y/nAAZNUZdt8obiOJvdQi3zRZDFv7RQgVIEqk2yDQtLA0oaklJ wQ1w== X-Received: by 10.60.0.194 with SMTP id 2mr3713994oeg.131.1363398844207; Fri, 15 Mar 2013 18:54:04 -0700 (PDT) Received: from [192.168.200.148] (c-50-131-44-225.hsd1.ca.comcast.net. [50.131.44.225]) by mx.google.com with ESMTPS id d10sm4418133obk.1.2013.03.15.18.54.03 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 15 Mar 2013 18:54:03 -0700 (PDT) Message-ID: <5143D0B7.80204@lerdorf.com> Date: Fri, 15 Mar 2013 18:53:59 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 MIME-Version: 1.0 To: Dmitry Stogov CC: PHP internals X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQnShEV0rqQHG82HOjlfAxKqft6CIOknanUoiGDqF/Fj8dq8773E2lJLTmBine7aVXblLpQC Subject: Opcache tuning From: rasmus@lerdorf.com (Rasmus Lerdorf) Hey Dmitry, I think it would be helpful if we added two tuning status entries. The first is a "restart_count" which lets you know how many times the cache has restarted since server start. And the second, since there are multiple triggers for a cache restart, would be a "last_restart_reason" which specifies which limit triggered the last restart. Both should be easy to do as far as I can tell and it would help people figure out if they need to allocate more memory to the cache or allocate more keys. -Rasmus