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

Re: IPC::SharedCache slower than reading off disk

by wog (Curate)
on Nov 23, 2001 at 03:59 UTC ( #127039=note: print w/replies, xml ) Need Help??


in reply to IPC::SharedCache slower than reading off disk

Linux like most modern OSes, uses spare RAM to cache disk accesses. Thus, when you use retrieve you are probably not actually going off the disk. Also, IPC::SharedCache uses Storable to put the data structure into its shared memory segment(s) (I believe it divides the hash between multiple segments, but I'm not entirely sure.) This is because it's very hard to move perl's internal representation of these data structures into the shared memory while having it work on all processes and not having perl move it out of that space.) Also, IPC::SharedCache does synchronization to make sure that one does not write the data structure while another's reading it and get stale data, which also carries it's own overhead.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2022-12-07 16:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?