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
Hi Rasmus,
restart_count - makes sense
last_restart_reason - is not very useful, I think it's better to add
separate counters for each reason (memory overflow, hash overflow, wasted
memory).
What do you think?
Dmitry.
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
Hi Rasmus,
restart_count - makes sense
last_restart_reason - is not very useful, I think it's better to add
separate countersfor each reason (memory overflow, hash overflow, wasted
memory).What do you think?
Sure, separate counters give us even more granularity. It should be
obvious which config param to tune and right now that is quite hard to
figure out unless you sit and watch it for a while or catch it at just
the right moment.
Another small tweak, I noticed that with enable_cli off it still loads
the blacklist when sapi=cli. There doesn't seem to be much point in
that, is there?
-Rasmus
Hi Rasmus,
restart_count - makes sense
last_restart_reason - is not very useful, I think it's better to add
separate countersfor each reason (memory overflow, hash overflow, wasted
memory).What do you think?
Sure, separate counters give us even more granularity. It should be
obvious which config param to tune and right now that is quite hard to
figure out unless you sit and watch it for a while or catch it at just
the right moment.
Great. Please, propose the uniform names or even better prepare a path for
PHP-5.5.
Another small tweak, I noticed that with enable_cli off it still loads
the blacklist when sapi=cli. There doesn't seem to be much point in
that, is there?
I'll need to look into it. I'm not completely sure about ini on_modify
callback invocation order...
Dmitry.
-Rasmus
Another small tweak, I noticed that with enable_cli off it still loads
the blacklist when sapi=cli. There doesn't seem to be much point in
that, is there?
Not that I think it's a common use case, but if one happens to have a
directory with rapidly changing files (typically auto-generated
files), you may still want to exclude them when in CLI, no?
Zeev
Hi Zeev,
Rasmus is talking about a case when O+ is loaded but completely disable for
CLI.
Of course, it makes no sense to load and parse blacklist file in this case.
Thanks. Dmitry.
Another small tweak, I noticed that with enable_cli off it still loads
the blacklist when sapi=cli. There doesn't seem to be much point in
that, is there?Not that I think it's a common use case, but if one happens to have a
directory with rapidly changing files (typically auto-generated
files), you may still want to exclude them when in CLI, no?Zeev
I missed the 'off' part... I guess it makes sense of we can do it.
Sent from my mobile
Hi Zeev,
Rasmus is talking about a case when O+ is loaded but completely disable for
CLI.
Of course, it makes no sense to load and parse blacklist file in this case.
Thanks. Dmitry.
Another small tweak, I noticed that with enable_cli off it still loads
the blacklist when sapi=cli. There doesn't seem to be much point in
that, is there?Not that I think it's a common use case, but if one happens to have a
directory with rapidly changing files (typically auto-generated
files), you may still want to exclude them when in CLI, no?Zeev