Closed Bug 571091 Opened 14 years ago Closed 8 years ago

Change smallest disk cache block to 512 bytes

Categories

(Core :: Networking: Cache, enhancement)

enhancement
Not set
normal

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.
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
No, they're not stored compressed.
Some (newer) disks have a 4K sector size. Wouldn't using something smaller than that cause problems on those systems?
(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.
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.
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.