> I did this
>
> echo "stats slabs" | nc localhost 11211 | grep total_pages
>
> Then added all the pages. It came to 1036 (OK not 1024 but close)
>
> > I also forget what the side effects of setting -n so low are, but I doubt
> > it's related.
>
> Apparently it is not doing much for me. Looks like most of my objects end up
> in classes 100-110. Should I assume I should actually be bumping up the factor
> instead of making it smaller ie. 1.5 instead of 1.05 or 1.25 ?
>
> Vladimir
>

1.4.1 has fewer bugs ;) but not related to this.

1036 close enough... might be a bug there (should be 1023 or 1024 exactly)
in the way 1.4.0's reserving pages.

but, that does mean all your memory's allocated.

'stats items' will show you which slab classes are having evictions. Then
you can adjust your growth factor to better cover it. Also, match 'stats
slabs' up with 'stats items' to see if the evictions in a particular class
map to a slab with most of your pages. If there aren't enough pages
assigned to a heavily used class, that usually means the access pattern
changed over time and you need to restart memcached to have it re-dish
them out.

-Dormando

Reply via email to