Open Bug 1478732 Opened 7 years ago Updated 1 year ago

Change nsHostResolver to dispatch one resolver task per native lookup

Categories

(Core :: Networking, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: valentin, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file)

No description provided.
Comment on attachment 8995257 [details] Bug 1478732 - Change nsHostResolver to dispatch one resolver task per native lookup Daniel Stenberg [:bagder] has approved the revision. https://phabricator.services.mozilla.com/D2431
Attachment #8995257 - Flags: review+
Pushed by valentin.gosu@gmail.com: https://hg.mozilla.org/integration/autoland/rev/9de74f5039a4 Change nsHostResolver to dispatch one resolver task per native lookup r=bagder
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Reopening based on :mconley's mozregression.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Pushed by nerli@mozilla.com: https://hg.mozilla.org/mozilla-central/rev/937c64cef999 Backed out changeset 9de74f5039a4 r=backout a=backout
Target Milestone: mozilla63 → ---
I ran into the lag issue mentioned above. In case it matters, I have a 2011-era AMD dual-core netbook with about a hundred more tabs open than I should in five windows; even if they're not always active, if you're relying on some kind of background task completing in a timely manner, it might end up queued well after other tasks such as session saving.
Status: REOPENED → RESOLVED
Closed: 7 years ago7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: mozilla63 → ---

We do want to do this eventually, but it requires a bigger refactoring of the entire DNS code to be achievable.

Status: REOPENED → RESOLVED
Closed: 7 years ago4 years ago
Resolution: --- → INACTIVE

Some context:

valentin: there were two issues with the bug. First the patch didn't properly dispatch a task every time it was supposed to, and sometimes DNS lookups would hang. Secondly, the threadpool wasn't exactly great for this, as we want the thread to pick up the request with the highest priority first
jens: Yeah, I assumed there to be some priority handling wanted that you'd need to resemble. Maybe we could have a prioritization wrapper around thread pool with three event queues or some such.

Right now the runnable event's priority can't really be used to express the priority of a DNS requests, especially since it can change while it's waiting in the queue.

Status: RESOLVED → REOPENED
Resolution: INACTIVE → ---

Putting this in the backlog for now.
It would be a nice improvement, but not one that is critical right now.

Assignee: valentin.gosu → nobody
Severity: normal → S3
Status: REOPENED → NEW
Priority: P2 → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: