Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Minimum Hash keys allocated?

by flexvault (Parson)
on Sep 27, 2010 at 11:01 UTC ( #862182=note: print w/ replies, xml ) Need Help??


in reply to Re: Minimum Hash keys allocated?
in thread Minimum Hash keys allocated?

I can't show a simple script to defend my earlier claim, since the times were taken using Time::HiRes qw(gettimeofday).

The sub-system used is 20,000+ lines of code running persistently with pre-forked servers that dynamically expand/contract on activity. The servers respond to tcp calls from a web server with a very small mod-perl cgi script preloaded.

The design goal was to support 3 transactions per second per core with enough memory to prevent paging.

One bottleneck was to reload all hashes required for each transaction. Testing found that pre-allocting the hash key number had a significant improvement in production.

The last stress test, we exceeded 3.52 tranactions per second per core. However, the difference between hardware, operating systems, web-servers, mod-perl, and versions of perl is significant, so your mileage may vary!

Thank you


Comment on Re^2: Minimum Hash keys allocated?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://862182]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (11)
As of 2014-10-20 21:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (92 votes), past polls