Compression would be a simple matter and will look into adding it a
command line switch..
As for the MD5 checksum, there is a command line switch to disable it.
I don't think i want to remove this function, because it doesn't hurt
anything having it. Maybe this should be disabled by default?
Thanks for the suggestions!
-Zach
Henrik Schröder wrote:
> Hi Zach,
>
> Can you turn on/off compression of data? Can you turn on/off
> connection pooling? If not, then your tool is ok for sizing apps that
> use the PHP client, but pretty useless for sizing apps that use any
> other client. Those two things probably do a lot more for the
> performance of memcached in an application than any other setting you
> could tweak.
>
> Also, you're doing MD5 checksums of your stored data, which means that
> the CPUs of your test clients will spend ~90% of their time doing
> this, instead of stressing the memcached cluster, since MD5 is a
> expensive hash function. This probably skews the results, or cause you
> to need a lot more test clients than you would otherwise.
>
>
> /Henrik
>
> On Fri, Apr 10, 2009 at 22:20, zyou...@gear6.com
> <mailto:zyou...@gear6.com> <zyou...@gear6.com
More commonly available hash functions:
http://us3.php.net/manual/en/function.hash-algos.php
Seems the cheapest out of these would be md2
http://us3.php.net/manual/en/function.hash.php#89574
Might be worth trying to switch it to md2 as a quick solution.
> <mailto:zyou...@gear6.com> <mailto:zyou...@gear6.com
> <mailto:zyou...@gear6.com>> <zyou...@gear6.com
> <mailto:zyou...@gear6.com> <mailto:zyou...@gear6.com
Doesn't compile in its current state:
In file included from /home/zyounker/Desktop/fnv/fnv.c:1:
/home/zyounker/Desktop/fnv/php_fnv.h:1:3: error: invalid preprocessing
directive #Ported
make: *** [fnv.lo] Error 1
Had to comment out the 1st line of php_fnv.h to get it to compile. After
that it compiled and was able to use it.
Thanks,
-Zach
That first line was my fault. I wanted to make sure they got credit
for doing the port, so I added those comments in there. But like I
said, I don't know C so that was my fail.
---
http://jokeped.com - The greatest uncensored jokes!
I'd love to include it in brutis as it is obviously a much faster hash
then the ones available.
If you need any help getting it packaged up, feel free to contact me
directly and I can help out.