Significantly slower with memcache (1/4 of the number of HTTP Requests per second)
andrewsuth - October 31, 2009 - 15:31
| Project: | Memcache API and Integration |
| Version: | 6.x-1.4 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
I have installed memcahe on my Ubuntu server and I know it is functioning properly (running on the default port of 11211)
I then installed this module and configured as outlined in the docs:
<?php
$conf = array(
'cache_inc' => './sites/all/modules/memcache/memcache.inc',
);
?>When I benchmark the performance using Apache Benchmark there is a significant reduction in the HTTP Requests per second.
Without memcache I get 20 request per second, with memcache I get 5.
According to the Memcache status:
pid 6670
uptime 17 min 52 sec
time October 31, 2009 - 17:22
version 1.2.2
pointer_size 32
rusage_user 0.072988
rusage_system 0.263959
curr_items 50
total_items 2542
bytes 223.88 KB
curr_connections 1
total_connections 193
connection_structures 6
cmd_get 5963
cmd_set 2542
get_hits 2514
get_misses 3449
evictions 0
bytes_read 20.95 MB
bytes_written 5.39 MB
limit_maxbytes 64 MB
threads 1
hit_percentage 42.16%
mem_used 0.34%Any my memcached statistics:
get:
variables
links:navigation:page-cid:admin/reports/memcache:1
links:navigation:tree-data:9e9d1231ce939f72c82cca0774656ab0
tags_info
mp3player_default
mp3player_default
admin_menu:1:en
theme_registry:garland
imagecache:presets
links:primary-links:page-cid:admin/reports/memcache:1
links:primary-links:tree-data:98877dc088ba2c30c49c8a6a1d99dcc2
links:secondary-links:page-cid:admin/reports/memcache:1
links:secondary-links:tree-data:5d6d3aaaaef5fba302ce62698fa37bbe
admin_menu:1:en
links:admin_menu:all-cid:0
links:admin_menu:tree-data:8fe2e85ae0c1a99779cc3d969a89cd63
pages
tags_info
tags_info
tags_info
set:
variables
links:navigation:tree-data:9e9d1231ce939f72c82cca0774656ab0
links:navigation:page-cid:admin/reports/memcache:1
mp3player_default
imagecache:presets
theme_registry:garland
links:primary-links:tree-data:98877dc088ba2c30c49c8a6a1d99dcc2
links:primary-links:page-cid:admin/reports/memcache:1
links:secondary-links:tree-data:5d6d3aaaaef5fba302ce62698fa37bbe
links:secondary-links:page-cid:admin/reports/memcache:1
links:admin_menu:tree-data:8fe2e85ae0c1a99779cc3d969a89cd63
links:admin_menu:all-cid:0
admin_menu:1:en
admin_menu:1:en
pages
tags_info
hit:
tags_info
tags_info
tags_info
bins:
cache
cache
cache_menu
cache_menu
cache_menu
cache_menu
cache_nodewords
cache
cache
cache
cache_admin_menu
cache
cache
cache
cache
cache_menu
cache_menu
cache_menu
cache_menu
cache_menu
cache_menu
cache_menu
cache_menu
cache_menu
cache_menu
cache_menu
cache_menu
cache_menu
cache_menu
cache_admin_menu
cache_nodewords
cache_nodewords
cache_nodewords
cache_nodewords
cache_nodewords
cache_nodewordsCan soemone point me in the right direction for getting it to run properly?
