Skip to content
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

Bring SWAPPINESS governor to master and add a config to enable it. #5

Closed
wants to merge 1 commit into from

Conversation

Rp70
Copy link

@Rp70 Rp70 commented Mar 16, 2020

I currently use your script and found it's helpful with SWAPPINESS governor. But the branch 'Swapiness-load-balancer' is a bit out-of-date, so I bring the governor the to master branch and add a config option to enable. I hope this is useful to everyone. Thanks for the great script!

@StuartIanNaylor
Copy link
Owner

I think the swapiness load governor went on a backburner and stayed there as its started to get less relevent with the Pi3 and the oompf of the Pi sales with very high swapiness no problem.

I meant to get a bit more creative rather than just load but the actually zram stats.
Have you got and ideas?
Or do you think its prob not needed?

@Rp70
Copy link
Author

Rp70 commented Mar 17, 2020

I don't use Pi. I use your script on Ubuntu on dedicated servers. In my environment, that's okay with swapniness and a higer load.

@StuartIanNaylor
Copy link
Owner

StuartIanNaylor commented Mar 22, 2020

I don't use Pi. I use your script on Ubuntu on dedicated servers. In my environment, that's okay with swapniness and a higer load.

Yeah zram is memory but the simple parameter change to PAGE_CLUSTER to zero and instant writes helps much with latency.
I don't think many setups really have HardDrive swap for performance anymore but they default if not changed queues in batches of 8 which might of been good for HardDrive isn't good for SSD though and definately not memory based zram.
I presum if you are running server sevices that are mem intensive or a lot of instances it likely helps much.

Shouldn't be using this script though as Ubuntu and the main distro's need to update there zram scripts so they catch up with zram and much change in technology.
I keep meaning to perf test the LZO-RLE alg its not mentioned but you can use any kernel compression alg.

Its only the zero/pi2 level that can incur load at boot.

Think its best to keep branches seperate create a pull request against swapiness-load-balancer branch rather than master, but really you can just set high as default

@Rp70
Copy link
Author

Rp70 commented Sep 5, 2020

Sorry for the delay in response. I understand your points now. Thank you for the suggestion.

@Rp70 Rp70 closed this Sep 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants