Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Minimum Hash keys allocated?

by flexvault (Prior)
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 making s'mores by the fire in the courtyard of the Monastery: (15)
As of 2015-07-06 17:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (80 votes), past polls