projects
/
cumulus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a9add0
)
Try an alternate segment cleaning ordering.
author
Michael Vrable
<mvrable@cs.ucsd.edu>
Thu, 21 Jun 2007 18:02:09 +0000
(11:02 -0700)
committer
Michael Vrable
<mvrable@turin.ucsd.edu>
Thu, 21 Jun 2007 18:02:09 +0000
(11:02 -0700)
This one gives more weight to expiring nearly-empty segments.
schema.sql
patch
|
blob
|
history
diff --git
a/schema.sql
b/schema.sql
index
5017d9b
..
1a7e5ee
100644
(file)
--- a/
schema.sql
+++ b/
schema.sql
@@
-49,7
+49,7
@@
natural join
-- Ranking of segments to be cleaned, using a benefit function of
-- (fraction free space)*(age of youngest object).
-create view cleaning_order as select *, (1-u)*age as benefit from
+create view cleaning_order as select *, (1-u)*age
/(u+0.1)
as benefit from
(select segmentid,
cast(used as real) / size as u, julianday('now') - mtime as age
from segment_info)