Open Bug 729165 Opened 10 years ago Updated 2 years ago

Make cache mode SSD-friendly: avoid small writes

Categories

(Core :: Networking: Cache, defect, P5)

defect

Tracking

()

People

(Reporter: bzbarsky, Unassigned)

References

Details

(Whiteboard: [necko-would-take])

See data in bug 727409 comment 0.
Blocks: 727409
Blocks: 478700
See also bug 727409 comment 9.

bug 727409 comment 0 measures the number of application-level writes to files. There is, of course, not a one-to-one correspondence between application-level writes and actual writes to the disk, because operating systems buffer writes. Plus, we never fsync() in the cache, so we leave the OS with plenty of freedom to optimize our writes.

BUT, other parts of Firefox DO fsync their files pretty regularly, and on some filesystems (ext3 on Linux, in particular), those fsyncs have the horrible effect of syncing *all* buffered writes, not just the writes buffered for the file being fsync'd.

See also bug 446876, and especially bug 446876, which discusses a mechanism for buffering writes in memory for a different reason, but which would probably help with any problem that may or not exist here.
OS: Mac OS X → All
Hardware: x86 → All
(In reply to Brian Smith (:bsmith) from comment #1)
> See also bug 446876, and especially bug 446876
You give same bug number twice :)
Depends on: 593198
Whiteboard: [necko-would-take]
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.