Originally posted by intelfx
View Post
Announcement
Collapse
No announcement yet.
"le9" Strives To Make Linux Very Usable On Systems With Small Amounts Of RAM
Collapse
X
-
Originally posted by HyperDrive View PostUnrelated, swappiness and page-cluster, really? From the documentation I've read, they couldn't be more related…
Even if it is possible to monkey around with them until the system behavior resembles something you want, it's basically a coincidence.
- Likes 4
Comment
-
Originally posted by ezst036 View Post
There are corporations out there in their 2-3 year refresh cycles beginning to throw computers out to e-waste with 16-32 GB of memory in them.
Its crazy.
And Windows 11 is going to (at least in the current generation of hardware now existing) accelerate this rush to new hardware with a large amount of machines that will go out to e-waste and not be used despite having plenty of usable life left in them. These are not sluggish nor ancient machines.
Second, the thing is they don't threw them out, but sell those machines for companies that refurbish them en-masse for reselling. See all those sellers in Ebay with hundreds of used enterprise machines to sell? Those things only go to the trash once in the hand of lazy domestic owners, many years past the prime of those machines.
- Likes 5
Comment
-
Originally posted by HyperDrive View PostSo you hit a VM corner case which manifests itself when there's no swap. I use swap on zram on all of my systems (no swap to rust/SSD, ever, even on machines with less than 2 GiB or RAM) and I've never, ever, seen the issue you describe in that email (I've seen oom kills, but hey, resources aren't infinite). To me, the solution is obvious: enable swap. No need to hack the kernel until a proper solution is found.
In fact, when the swap is exhausted, the same problem will appear: the file cache will also be exhausted, and you will get thrashing.
- Likes 4
Comment
-
Originally posted by hakavlad View Postle9 maintainer here, ask any questions.
It was obviously something silly made for fun some time age so can't tell what it was doing exactly, but I believe I tried to make a script to compare speed of some operations after I bought a new CPU. I was really surprised how easy it is to jam the Linux kernel completely with just few lines of code. I was expecting such process to be killed, but I probably missed some configuration as it was pretty clean installation of Arch. I can't remember which kernel version it was, but 5.x for sure.
Do you think that the kernel with your patches (with no extra security or tweaks) would be better prepared to handle cases like that? Or could you elaborate on what was going on? (at least by suspecting based on my poor description)
- Likes 6
Comment
-
Originally posted by HyperDrive View PostSo you hit a VM corner case which manifests itself when there's no swap. I use swap on zram on all of my systems (no swap to rust/SSD, ever, even on machines with less than 2 GiB or RAM) and I've never, ever, seen the issue you describe in that email (I've seen oom kills, but hey, resources aren't infinite). To me, the solution is obvious: enable swap. No need to hack the kernel until a proper solution is found.
The problem is the depletion of the file cache. Protecting cache is proper solution.
- Likes 8
Comment
-
Originally posted by HyperDrive View PostIt controls swap read-ahead exclusively, not any other type of read-ahead. It's quite explicit in the documentation I linked.
Maybe you will be able to delay the onset of thrashing (but not eliminate it) at the cost of disabling swap readahead system-wide, which is completely uncalled for. Hence "irrelevant knobs with wide effect".
- Likes 5
Comment
-
Originally posted by hakavlad View Postle9 maintainer here, ask any questions.
Unfortunately, although I depend on Linux for everything, I'm too busy and still too technically limited after all these years to roll my own kernel with patches. (I run openSUSE). So, what can be done to help you get this mainline'd ASAP?
Cheers!
- Likes 10
Comment
-
Originally posted by bple2137 View Post
I remember writing something dumb in Python. I was using multiple threads and appending some computed values to a list. The code should clean old values up, but by mistake it wasn't or it wasn't doing that quickly enough to make some free space. The result was, my 16G machine went out of RAM in seconds and became completely frozen. HDD led was constantly on like it was trying to utilize swap like crazy. Apart from that, no reaction for any sort of input. It was reproducible every time.
It was obviously something silly made for fun some time age so can't tell what it was doing exactly, but I believe I tried to make a script to compare speed of some operations after I bought a new CPU. I was really surprised how easy it is to jam the Linux kernel completely with just few lines of code. I was expecting such process to be killed, but I probably missed some configuration as it was pretty clean installation of Arch. I can't remember which kernel version it was, but 5.x for sure.
Do you think that the kernel with your patches (with no extra security or tweaks) would be better prepared to handle cases like that? Or could you elaborate on what was going on? (at least by suspecting based on my poor description)
Just watch this video https://youtu.be/1uhcZwuvXLI
8 threads with python (extending lists by adding random.random(), playing supertux), no hang.
nohang in background just detect OOM, not kills anything (kernel OOMk kills processess fastly).
- Likes 8
Comment
Comment