Closed Bug 599065 Opened 14 years ago Closed 9 years ago

continuous fallocate for individual cache files >1MB

Categories

(Core :: Networking: Cache, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: jduell.mcbugs, Unassigned)

References

(Blocks 1 open bug)

Details

So in bug 592422 we started fallocating individual cache files (not _CACHE_00x) up to 1 MB. For files larger than that, we don't want to fallocate the whole size right away (in case they wind up failing to download completely, and/or for possible perf reasons on older filesystems). But we could keep track of the bytes written and fallocate(MIN(remaining, 1 MB)) as we exceed previously fallocated space, so larger files are less fragmented.
new cache code
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
So does the new cache have this feature?
No, but we write the data in 256kB chunks, so the files should be much less fragmented than in the old cache. Not sure if fallocation would bring a performance gain.
You need to log in before you can comment on or make changes to this bug.