by codedokode · 3y ago · 0 comments
So I would rather choose a browser with 2x-3x lower benchmark performance if it could consume 2x-3x less memory. Firefox is basically unusable on a 2Gb system as long as you useit more than 15 minutes.
One of the solutions could be to freeze and compress background tabs. There is no need to keep in memory HTTP caches, localstorage, heavy JIT caches, CSS selector dependency trees, JS bytecode, DOM nodes without JS expandos attached. Freezing background tabs also allows to save energy.
> Firefox is basically unusable on a 2Gb system <...>
I just had a look at one of the largest laptop retailers in the UK, and they don't sell laptops with less than 4GB anymore. Checking the steam survey [0] (which is biased towards gamers but still a very representative sample of PC owners and users), almost 95% of people have more than 4GB. Realistically, 2GB and even 4GB devices are at the absolute bottom end of devices that are in use in desktop computing.
Mobile is a different beast, but android has a specific lightweight OS for 2GB devices, and 4GB devices are budget at this stage. 6GB is the requirement for full-fat android. [1]
You may or may not agree that it's necessary, but the reality is that 2GB device are bordering on obsolete in 2022.
> One of the solutions could be to freeze and compress background tabs.
Firefox supports this already [2]
[0] https://store.steampowered.com/hwsurvey/Steam-Hardware-Softw...
[1] https://www.xda-developers.com/android-12-performance-class/
[2] https://support.mozilla.org/en-US/kb/unload-inactive-tabs-sa...
<4GB devices are ~10.6% of the mix. 4GB are 20.8%.
Sure, I didn't play games on it. But for regular "office use" I never had any performance issue.
For my current laptop, I specifically wanted a model without a dedicated GPU. Didn't want the hassle of dealing with that (I run Linux) and also there was no reason for me to pay extra for something I don't need. It was cheaper for me to buy a dedicated GPU for my desktop.
Many people still buy those absolute bottom end of devices.
Why does my Macbook Air which cost me A$1,499(!) have soldered, unupgradable RAM?
I can SMD solder but it's still far too risky just to save a few hundred dollars
But of course there are cheaper laptops with 4Gb RAM, so this one seems more like an exception. There are even tablets that cost less and have 12 Gb of RAM, although they are sold by suspicious sellers from China.
That's Bay Trail Atom. Launch date: Q1'14, two years after the platform launch, two years before the platform sees the latest release.
Or this is old new stock (of Bay Trail Atoms?) of something completely insane. Come on, 8 years! I had Acer W4-821 tablet with similar CPU in 2014! And was quite hampered by an upgrade to Win10, though I managed to run Virtual Box with CentOS on it to live test some code.
https://ark.intel.com/content/www/us/en/ark/products/80274/i...
There's absolutely no point in buying new cheap laptops these days.., Big businesses are always getting rid of 5 year old laptops because their 5-year warranty expired, and the prices get low because they're old, but those 5 year old laptops are comparable to 1 year old laptops these days, cause in 2017-2021 there has been 0 improvements in the laptop world...
I wanted to replace my top of the line 2017 Dell XPS 9560 in 2021 after 4 years of use and literally didn't find any laptop that was noticeably better to justify paying for it....
Having two laptops is twice better than having just one, so I decided to continue using it. Maybe I will connect it as a virtual monitor for a second laptop (then 2 Gb should be enough), but I am not sure if Wayland supports this.
Also, even if new laptos have 4+ Gb of RAM, there are still 5-10 years old models in use.
Can you please point out which laptop in 2022 is being sold with 2GB of ram limitation? Really curious.
The smallest I could find for sale in my country is 4GB and I had to look really hard as they're not cheaper than buying something with 8GB of ram or they're just ARM Chromebooks.
Even most budget chinese Android phones rarely ship with less than 4GB of RAM anymore. So you made me very curious about 2GB laptops retailing in 2022.
Edit: wow, why the downvotes guys? Is it against the rules to aske questions?
Limiting RAM has become a silly market segmentation tactic, and I’d say there is absolutely no reason to buy a PC with less than 16 GB of RAM these days. It’s downright stupid you can still buy machines with 6 GB. Better to buy several generations down or used—old CPUs are still perfectly serviceable unless you’re planning to submit to some serious C++/Rust compiler punishment. (Says the person with an 8GB dual-core Haswell that is showing definite signs of obsolescence, but I still stand by my words.)
Also, even 15-year old CPUs are still pretty fast and can do billions arithmetic operations per second. Only because Intel decided not to add several more address lines which cost them basically nothing, these machines have to be thrown away.
You know, people don't have unlimited money.
Of course. I mean that as far as I can see one should normally save on just about everything else, including going back multiple CPU generations (let alone giving up on a discrete GPU) and buying a used laptop instead of a new one (in case it’s a laptop), before opting for less RAM. (I’m not including Chromebooks in this calculation, as those have never been available to me.)
if it's not upgradable then it's up to the user to determine if it's worth it to replace the whole laptop, but if it has 4GB of RAM its other specs are probably gonna be outdated as well and you can buy very good refurbished laptops for under 300€ these days...
Source: did just that on a daily basis on my recently replaced 10 year old laptop. I probably would have even been able to handle 2Gb assuming Firefox was the only application running.
Huh? When the system is getting close to running out of memory, isn't the least-recently-used memory swapped out to disk by the OS? And if you're using an SSD like nearly everyone these days, it isn't even noticeable.
Freezing tabs is a good idea to ensure the memory stops being accessed precisely so it can be swapped... but besides this, why not let the browser use all the memory it needs, and just let swap do its job? It seems entirely redundant for a browser to try to save memory by essentially implementing its own secondary swap strategy.
After all least-recently used memory is swapped out, the time comes to swap out recently used memory and it becomes noticeable, especially with a spinning disk with 400Kb/sec random write speed.
Swapping is extremely ineffective. Unloading a tab allows to use sequential write which is orders faster than random write even with SSD.
For keeping things open in the background that aren't being actively used, swapping is extremely effective.
I don't see any good reason why background applications should get swapped out by the OS, but background tabs should be handled by a different mechanism.
(And I have no idea what sequential write has to do with anything...? If you're talking about coming back to an old tab, loading it from swap will nearly always be faster than reloading over the internet, no?)
For HDD, sequential write speed can be 50 Mb/s and random write speed for 4Kb chunks can be as low as 400 Kb/s. For SSD, there is also a difference in speed on order of 50x.
Swapping uses 4Kb chunks and therefore uses the drive in the most inefficient mode. Alternative mechanism can employ faster and effective sequential access.
FF can do it, but it only triggers in low ram situations and detection is wonky, disabled on Linux.
I found the auto tab discard addon [0] to be a game changer on my low ram machine. It just works (though not on mobile).
[0] https://addons.mozilla.org/en-US/firefox/addon/auto-tab-disc...
I would much rather incur a swap load time than a page refresh.
Seems like a reasonable bar to test against. 2GB even a decade ago was very low end.