Closed (duplicate)
Project:
Memcache API and Integration
Version:
6.x-1.8
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
3 Mar 2011 at 10:43 UTC
Updated:
26 Apr 2011 at 07:20 UTC
After upgrading from 1.7 to 1.8 the performance wen down I was having hits in 37% and never got it to increase. The memory usage showed 0.8%
I am using pressflow 6.20
php 5.3.2
memcache version 1.4.4 on RHEL 6 linux.
I had no preblem with 1.7 so I rolled back to it since it is a high traffic website The university of Iceland.
Just wanted to let you guys know about it.
Comments
Comment #1
luisvilla1000 commentedI have a same problem, hits in 36%
Comment #2
vefverksmidja commentedWe had to upgrade to 1.8 again since there was problem with the cache_form some module require it to be in the database.
The hits are stuck in 37%
Comment #3
vefverksmidja commentedthis is the configuration I have in settings.php file
$conf = array(
'cache_inc' => './sites/all/modules/memcache/memcache.inc',
'memcache_servers' => array(':11211' => 'default',),
'memcache_bins' => array(
'cache' => 'default',
'cache_page' => 'default',
'cache_filter' => 'default',
'cache_menu' => 'default',
'cache_block' => 'default',
'cache_content' => 'default',
'cache_update' => 'default',
'cache_views' => 'default',
'cache_asset_search' => 'default',
'cache_views_data' => 'default',
'cache_taxonomy' => 'default',
'cache_workflow_ng' => 'default',
'users' => 'default',
'cache_form' => 'database',
),
);
Hope that helps to figure out what is the problem with the memcache not hitting higher then 37% I just took out the server ip before pasting it here
Comment #4
dimduj commentedGet the same issue,
suscribing
Comment #5
rasmusluckow commentedSimilar issue, similar setup, subscribing.
Comment #6
catchDo you have any reproducible performance data apart from the hit rate you could post?
Comment #7
dimduj commentedHi catch,
Wich kind of data do you need ?
Config
Ubuntu 10/4 LTS
memcached 1.4.5
PECL memcached 1.0.2 (libmemcached 0.47,Session support yes, igbinary support no)
APC on
-I was using the memcached 1.4.3 (hit 30%) now I m using 1.4.5 and I ve better result hit (60%) -
php.ini
memcache.hash_strategy="consistent"
apc.rfc1867 = 1
apc.shm_size="128"
extension=memcached.so
Settings.php
I 've made separate bin to track the hit/miss by table. here are the result:
Are those settings correct ?
Misses: 18361 (45.3%)
Misses: 1 (10.0%)
Misses: 1646 (32.1%)
Misses: 14 (26.4%)
Misses: 4363 (10.3%)
Misses: 26 (0.2%)
Misses: 1 (50.0%)
Misses: 29731 (69.8%)
Misses: 29731 (69.8%)
Misses: 2 (0.0%)
Memcache statistics reports
Memcache admin result
Here are the result for a page.
The probleme seems to be the "getMulti" call:
Memcache statistics
Comment #8
catchI meant performance data outside of memcache's own statistics (like a cactii graph of server load), but this is very useful though!
First - it would be worth comparing performane with the older memcache extension vs. memcached, we've seen very bad performance with the memcached extension (although I don't think that's been tracked down to a specific issue yet).
Also this patch #1103478: Skip some wildcard fetches should improve your hit rate for getMulti- but the better hit rate doesn't correlate 1-1 with better performance overall.
Comment #9
catch#1103478: Skip some wildcard fetches is now committed to latest dev. I'm pretty sure this will improve your memcache statistics, so if possible please update to the latest -dev and see if thinpgs improve. Marking this 'needs more info' since I didn't see obvious issues apart from this one.
Also, not a memcache issue, but I notice you are seeing gets for default views, this is likely due to a views bug #1000898: Don't load default view by default in views_get_view(). It would be worth testing those separately, but that may help with general performance issues.
Comment #10
catchMarking this duplicate of #1103478: Skip some wildcard fetches.