Re: Why would I have a low percentage of used chunks for a slab class and still be getting evictions for it?

2017-06-26 Thread dormando
Also before you decrease the item expiration time; are the evictions that bad? You can look at the "eviction age" for the different classes, which says how long ago the last evicted item was accessed before being ejected. Typically evictions are on the least used items, so they've been in the cach

Re: Why would I have a low percentage of used chunks for a slab class and still be getting evictions for it?

2017-06-26 Thread red 888
Thanks for your help on this! So I'm currently bound to this version of memcached (I'm using AWS Elasticache and this is the latest version they support) so will have to make do for now. It seems before I try decreasing the item expiration time I should experiment with tweaking the LRU sleep ti

Re: Why would I have a low percentage of used chunks for a slab class and still be getting evictions for it?

2017-06-22 Thread dormando
Nice. Looks like you actually have new features enabled. > STAT crawler_reclaimed 437349953 > STAT crawler_items_checked 217893516538 These stats tell me what I was saying before; you probably have a bunch of expired stuff in memory, when the crawler wakes up it reclaims a bunch of it. The spikes

Re: Why would I have a low percentage of used chunks for a slab class and still be getting evictions for it?

2017-06-22 Thread red 888
The expiration for all items is 30 mins === stats == STAT pid 1 STAT uptime 874624 STAT time 1498177737 STAT version 1.4.34 STAT libevent 2.0.21-stable STAT pointer_size 64 STAT rusage_user 149928.88 STAT rusage_system 20235.24 STAT curr_conn

Re: Why would I have a low percentage of used chunks for a slab class and still be getting evictions for it?

2017-06-22 Thread dormando
Can you paste the full output from the 'stats' command against the server? Also: "stats settings" would be great. Also; do you know anything about your data? what the TTL's are, for instance? It's possible a bunch of stuff expires, which can get reclaimed quickly by some processes depending on you

Re: Why would I have a low percentage of used chunks for a slab class and still be getting evictions for it?

2017-06-22 Thread red 888
Oh sorry! Version 1.4.34. On Thursday, June 22, 2017 at 4:52:18 PM UTC-4, Dormando wrote: > > Think I've asked this a few times; what version are you running? > > On Thu, 22 Jun 2017, red 888 wrote: > > > So when I look at my stats I see no cmd_flush commands are being run. > cmd_flush is 0 and

Re: Why would I have a low percentage of used chunks for a slab class and still be getting evictions for it?

2017-06-22 Thread dormando
Think I've asked this a few times; what version are you running? On Thu, 22 Jun 2017, red 888 wrote: > So when I look at my stats I see no cmd_flush commands are being run. > cmd_flush is 0 and stays at 0. > > On Thursday, June 22, 2017 at 12:44:28 PM UTC-4, Dormando wrote: > Looks like a

Re: Why would I have a low percentage of used chunks for a slab class and still be getting evictions for it?

2017-06-22 Thread red 888
So when I look at my stats I see no cmd_flush commands are being run. cmd_flush is 0 and stays at 0. On Thursday, June 22, 2017 at 12:44:28 PM UTC-4, Dormando wrote: > > Looks like a weird access pattern. you're filling memory, evicting a bit, > then losing all of it at once. Is your "cmd_flush"

Re: Why would I have a low percentage of used chunks for a slab class and still be getting evictions for it?

2017-06-22 Thread dormando
Looks like a weird access pattern. you're filling memory, evicting a bit, then losing all of it at once. Is your "cmd_flush" counter increasing? On Thu, 22 Jun 2017, red 888 wrote: > If I look at the slab stats over time I see the % of chunks_used (relative to > total_chunks) spike up (some slab

Re: Why would I have a low percentage of used chunks for a slab class and still be getting evictions for it?

2017-06-22 Thread red 888
If I look at the slab stats over time I see the % of chunks_used (relative to total_chunks) spike up (some slab classes hit 45% some hit 75%) then spike down and at the same time they are spiking down evictions spike up. This happens about every 2-4 minutes. I've attached a screen shot of this pat

Re: Why would I have a low percentage of used chunks for a slab class and still be getting evictions for it?

2017-06-21 Thread dormando
Is the evictions counter increasing all the time? It might only be completely full sometimes, which would cause evictions (like during peak). if used is less than total but evictions is going up, either you have an old broken version of memcached or that phpmemcachedadmin thing is wrong, and you s

Why would I have a low percentage of used chunks for a slab class and still be getting evictions for it?

2017-06-21 Thread red 888
Here is a snap shot of one of my slab class's stats (from PHPMemcachedAdmin): So what I'm confused about is why, with my used_chunks so low, am I getting eviction