Memcache performance

Events happening in the community are now at Drupal community events on www.drupal.org.
technicalknockout's picture

Just recently setup new relic for a site and was surprised to see how much of the server's response time is being spent on memcache reads/writes. On a sample response, the breakdown is something like this:

PHP: 312 ms
Database: 143 ms
Memcache: 201 ms
External Web Service: 17 ms

Am I correct in thinking the memcache time is way too high? Or is this similar to other people's experience?

Thanks in advance for your thoughts.

Comments

How many requests to memcache

dalin's picture

How many requests to memcache are made per page load?
Is memcache on the same server, or do the requests go out over the network?

--


Dave Hansen-Lange
Director of Technical Strategy, Advomatic.com
Pronouns: he/him/his

looks roughly around 60

technicalknockout's picture

looks roughly around 60 requests per page load from the 'memcache statistics' and the requests go over a LAN

Which makes 3.35ms per

dalin's picture

Which makes 3.35ms per request. What's your ping time between the web heads and the memcache server?

--


Dave Hansen-Lange
Director of Technical Strategy, Advomatic.com
Pronouns: he/him/his

just got on and did a quick

technicalknockout's picture

just got on and did a quick ping and got:

37 packets transmitted, 37 received, 0% packet loss, time 35999ms
min/avg/max/mdev = 0.316/0.500/0.897/0.096 ms

so with the averages and a little arithmetic ...

3.35 ms memcache avg
- 0.50 ms avg network latency based on ping avg


2.85 ms memcache processing per request

Does that sound about right or does it sound like it's lagging?

High performance

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week