ZenStates-Linux
le9-patch
ZenStates-Linux | le9-patch | |
---|---|---|
14 | 18 | |
488 | 182 | |
- | - | |
0.0 | 1.8 | |
almost 4 years ago | 11 months ago | |
Python | Python | |
MIT License | Creative Commons Zero v1.0 Universal |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ZenStates-Linux
-
[HELP] GMK K4 Random Reboot (Ubuntu)
You can also use: https://github.com/r4m0n/ZenStates-Linux/tree/master
-
EPYC 7002 CPUs may hang after 1042 days of uptime
https://github.com/r4m0n/ZenStates-Linux/blob/master/zenstat...
Not sure if this is applicable to EPYC CPUs, probably not. But I would expect that it's possible to disable C6 in some similar way on EPYC CPUs without rebooting the system. (If you are actually at risk of running into this issue, you likely don't want to reboot the system…)
-
Well, it's finally happened to me. Windows update has overwritten my Linux UEFI entry, and now I get to fix it!
I tried everything you've mentioned but finally fixed the issue on my 1300 using python zenstates. I had it run on boot with this systemd service: ``` [Unit] Description=Disable C6 state on ryzen processor to fix idle freezing
-
an AMD Ryzen 5700G system keeps freezing around every other day — disabling 'C-state control' option in BIOS hasn't resolved the issue, 'typical current idle' isn't available
The freezing has only occurred when idle so far: when the monitor returns from sleep, no signal is returned. A related bug report references this Python script several times in the comments, and there's also another for Go. No commits in several years, sudo is obviously required and I don't know if they can be considered as safe.
-
System freezes every other day.
Note: I merely added the systemd script (IIRC by reusing some forum messages while digging my crashes) + the debian packaging. That's not my script :), credit for this script goes to https://github.com/r4m0n/ZenStates-Linux
-
Debian 11 constant freezing after UEFI install
I fixed this by toggling some power management option (can't remember which one, deep in a submenu) in UEFI, then checking with https://github.com/r4m0n/ZenStates-Linux. It must return C6 disabled for package, enabled for cores. Ryzen 5 1600
-
For people running 5900X/5950X on Linux, increase your SOC voltage by 0.05 if your system is crashing
Also try disabling C6 sleep with zenstates
-
AMD CPU undervolt finally possible with this new P State driver ?
You can undervolt by manipulating the VIDs with zenstates https://github.com/r4m0n/ZenStates-Linux
-
not even sure what i did this time(information in comments)
It's the Ryzen bug. You need to disable your C6 cpu state (https://github.com/r4m0n/ZenStates-Linux), disable dram power down enable(bios option) and set Power Supply Idle Control to Typical Current Idle(bios option)
-
AMD Ryzen Sleep, Hibernate and Shutdown Issues
So the other hand is zenstates.py It pokes a register to keep C6 power state from happening. I launch on reboot, and my machine no longer has sleep state problems.
le9-patch
- le9-patch prevents system freezes on low-end systems
-
zram: swappiness, vfs_cache_pressure, page-cluster, dirty_ratio and dirty_background_ratio settings for gaming machines with HDD and low RAM?
Also, are you using a stock kernel? Try using this patchset https://github.com/hakavlad/le9-patch and more specifically set this
-
Does Linux’s memory management suck?
This kernel patch work really well: https://github.com/hakavlad/le9-patch/
- le9 / google mglru patch in pop os kernel
-
The case of the programs that were launched with impossible command line options
Oh that’s a known problem. There are many patch sets floating around that fix it by triggering the OOM killer when the system is thrashing: https://github.com/hakavlad/le9-patch
I’ve never ran into this specific problem back when I was daily driving desktop Linux, but I did run into 1000 similar ones that needed bandaid solutions. It’s death of a thousand cuts: https://news.ycombinator.com/item?id=28490753
-
Help me out here, why does Windows 10 handle my low memory situation better than Linux (so far)? How do I fix it?
I actually do use the Zen kernel already. If you are already using the zen kernel , make sure to use the latest one which has le9 patches , imho this patch can Improve user experience in tight memory situations. Check this https://github.com/hakavlad/le9-patch, saw many people praise this , but ymmv. Best of luck
-
Moving Google Toward the Mainline
- Limit the amount of thrashing or protect some pages from being reclaimed. This has been proposed by Google first and several other people since then, but AFAIK it has never been implemented in the mainline kernel.
Regarding the latter solution, there is a patchset called le9-patch[1] that is included in some alternative Linux kernels and it should be relatively safe to use.
[1]: https://github.com/hakavlad/le9-patch
- Is there a way to make EndeavourOS [XCFE] faster in a laptop with 2GB ram?
- I don't understand RAM resource management on Linux
-
nohang: A sophisticated low memory handler for Linux
Patch i was talking about le9-patch. it's only a proof of concept with very rough edges, but consider it isn't written by an experienced kernel developer with deep knowledge of memory subsystem.
What are some alternatives?
undervolt - Undervolt Intel CPUs under Linux
nohang - A sophisticated low memory handler for Linux
picom - A lightweight compositor for X11
earlyoom - earlyoom - Early OOM Daemon for Linux
oomd - A userspace out-of-memory killer
radeon-profile - Application to read current clocks of ATi Radeon cards (xf86-video-ati, xf86-video-amdgpu)
prelockd - Lock executables and shared libraries in memory to improve system responsiveness under low-memory conditions
snapdrop - A Progressive Web App for local file sharing
darling - Darwin/macOS emulation layer for Linux
sway - i3-compatible Wayland compositor