<br><br><div><span class="gmail_quote">2006/6/6, Brian Moon <<a href="mailto:brianm@dealnews.com">brianm@dealnews.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> There is around 5gig in the cache dir but only 5% are massively used , its<br>> hard to figure out optimal cache keys , the combinations number grows up<br>> quickly .<br><br>memcache would figure this out for you and the cache not used would fall
<br>off the end of the cache. Sounds like a 512MB cache would be more than<br>enough for you.<br><br>> I meant Xfs sorry , but with hashing dir based structure , rm is never<br>> a problem<br>> in my case .<br>
<br>Sorry, I don't believe you, but I won't get into this argument.</blockquote><div><br>a simple hash a/b/c for do it well on both reiser and xfs servers in my case it <br>never maid any problems (in my cas only i guess) as the names are quite
<br>random due to the md5 they got relocated quite well.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">> Sure , but its easy when you have very limited key combination number ,
<br>> but sometimes<br>> its impossible to figure out , so the cache size grows up to several<br>> gigs when only 100Meg is realy used , so having memcache "swap" down<br>> can be good (maybe the os will do that if properly asked) ???
<br><br>Key combination is a problem no matter what the solution. What are you<br>using now for file names? Use that for the memcache key. If only 100MB<br>is used, then let the rest fall out of memcache. No sense having cache
<br>around that is not used.</blockquote><div><br>for file names i use an md5 of involved params and i try to keep them as few as possible<br>so : <br> select * from a where a=$a and b=$b and c=$c;<br>the key is md5($a.$b.$c) the number of combinations is "decent" but its difficult to
<br>keep it realy small .<br><br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">For deciding what cache size is best for you, seem my (and others)
<br>previous emails about that issue.</blockquote><div><br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">--<br><br>Brian Moon<br>
-------------<br><a href="http://dealnews.com/">http://dealnews.com/</a><br>Its good to be cheap =)<br></blockquote></div><br>