On 25/03/2021 08.23, Per Jessen wrote:
Carlos E. R. wrote:
On 24/03/2021 19.05, Per Jessen wrote:
Per Jessen wrote:
Per Jessen wrote:
Carlos E. R. wrote:
See that process using 0,010t of resident memory? I've never seen the word "teras" of ram used for a single process... :-o
I have occasionally seen some crazy numbers in top, no relation to reality.
I have another tab that Firefox about:performance says it is using 2.33GB of ram. A train information page:
<https://www.thetrainline.com/en/train-times/seville-to-berlin>
I have just loaded it, 28Mb.
And now, approx 90mins later, it has grown to 39Mb.
approx 19:00, 100Mb+.
I don't think the pages "are designed to eat so many resources", it looks more like a memory leak to me. javascript?
Aha, so it grows. Mine was sitting for days, so it grew a lot.
The same page, now 258Mb. It must be a memory leak.
Yes, most pages use scripting of some sort nowdays. I don't know exactly how to find out.
If you want to know, just look at the HTML code - look for <script> tags, and/or meta links to .js files or type="text/javascript".
Ah. And I see also "<script>" For example, it contains this right at the start: «<script> if("PerformancePaintTiming" in window){var observer=new PerformanceObserver(function(r){var e=!0,n=!1,t=void 0;try{for(var a,i=r.getEntries()[Symbol.iterator]();!(e=(a=i.next()).done);e=!0){var o=a.value;"first-contentful-paint"===o.name&&(window.fcp=Math.round(o.startTime+o.duration))}}catch(r){n=!0,t=r}finally{try{e||null==i.return||i.return()}finally{if(n)throw t}}});observer.observe({entryTypes:["paint"]})} !function(){if("PerformanceLongTaskTiming" in window){var g=window.__tti={e:[]}; g.o=new PerformanceObserver(function(l){g.e=g.e.concat(l.getEntries())}); g.o.observe({entryTypes:["longtask"]})}}(); </script>» or this: «<script src="https://cdn.speedcurve.com/js/lux.js?id=401238997" async defer crossorigin="anonymous"></script>»
Nice useful thing, that about:performance, I didn't know that one. Not sure if the "Energy Impact" column is very useful, maybe "elapse time" would be better :-)
"energy" may be interesting for devices on battery, either laptops or phones. I take it as rough equivalent to CPU. Sorting by the memory indicator shows amazing things, like pages eating a gigabyte. -- Cheers / Saludos, Carlos E. R. (from 15.2 x86_64 at Telcontar)