“Le9” Strives to Make Linux Usable on Systems with Small Amounts of RAM
phoronix.com
phoronix.com
What does the patch do? According to my very quick read it will lock some pages in the cache. And because they are talking about a swapless system it means it that the system will kill processes earlier because it runs out of memory earlier. Their viewpoint is that killing some process is less damage than have the everything running but thrashing and thereby unusable for the normal user.
That all makes some sense to me. Except that it absolutely does not explain how 37 Firefox tabs, Skype (which is a Chromium) and whatever they list there could suddenly run. The patch does not magically add available memory.
Something does not match in that story.
The patch prevents eviction of file cache from the RAM, which, when using with zram, makes the system very fast when it is swapping. On regular Linux, when the system is low on RAM, file cache is evicted so quickly and is re-read from the (slow) HDD relatively slowly, that's why the software "lags" (it can't reload the code and resources fast enough to stay fully responsive).
However, with this patch file cache stay in RAM until absolutely necessary to evict it. This GREATLY increases system responsiveness. Even on my old PC from 2007 from the article, swapping hundreds of megabytes to zram is almost unnoticeable process with the patch. The software is so responsive like nothing happens.
Without the patch the PC is uncomfortably slow at times. Swapping process is definitely noticeable, the system may become unresponsive for several seconds (even the mouse doesn't move).
The speedup, however, is a bit of side effect of the patch. It was designed to prevent hard thrashing when the system only evicts and reloads data from the disk for indefinite amount of time.
Watch the video in the linked article above. There's also a LiveCD ISO file to try the patch effect without installing the system/the patched kernel.
I have smaller eMMC-based laptops with not much RAM (Don't remember whether 1 or 2 GB) Not in heavy use, but I'll bookmark your reply for testing on one of those. It feels pretty wasteful to use 4 or 8 GB for some basic Web browsing these days. Resource efficiency like American cars from the late 1950s...
I recall having more than 37 Netscape windows open on a system with 64MB, back in the 90s.
Software isn't really that bloated, it's the content.
In the 90s if you had a video on a website it was things like 320x240 at 15fps. If you had a jpeg it was probably 640x480, and there might have been one or two on a page.
If I load https://flickr.com/ it sends down a 2000x1333 background image that is almost 700K. On my dialup connection in the 90s that would have taken almost 5 minutes to load. The image likely takes 5MB of ram (or at least gpu memory?) to display.
Looking at flickr snapshot from 2004, the entire page is 300K.
https://web.archive.org/web/20040701020748/http://flickr.com...
Sure, some JS stuff is bloated, but you can remove all the JS in the world and it won't change the fact that images are 10 times the size that they used to be.
The one thing that likely uses more resources is the per-tab sandboxing browsers do now.
And that was close to paradise, in comparison with the modern web.
> Software isn't really that bloated, it's the content.
It doesn't have to be one or the other, it can be both.
Something tells me that in the future on our personal computers we will be running virtual windowing systems (KDE, GTK, etc), which will make this both better and worse.
That GTK (and firefox) take so much more memory to run still amazes me. If I had the time, I'd love to run an old version of Firefox on a current Linux set up just to see what would happen.
---------
EDIT - I have "GTK" above, because it covers not only Gnome, but also XFCE, etc.
Also, you mentioned the video plugin. I hadn't thought of that one - I wonder how the old video plugin vs "native" video compares (ignoring file formats, probably similar, but the new video formats probably bloat the software significantly due to all the compression).