Closed Bug 1194761 Opened 10 years ago Closed 8 years ago

PCookieService should probably not use sync messages

Categories

(Core :: DOM: Content Processes, defect, P4)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1331680
Tracking Status
e10s + ---

People

(Reporter: mconley, Assigned: gkrizsanits)

References

(Blocks 1 open bug)

Details

tracking-e10s: --- → ?
Assignee: nobody → mrbkap
Priority: -- → P1
I guess it has to be sync message as the content is accessing |document.cookie|. The best thing we can do is probably bug 1232638.
As far as I know all the database related work and the rest we're waiting for here was done on the main thread with e10s off. Which means I would expect the same amount of time spent in the cookie getter methods blocking everything else as we do now in __psynch_cvwait. The chrome side of these hangs turned out not to be too significant, I wonder if we should really worry about the content process part of the hang. I would expect these two to be close to equal. Is there an STR to reproduce your experiment? Or could you also do a profiling for the non-e10s case?
Flags: needinfo?(mconley)
Assignee: mrbkap → gkrizsanits
(In reply to Gabor Krizsanits [:krizsa :gabor] from comment #2) > As far as I know all the database related work and the rest we're waiting > for here was done on the main thread with e10s off. Which means I would > expect the same amount of time spent in the cookie getter methods blocking > everything else as we do now in __psynch_cvwait. The chrome side of these > hangs turned out not to be too significant, I wonder if we should really > worry about the content process part of the hang. I would expect these two > to be close to equal. Is there an STR to reproduce your experiment? Or could > you also do a profiling for the non-e10s case? I gathered this profile after experiencing a spinner while switching tabs, and it happened to point the finger at Workday, which I must have had open in one of my tabs. I don't know how frequently Workday queries the cookie database - but it looks like, at least back when I gathered the profile, it did it off some kind of timer. I don't know how frequently that timer runs. I just opened Workday and sat there for a while and then attempted to gather a profile, and I didn't see anything. :/ So I don't think I have reliable STR here - although perhaps we could instrument setTimeout to figure out when Workday sets timeouts to fire for, and then try to manually trigger it somehow? I don't know - that might be a long-shot. The fact that Workday's source code is obfuscated really doesn't help. Sorry I can't be more helpful here.
Flags: needinfo?(mconley)
(In reply to Mike Conley (:mconley) - Needinfo me! from comment #3) > So I don't think I have reliable STR here I tried to reproduce it but all the times I catch a hang or just capture some cookie related messaging it seems quite insignificant: https://cleopatra.io/#report=944153f2654867537c7c9d3bbc9848d88afde36c&jankOnly=true&invertCallback=true&selection=%22(total)%22,1552 https://cleopatra.io/#report=ac8fdeb129cf6b6a1a7efa1573d70280e87a2aef&jankOnly=true&invertCallback=true&selection=%22(total)%22,2638,2637,2636,4560,4559,4558,4557,4556,53,52,51,33,32,39,38,37,33,32,50,4192,7361,6097,4184,42,41,35,34,33,32,31,30,29,28,56,6096,6095,6094,6093,6092,6091,6090,6089,6088,6087,6086,6588,6587,4294,4293,4292,4291,4290,4285,4289 Even if they were significant I don't see how would it be a lot better without e10s. I think the only problem that can happen and what you witnessed is this: there is a chrome process hang for some reason (unrelated), and content process tries to get cookies and start to hang too. I think in that case the chrome process hang is to be fixed, and the side effect to hang the content process (rarely) as well is less important. I don't see any reason to keep this P1, what do you think Mike?
Flags: needinfo?(mconley)
(In reply to Gabor Krizsanits [:krizsa :gabor] from comment #4) > (In reply to Mike Conley (:mconley) - Needinfo me! from comment #3) > > So I don't think I have reliable STR here > > I tried to reproduce it but all the times I catch a hang or just capture > some cookie related messaging it seems quite insignificant: > > https://cleopatra.io/ > #report=944153f2654867537c7c9d3bbc9848d88afde36c&jankOnly=true&invertCallback > =true&selection=%22(total)%22,1552 > > https://cleopatra.io/ > #report=ac8fdeb129cf6b6a1a7efa1573d70280e87a2aef&jankOnly=true&invertCallback > =true&selection=%22(total)%22,2638,2637,2636,4560,4559,4558,4557,4556,53,52, > 51,33,32,39,38,37,33,32,50,4192,7361,6097,4184,42,41,35,34,33,32,31,30,29,28, > 56,6096,6095,6094,6093,6092,6091,6090,6089,6088,6087,6086,6588,6587,4294, > 4293,4292,4291,4290,4285,4289 > > Even if they were significant I don't see how would it be a lot better > without e10s. I think the only problem that can happen and what you > witnessed is this: there is a chrome process hang for some reason > (unrelated), and content process tries to get cookies and start to hang too. > I think in that case the chrome process hang is to be fixed, and the side > effect to hang the content process (rarely) as well is less important. I > don't see any reason to keep this P1, what do you think Mike? That sounds reasonable.
Flags: needinfo?(mconley)
After talking about this and the other PCookieService related bug with many people and we all agreed that this issue is not important for now I'm setting its priority back.
Priority: P1 → P4
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.