<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On 26 Sep 2007, at 07:04, Ajinkya Nahar wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: Times New Roman; "><font size="2" face="Arial"><span style="font-size:10.0pt; font-family:Arial">I am working on a PHP – Mysql based web application.<o:p></o:p></span></font></p><p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: Times New Roman; "><font size="2" face="Arial"><span style="font-size:10.0pt; font-family:Arial"><o:p> </o:p></span></font></p><p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: Times New Roman; "><font size="2" face="Arial"><span style="font-size:10.0pt; font-family:Arial">I am using memcached for caching purpose.<o:p></o:p></span></font></p><p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: Times New Roman; "><font size="2" face="Arial"><span style="font-size:10.0pt; font-family:Arial"><o:p> </o:p></span></font></p><p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: Times New Roman; "><font size="2" face="Arial"><span style="font-size:10.0pt; font-family:Arial">I have one query regarding memcached server setup as follows –<o:p></o:p></span></font></p><p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: Times New Roman; "><font size="2" face="Arial"><span style="font-size:10.0pt; font-family:Arial"><o:p> </o:p></span></font></p><p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: Times New Roman; "><font size="2" face="Arial"><span style="font-size:10.0pt; font-family:Arial">If we have 1.7 GB memory on a server, how much should we allocate to memcached assuming there is nothing else running on the server.<o:p></o:p></span></font></p><p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: Times New Roman; "><font size="2" face="Arial"><span style="font-size:10.0pt; font-family:Arial"><o:p> </o:p></span></font></p><p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: Times New Roman; "><font size="2" face="Arial"><span style="font-size:10.0pt; font-family:Arial">Also, if we decide to allocate 1.5 GB, in that case, is it good to have just 1 memcached instance running or let’s say 3 - each with 0.5 GB?<o:p></o:p></span></font></p><p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: Times New Roman; "><font size="2" face="Arial"><span style="font-size:10.0pt; font-family:Arial"><o:p> </o:p></span></font></p><p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: Times New Roman; "><font size="2" face="Arial"><span style="font-size:10.0pt; font-family:Arial">We are using the latest PHP memcache client which implements consistent hashing strategy.</span></font></p></span></blockquote><br></div><div>If you are only running one server, you might be better off using APC for your caching. If you have 2 servers, you might get better performance by running your PHP on both, and also using both for memcache (with memcache the more physical servers you have, the faster it can go, on average). This will also give you a bit of redundancy, letting your service continue if one server dies.</div><div><br class="webkit-block-placeholder"></div>Marcus<br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div><div style="">-- </div><div style="">Marcus Bointon</div><div style="">Synchromedia Limited: Creators of <a href="http://www.smartmessages.net">http://www.smartmessages.net</a>/</div><div style="">UK resellers of info@hand CRM solutions</div><div style="">marcus@synchromedia.co.uk | <a href="http://www.synchromedia.co.uk">http://www.synchromedia.co.uk</a>/</div></div><br class="Apple-interchange-newline"></span></span></span> </div><br></body></html>