[Pvfs2-developers] handle ledger

Sam Lang slang at mcs.anl.gov
Mon Jan 28 17:38:35 EST 2008


Attached patch disables the handle ledger.  For those not familiar,  
the handle ledger is an in-memory structure that maintains allocated  
handles for a given server.  I'm disabling it because reading the  
entire database each time the server loads is extremely expensive for  
large filesystems.   Instead of choosing a handle from the ledger, the  
patch picks one randomly.  This means we have to deal with collisions  
now, but because of our large handle space, they only occur every 100  
billion times or so.

I didn't blow away the handle allocation code entirely...I just  
disabled the calls that we had been using to invoke the handle ledger,  
and added some functionality that picks a random handle from a given  
range.  In the dspace code, I modified the create function to continue  
up to 32 times if a collision with an already existing handle occurs.

-sam

-------------- next part --------------
A non-text attachment was scrubbed...
Name: random-handle-alloc.patch
Type: application/octet-stream
Size: 18210 bytes
Desc: not available
Url : http://www.beowulf-underground.org/pipermail/pvfs2-developers/attachments/20080128/105bb1c3/random-handle-alloc.obj
-------------- next part --------------



More information about the Pvfs2-developers mailing list