Closed
Bug 571091
Opened 14 years ago
Closed 8 years ago
Change smallest disk cache block to 512 bytes
Categories
(Core :: Networking: Cache, enhancement)
Core
Networking: Cache
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: schapel, Unassigned)
References
(Blocks 1 open bug)
Details
According to bug 569709 comment 18, the average disk cache block holds significantly less than 1 KB of data. Changing the smallest disk cache block size from 1 KB to 512 bytes should save disk space wasted.
Comment 1•14 years ago
|
||
Obviously we'll need to measure performance as well. I *believe* (I really should know this--Michal?) that cache items are not stored compressed. If not, we should file a bug to explore doing that, and that would presumably reduce the average cache block size further, and also alter performance.
Blocks: http_cache
Comment 2•14 years ago
|
||
No, they're not stored compressed.
Comment 3•14 years ago
|
||
Some (newer) disks have a 4K sector size. Wouldn't using something smaller than that cause problems on those systems?
Comment 4•14 years ago
|
||
(In reply to comment #1) > I *believe* (I really should know this--Michal?) that cache items are not > stored compressed. We are not compressing them. But if we receive them as e.g. Content-Encoding: gzip they are compressed.
Comment 5•11 years ago
|
||
I believe compression can be specially useful on Android, where the cache is stored in slow Flash memory. But it is a separate issue from this one, and should have its own bug.
Comment 6•8 years ago
|
||
whole new cache code
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•