Closed Bug 1594504 Opened 5 years ago Closed 5 years ago

Disk thrashing while browsing

Categories

(Toolkit :: Places, defect, P3)

70 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1138151

People

(Reporter: aros, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0

Steps to reproduce:

Open https://www.techpowerup.com/review/red-dead-redemption-2-benchmark-test-performance-analysis/2.html

Select any screenshot and try clicking right or left.

Actual results:

Here's the disk activity generated for each new screenshot:

profile.default/ MODIFY cookies.sqlite-wal
profile.default/ MODIFY cookies.sqlite-wal
profile.default/ MODIFY cookies.sqlite-wal
profile.default/ MODIFY cookies.sqlite-wal
profile.default/ MODIFY cookies.sqlite-wal
profile.default/ MODIFY places.sqlite-wal
profile.default/ MODIFY places.sqlite-wal
profile.default/ MODIFY places.sqlite-wal
profile.default/ MODIFY places.sqlite-wal
profile.default/ MODIFY places.sqlite-wal
profile.default/ MODIFY places.sqlite-wal
profile.default/ MODIFY places.sqlite-wal
profile.default/ MODIFY places.sqlite-wal
profile.default/ MODIFY places.sqlite-wal
profile.default/ MODIFY places.sqlite-wal
profile.default/ MODIFY places.sqlite-wal
profile.default/ MODIFY places.sqlite-wal
profile.default/ MODIFY favicons.sqlite-wal
profile.default/ MODIFY favicons.sqlite-wal
profile.default/ MODIFY favicons.sqlite-wal
profile.default/ MODIFY favicons.sqlite-wal
profile.default/ MODIFY favicons.sqlite-wal
profile.default/ MODIFY favicons.sqlite-wal
profile.default/ CLOSE_WRITE,CLOSE prefs-2.js
profile.default/ MODIFY prefs-2.js
profile.default/ MODIFY prefs-2.js
profile.default/ MODIFY prefs-2.js
profile.default/ MODIFY prefs-2.js
profile.default/ MODIFY prefs-2.js
profile.default/ MODIFY prefs-2.js
profile.default/ MODIFY prefs-2.js
profile.default/ CLOSE_WRITE,CLOSE prefs-2.js
profile.default/ MOVED_FROM prefs-2.js
profile.default/ MOVED_TO prefs.js
profile.default/weave/changes/ MODIFY history.json.tmp
profile.default/weave/changes/ DELETE history.json
profile.default/weave/changes/ MOVED_FROM history.json.tmp
profile.default/weave/changes/ MOVED_TO history.json
profile.default/weave/changes/ CLOSE_WRITE,CLOSE history.json

A Linux command to see it:

inotifywait -e modify -e attrib -e move -e delete -e close_write -m -r ~/.mozilla

Expected results:

I do understand writes to places.sqlite.

I do not understand why Firefox:

  1. Updates cookies when none are set
  2. Updates favicons when none are being retrieved or saved
  3. Deletes and recreates prefs-2.js
  4. Deletes and recreates some files under /weave/changes/

There's too much activity when I expect at most writes to places.sqlite.

Component: Untriaged → Places
Product: Firefox → Toolkit
Depends on: 1598187

it's very likely the same as bug 1138151, the page generates a bunch of refs, and we don't yet have history flooding prevention on that.

Status: UNCONFIRMED → NEW
Depends on: 1138151
Ever confirmed: true
Keywords: perf
Priority: -- → P3
Whiteboard: [fxperf]
Whiteboard: [fxperf] → [fxperf:p3]

It would be great if there were an option to coalesce disk writes in Firefox and the minimum interval to do that could be changed by the user.

(In reply to Marco Bonardo [:mak] from comment #2)

it's very likely the same as bug 1138151, the page generates a bunch of refs, and we don't yet have history flooding prevention on that.

So let's keep this in one bug.

Status: NEW → RESOLVED
Closed: 5 years ago
No longer depends on: 1138151, 1598187
Keywords: perf
QA Contact: Virtual
Resolution: --- → DUPLICATE
Whiteboard: [fxperf:p3]
You need to log in before you can comment on or make changes to this bug.