3 ms·
Are there any compute/memory resource quotas? It's quite easy to almost lock up a computer by doing high intensity GPU work.
by dist-epoch 4y ago
Are there any compute/memory resource quotas?
It's quite easy to almost lock up a computer by doing high intensity GPU work.
- hkwerf 4y agoThat's probably already possible with just a huge HTML page? At least on my system, if I create such a page and open it via a file:// URL, firefox will happily gobble up memory.
- hkwerf 4y agoUhhh... and at some point it segfaults if I try to load 5 GB of HTML? [ 7527.750745] HTML5 Parser[14186]: segfault at 0 ip 0000556be8b79cef sp 00007fbdb1570420 error 6 in firefox[556be8b77000+9c000]
- SpaghettiCthulu 4y agoThat's definitely a bug. Have you reported it?
- hkwerf 4y agoI tried. I'd need a github account. I don't want to have a github account.
- develatio 4y agoThis is the case with AWS's Go SDK for EC2: https://docs.aws.amazon.com/sdk-for-go/api/service/ec2/ https://docs.aws.amazon.com/sdk-for-go/api/service/ec2/ No matter what PC I use, I can't open that website...
- jeroenhd 4y agoI don't know who would make such a monstrous HTML page UT I'm pleasantly surprised that once it loaded my phone can interact with it just fine. Someone should probably tell Amazon that hyperlinks allow linking to other HTML documents, though, because that's a ridiculously long page.
- 123pie123 4y agoMy PC hangs for some time as well I thought FF should not allow that to happen?
- satao 4y agoholy crap this document is awful, crashed my browser
- red_trumpet 4y agoWorks nicely on my Firefox (Kubuntu 22.04), but Chromium is troubled. Doesn't scroll smoothly...
- pjmlp 4y agoFF on Windows 11, no problem.
- SpaghettiCthulu 4y agoWorks perfectly fine on Firefox for Android. I'm able to scroll and view everything even before the styling has finished loading.
- heinrich5991 4y agoFirefox seems to fare okay on that website. Chrome usually struggles more with huge websites IME.
- mrguyorama 4y agoFirefox on a garbage macbook: Site loads in a few seconds and causes no problems. It's just a bunch of text and hyperlinks, why would that be a problem?
- BlueTemplar 4y agoIt opened (after a while) on mobile Firefox on a Galaxy S7...
- jsheard 4y agoIt's the usual story with web APIs, the implementation probably has resource quotas to keep applications from accidentally or deliberately doing denial of service, but you the developer targeting that implementation aren't allowed to know what the quotas are. You just have to make an educated guess at how much you can get away with and hope for the best. WebAssembly has a similar issue where consuming too much memory will get your app killed, but there's no reliable way to know how much is "too much" until it's too late to recover.
- ben-schaaf 4y agoThere are some limits you can query from the adapter: https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits https://developer.mozilla.org/en-US/docs/Web/API/GPUSupporte...
- jsheard 4y agoThose limits only tell you how big each individual GPU allocation can be, not how much you can allocate total before the browser puts a bullet in your context.
- codedokode 4y agoBased on previous experience I assume there are no quotas and the webpage can hang your system. I had Google Street View hang a whole Linux system by using too much memory and Firefox did nothing to prevent this.
- BlueTemplar 4y agoWhat if you are using it in a native app rather than a browser/Electron ?