The current thinking would be a smaller limit per page (i.e. includes all iframes and external scripts), say around 16 workers. Then a global limit for all loaded pages, say around 64 or 128. The benefit of two limits is to reduce the chance of pages behaving differently depending on what other sites are currently loaded.<div>
<br></div><div>We plan on increasing these limits by a fair amount once we are able to run multiple JS threads in a process. It's just that even when we do that, we'll still want to have some limits, and we wanted to use the same approach now.<br>
<br><div class="gmail_quote">On Wed, Jun 10, 2009 at 2:56 PM, Robert O'Callahan <span dir="ltr"><<a href="mailto:robert@ocallahan.org">robert@ocallahan.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Thu, Jun 11, 2009 at 5:24 AM, Drew Wilson <span dir="ltr"><<a href="mailto:atwilson@google.com" target="_blank">atwilson@google.com</a>></span> wrote:<br></div><div class="gmail_quote"><div class="im">
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div>That's a great approach. Is the pool of OS threads per-domain, or per browser instance (i.e. can a domain DoS the workers of other domains by firing off several infinite-loop workers)? Seems like having a per-domain thread pool is an ideal solution to this problem.</div>
</blockquote></div><div> <br>You probably still want a global limit, or else malicious sites can DoS your entire OS by spawning workers in many synthetic domains. Making the limit per-eTLD instead of per-domain would help a bit, but maybe not very much. Same goes for other kinds of resources; there's no really perfect solution to DoS attacks against browsers, AFAICT.<br>
<br></div></div>Rob<br><font color="#888888">-- <br>"He was pierced for our transgressions, he was crushed for our iniquities; the punishment that brought us peace was upon him, and by his wounds we are healed. We all, like sheep, have gone astray, each of us has turned to his own way; and the LORD has laid on him the iniquity of us all." [Isaiah 53:5-6]<br>
</font></blockquote></div><br></div>