APC命中/缺失和配置 [英] APC Hits/Misses and configuration

查看:96
本文介绍了APC命中/缺失和配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于APC操作码缓存,命中与未命中"是什么?我已经安装了APC,并且运行良好,但是我错过了一些"机会,我想知道这是否不好".另外,我正在运行Openx,因此,我很快就填充了缓存全部计数".我需要更改配置以使其最小化吗?有建议的配置吗?

What are "Hits & Misses" in reference to APC opcode caching? I've installed APC and it's running great, but I've got "some" misses and I'm wondering if that's "bad". Also, I am running Openx and, as such, am filling up the "Cache full count(s)" pretty quickly. What do I need to change in the configuration to minimize that? Any recommended configurations?

推荐答案

可能会错过一些机会.

命中=事物在缓存中

Miss =尚未(尚未)存储在高速缓存中.新事物或较少使用的事物总是会错过的,因此您总会期待一些.

Miss = things not (yet) in cache. New or less-used things will always be a miss, so you'll always expect some.

您可能需要调整要分配给APC的内存大小-这是一种猜测游戏,要平衡您的计算机有多少内存以及您通常(通常)已经为APC填充了多少内存(它应该告诉您一个数量或百分比已满).您必须调整各种值才能看到. OK基准是所有源代码的压缩版本,例如gzip 2级-假设您要删除注释,变量名和内容,并且您将永远无法克服.然后,您可以确定有多少专用于缓存.

You may need to tune how much memory you're dedicating to APC - Its sort of a guessing game, balancing how much memory your machine has and how much you 'usually' have filled in APC (it should tell you a amount or percent full). You'll have to tweak various values to see. An OK baseline is a compressed version of all your source code at like gzip level 2 - assume you're taking out comments and variable names and stuff, and you'll never get over that. Then you can figure out how much to dedicate to the cache.

如果您还使用APC进行键值缓存,那么它的填充速度将比仅代码缓存快-您将有望最终填充它.然后,您需要找到一个可以让您满意的遗漏率的量.

If you're using APC for key-value caching as well, that will fill up faster than just code caching - and you'll expect to fill it up eventually. You'll then need to find an amount that gives a miss ratio you're comfortable with.

这篇关于APC命中/缺失和配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆