Closed
Bug 916076
Opened 12 years ago
Closed 11 years ago
[OS.File] Add telemetry for jank in OS.File.writeAtomic
Categories
(Toolkit Graveyard :: OS.File, defect)
Toolkit Graveyard
OS.File
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla29
People
(Reporter: Yoric, Assigned: Yoric)
References
Details
(Keywords: main-thread-io, Whiteboard: [Async:team][Snappy][mentor=Yoric][lang=js][good first bug])
Attachments
(2 files, 5 obsolete files)
|
11.07 KB,
patch
|
Yoric
:
review+
|
Details | Diff | Splinter Review |
|
13.83 KB,
patch
|
Yoric
:
review+
|
Details | Diff | Splinter Review |
Calls to OS.File.writeAtomic can cause jank if the data being sent across threads is too large. We need to record Telemetry data on this.
That telemetry data should give us the duration and file name.
(marking this as main-thread-io, although it's thread communication cost rather than disk I/O)
Updated•11 years ago
|
Whiteboard: [Async][Snappy] → [Async:meeting][Snappy]
| Assignee | ||
Updated•11 years ago
|
Whiteboard: [Async:meeting][Snappy] → [Async:ready][Snappy][mentor=Yoric][lang=js][good first bug]
Updated•11 years ago
|
Summary: [OS.File] Telemetry for OS.File.writeAtomic causing jank → [OS.File] Add telemetry for jank in OS.File.writeAtomic
| Assignee | ||
Comment 1•11 years ago
|
||
I'll need the data soon, so grabbing bug.
Assignee: nobody → dteller
| Assignee | ||
Updated•11 years ago
|
Whiteboard: [Async:ready][Snappy][mentor=Yoric][lang=js][good first bug] → [Async:team][Snappy][mentor=Yoric][lang=js][good first bug]
| Assignee | ||
Comment 2•11 years ago
|
||
As it turns out, we have performance issues caused by the time it takes to launch the OS.File worker, so I have taken the opportunity to also add Telemetry on that.
Attachment #8361644 -
Flags: review?(nfroyd)
Comment 3•11 years ago
|
||
Comment on attachment 8361644 [details] [diff] [review]
jank
Review of attachment 8361644 [details] [diff] [review]:
-----------------------------------------------------------------
Can you write a test for this? Maybe just making sure that a) the histograms get populated when you launch a worker and b) that OSFILE_WORKER_READY_MS >= OSFILE_WORKER_LAUNCH_MS?
Attachment #8361644 -
Flags: review?(nfroyd) → review+
| Assignee | ||
Comment 4•11 years ago
|
||
Attachment #8362385 -
Flags: review?(nfroyd)
| Assignee | ||
Comment 5•11 years ago
|
||
Same code, just changed the commit message.
Attachment #8361644 -
Attachment is obsolete: true
Attachment #8362442 -
Flags: review+
Comment 6•11 years ago
|
||
Comment on attachment 8362385 [details] [diff] [review]
Companion tests
Review of attachment 8362385 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/components/osfile/tests/xpcshell/test_telemetry.js
@@ +43,5 @@
> + do_check_eq(getCount(after[LAUNCH]), getCount(before[LAUNCH]) + 1);
> + do_check_eq(getCount(after[READY]), getCount(before[READY]) + 1);
> +
> + do_print("Ensuring that ready > launch");
> + do_check_true(after[LAUNCH].sum <= after[READY].sum);
Nit: Please make the order and logic of the informative output match the order and logic of the check statement.
Attachment #8362385 -
Flags: review?(nfroyd) → review+
| Assignee | ||
Comment 7•11 years ago
|
||
Trivial fix
Attachment #8362442 -
Attachment is obsolete: true
Attachment #8362551 -
Flags: review+
| Assignee | ||
Comment 8•11 years ago
|
||
Applied feedback. I took the opportunity to move a test from mochi/ to xpcshell/ as I had to debug it due to a typo. Self-reviewing, since it's just a move.
Attachment #8362385 -
Attachment is obsolete: true
Attachment #8362554 -
Flags: review+
| Assignee | ||
Comment 9•11 years ago
|
||
| Assignee | ||
Comment 10•11 years ago
|
||
Should work better if I don't forget one file.
Try: https://tbpl.mozilla.org/?tree=Try&rev=a97447fb87c1
Attachment #8362554 -
Attachment is obsolete: true
Attachment #8362898 -
Flags: review+
| Assignee | ||
Comment 11•11 years ago
|
||
Fixed another typo.
Try: https://tbpl.mozilla.org/?tree=Try&rev=6bcdeebfe326
Attachment #8362551 -
Attachment is obsolete: true
Attachment #8363738 -
Flags: review+
| Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 12•11 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/701ba4d78a3b
https://hg.mozilla.org/integration/fx-team/rev/d16ca3af1e22
Flags: in-testsuite+
Keywords: checkin-needed
Whiteboard: [Async:team][Snappy][mentor=Yoric][lang=js][good first bug] → [Async:team][Snappy][mentor=Yoric][lang=js][good first bug][fixed-in-fx-team]
Comment 13•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/701ba4d78a3b
https://hg.mozilla.org/mozilla-central/rev/d16ca3af1e22
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [Async:team][Snappy][mentor=Yoric][lang=js][good first bug][fixed-in-fx-team] → [Async:team][Snappy][mentor=Yoric][lang=js][good first bug]
Target Milestone: --- → mozilla29
| Assignee | ||
Comment 14•11 years ago
|
||
According to http://telemetry.mozilla.org/#nightly/32/OSFILE_WRITEATOMIC_JANK_MS, jank is quite reasonable.
Updated•2 years ago
|
Product: Toolkit → Toolkit Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•