MLEngine onnx backends leak memory
Categories
(Core :: Machine Learning: On Device, defect, P2)
Tracking
()
People
(Reporter: vpollet, Assigned: vpollet)
References
Details
(Keywords: perf-alert, Whiteboard: [aiplatform])
Attachments
(2 external files)
Steps to reproduce
Just use the browser. My go-to way to trigger the leak is to alternate between typing in the url bar and sending chat messages. This usage pattern will cycle static embeddings and contextual embeddings on the same simple-text-embedder engine, effectively tearing down and respawning engines on the same process.
Expected behavior
A "floor" exists for memory usage.
Actual behavior
Memory grows seemingly without bounds when engines are cycled.
Potential cause
We seem not to release OrtValues in InferenceSession
| Assignee | ||
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Updated•1 month ago
|
| Assignee | ||
Comment 2•1 month ago
|
||
https://hg.mozilla.org/mozilla-central/rev/385dfa9e0682
https://hg.mozilla.org/mozilla-central/rev/81ab3f523746
Comment 5•19 days ago
|
||
Perfherder has detected a mozperftest performance change from push 81ab3f52374664c20560b90c018569c927ad87e2.
No action is required from the author; this comment is provided for informational purposes only.
| Improvements | Test | Platform | Options | Absolute values [old vs new] |
|---|---|---|---|---|
| 36% | ML Semantic History Search SHORT-SEMANTIC-total-memory-usage-NATIVE | windows11-64-24h2-hw-ref-shippable | 367.71 MB -> 234.42 MB | |
| 36% | ML Semantic History Search SHORT-SEMANTIC-total-memory-usage-NATIVE | windows11-64-24h2-shippable | 367.42 MB -> 234.71 MB | |
| 36% | ML Semantic History Search LONG-MULTIPLE-SEMANTIC-total-memory-usage-NATIVE | windows11-64-24h2-shippable | 368.75 MB -> 235.75 MB | |
| 36% | ML Semantic History Search LONG-MULTIPLE-SEMANTIC-total-memory-usage-NATIVE | windows11-64-24h2-hw-ref-shippable | 369.08 MB -> 236.00 MB | |
| 36% | ML Semantic History Search LONG-SEMANTIC-total-memory-usage-NATIVE | windows11-64-24h2-hw-ref-shippable | 369.42 MB -> 236.33 MB | |
| ... | ... | ... | ... | ... |
| 21% | ML Semantic History Search LONG-SEMANTIC-total-memory-usage-NATIVE | macosx1500-aarch64-shippable | 297.08 MB -> 234.75 MB |
Need Help or Information?
If you have any questions, please reach out to aesanu@mozilla.com. Alternatively, you can find help on Slack by joining #perf-help, and on Matrix you can find help by joining #perftest.
Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.
Updated•13 days ago
|
Updated•5 days ago
|
Description
•