flok99

Untitled

Feb 26th, 2013
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. - replacing & delete old hash & new hash
  2. - get current hash H1 for this sector number
  3. - get number of references to this hash C1
  4. - delete hash H1/data pair
  5. - delete usage counter C1
  6. - get number of references to the new hash C2
  7. - store hash H2 /data pair
  8. - set new usage count C2
  9. = 3 x read, 2 x delete, 3 x write
  10. => 8 IOs
  11.  
  12. - replacing & delete old hash & existing hash
  13. - get current hash H1 for this sector number
  14. - get number of references to this hash C1
  15. - delete hash H1/data pair
  16. - delete usage counter C1
  17. - get number of references to the new hash C2
  18. - set new usage count C2
  19. = 3 x read, 2 x delete, 1 x write
  20. => 6 IOs
  21.  
  22. - replacing & keep old hash & new hash
  23. - get current hash H1 for this sector number
  24. - get number of references to this hash C1
  25. - set new usage count C1
  26. - get number of references to the new hash C2
  27. - store hash H2 /data pair
  28. - set new usage count C2
  29. = 3 x read, 3 x write
  30. => 6 IOs
  31.  
  32. - replacing & keep old hash & existing hash
  33. - get current hash H1 for this sector number
  34. - get number of references to this hash C1
  35. - set new usage count C1
  36. - get number of references to the new hash C2
  37. - store hash H2 /data pair
  38. - set new usage count C2
  39. - get number of references to the new hash C2
  40. - set new usage count C2
  41. = 4 x read, 4 x write
  42. => 8 IOs
Advertisement
Add Comment
Please, Sign In to add comment