<div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">The slowdown is almost certainly in your client library. The server, on<br>our systems, takes about 1.5 milliseconds to start up, and a fraction of
<br>a millisecond to answer the first request. But your client might be<br>doing a lot of work the first time it executes. You didn't say what your<br>client language and environment is, so it's kind of hard to even take a
<br>useful guess.</blockquote></div>
<div> </div>
<div>The app is running on PHP and is using the PHP memcache library:</div>
<div><a href="http://cn2.php.net/manual/en/ref.memcache.php">http://cn2.php.net/manual/en/ref.memcache.php</a></div>
<div> </div>
<div>I record the time it takes to render a page, and every page ends up taking 1 second or so. Most of that 1 second is due to the very first memcache get request. It happens at every page that uses memcache. The only time this problem goes away is when I run a load testing tool and start having multiple users hit the system constantly.
</div>
<div> </div>
<div><br><br> </div>
<div><span class="gmail_quote">On 10/27/07, <b class="gmail_sendername">Steven Grimm</b> <<a href="mailto:sgrimm@facebook.com">sgrimm@facebook.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">K J wrote:<br>> So it's normal to have Memcache's response time be 1 second, if the<br>> system is relatively idle? This happens when I'm basically the only
<br>> user on the system, logging in, checking pages, etc.<br><br>The slowdown is almost certainly in your client library. The server, on<br>our systems, takes about 1.5 milliseconds to start up, and a fraction of<br>a millisecond to answer the first request. But your client might be
<br>doing a lot of work the first time it executes. You didn't say what your<br>client language and environment is, so it's kind of hard to even take a<br>useful guess.<br><br>-Steve<br><br></blockquote></div><br>