Start-up speed slow caused by local network (wireless router)
Categories
(Toolkit :: Startup and Profile System, defect, P3)
Tracking
()
People
(Reporter: i, Unassigned)
References
Details
Attachments
(1 file, 1 obsolete file)
|
119.28 KB,
image/png
|
Details |
Comment 1•9 years ago
|
||
Comment 3•9 years ago
|
||
Comment 4•9 years ago
|
||
Comment 7•9 years ago
|
||
| Reporter | ||
Comment 10•9 years ago
|
||
Comment 11•9 years ago
|
||
Comment 12•9 years ago
|
||
Comment 13•9 years ago
|
||
Updated•9 years ago
|
| Reporter | ||
Comment 14•9 years ago
|
||
Comment 15•9 years ago
|
||
Comment 16•9 years ago
|
||
| Reporter | ||
Comment 17•9 years ago
|
||
Comment 18•9 years ago
|
||
Comment 19•9 years ago
|
||
Comment 20•9 years ago
|
||
| Reporter | ||
Comment 21•9 years ago
|
||
Comment 22•9 years ago
|
||
| Reporter | ||
Comment 23•9 years ago
|
||
Comment 24•9 years ago
|
||
Updated•9 years ago
|
| Reporter | ||
Comment 25•9 years ago
|
||
Comment 26•9 years ago
|
||
| Reporter | ||
Comment 27•9 years ago
|
||
Comment 28•9 years ago
|
||
| Reporter | ||
Comment 29•9 years ago
|
||
| Reporter | ||
Comment 30•9 years ago
|
||
Comment 31•9 years ago
|
||
Comment 32•9 years ago
|
||
Comment 33•9 years ago
|
||
Comment 34•9 years ago
|
||
Comment 36•9 years ago
|
||
| Reporter | ||
Comment 37•9 years ago
|
||
Comment 38•9 years ago
|
||
| Reporter | ||
Comment 39•5 years ago
|
||
What can we do to move forward? I can still reproduce this issue in Firefox 72 on openSUSE Tumbleweed.
Updated•3 years ago
|
Comment 40•1 year ago
|
||
(In reply to Tooru Fujisawa [:arai] from comment #31)
so far I see only one call for gethostbyname with hostname here, on main
thread, before opening windowhttps://dxr.mozilla.org/mozilla-release/rev/
440936afbdbcc443de50100956a446f7702f118d/toolkit/profile/nsProfileLock.
cpp#346-355char hostname[256]; PRStatus status = PR_GetSystemInfo(PR_SI_HOSTNAME, hostname, sizeof hostname); if (status == PR_SUCCESS) { char netdbbuf[PR_NETDB_BUF_SIZE]; PRHostEnt hostent; status = PR_GetHostByName(hostname, netdbbuf, sizeof netdbbuf, &hostent); if (status == PR_SUCCESS) memcpy(&inaddr, hostent.h_addr, sizeof inaddr); }
The problem still exists in latest Firefox.
And this code is still here.
https://searchfox.org/mozilla-central/rev/f8904f7f9bade1ea9df219e3208b07dd9473792d/toolkit/profile/nsProfileLock.cpp#320-332
I have a question: since we use IP address at the end, why we prefer hostname to localhost to resolve the IP address?
(In reply to Benjamin Smedberg from comment #36)
It's also a little strange: this codepath should only be hit if the normal
locking method (using LockWithFcntl) fails. Is your profile mounted on a
filesystem (NFS?) that doesn't support fcntl/flock?
I don't check the code 8 years ago. But in current code, LockWithSymlock() will also be executed if LockWithFcntl() succeed. Because there may be a symlink style lock although the Firefox acquire a fcntl lock successfully.
Description
•