New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RAM saver #2435
RAM saver #2435
Conversation
Looks interesting.. I'm still a bit out of the loop with the house move and all but I'll review soon. |
… into feature/ram-saver
… into feature/ram-saver
In your opinion, is this useful for the other woof-distros apart from dpup? |
Yes, of course. It's a RAM vs. CPU tradeoff, so it's useful for any Puppy where lower RAM usage is important. |
Well add Slacko to the list! |
… into feature/ram-saver
Building feature/ram-saver-slacko (this branch, with ram-saver added to 8.x) now at https://github.com/dimkr/woof-CE/runs/3532896117?check_suite_focus=true. |
add ram-saver to slacko 8.x
… into feature/ram-saver
… into feature/ram-saver
This is a shared library that reduces RAM consumption by tuning malloc() to waste less RAM at the cost of inefficiency and slower operation, using mallopt().
The four applications I'd like to make lighter are Xwayland, Cage, Python (Blueman) and Firefox, and I'm not sure if this solution should be more targeted (for example,
prctl(PR_GET_NAME)
and call mallopt() only if this process is namedpython3
,Xwayland
,cage
,firefox
orfirefox-esr
).Before (x86_64, Xwayland, GTK+ 3):
After (x86_64, Xwayland, GTK+ 3):
Before (x86, X.Org, GTK+ 2):
After (x86, X.Org, GTK+ 2):
On real hardware (this is under QEMU), I believe the effect will be stronger, because this VM doesn't have a Bluetooth adapter (hence, Blueman does less), etc'.
EDIT: RAM usage of 450 MB on x86_64 with Xwayland, Cage, Blueman and Firefox, compared to ~490 MB without this PR.
EDIT 2: same test, about 10% reduction in RAM usage on my Thinkpad X220. Overall, it performs very nicely, and Firefox still feels fast.