Giter Club home page Giter Club logo

Comments (5)

StuartIanNaylor avatar StuartIanNaylor commented on June 8, 2024

zram-conf is very raspberry pi/arm specific.

https://github.com/StuartIanNaylor/zram-swap-config
https://github.com/StuartIanNaylor/zramdrive
https://github.com/StuartIanNaylor/log2zram
Are general individual services but still use systemd but guess we could just /etc/rc-local or /etc/inittab
The cmdline.txt alternative in non arm world would be a grub line I guess.

What distro and version are you using as I will knock up a branch for older x86

from zram-config.

spotty101 avatar spotty101 commented on June 8, 2024

I was wondering why you had the other 3. I thought you just decided to roll them into one.
Both the desktop and the laptop are debian stretch X64 based.
The laptop is MXlinux which I just found out does not use systemD by default. I am assuming the destop does.

Would it be better if I uninstall and use the others?

Dave

from zram-config.

StuartIanNaylor avatar StuartIanNaylor commented on June 8, 2024

Mxlinux already has a zram service /usr/local/bin/zram its also one of the nasty type that doesn't check for existing services but doesn't seem to be enabled by default
Try the sysv-init branch created no ephemeral mode will look later but debian has services for that already.
git clone --branch sysv-init https://github.com/StuartIanNaylor/zram-config
from zram-config
git pull
git checkout sysv-init

They are all examples that check for other zram service and can co-habit as that basic test and method is missed from most.
zram-conf is an all in example using a ztab to make a point that zram is not just swap.
If you create a dir of /home/%USERNAME% you will notice there is a delay on start as the copyup of OverlaysFS CoW creates files with write access in the upper.
Dunno about home really but you can tell me how it goes.
Logs are working and shipping out to oldlog is enabled so is the swap.
zram-conf will work with other zram services but if they will work with zram-conf ie a simple check zram devices already exist is unknown and prob no.

I its an old laptop do approx half your ram so mem-limit is half ram and disk-size is 3x that.
The page-cache 0f 0 is optimised for zram rather than the default of 3 (8 page chache) the swappiness with lacking processors above 80 can slow boot but once the boot has finished because overall load is much less even 100 can provide much benefit.
Basically 100 is better but it might create to much hit on boot so play and see how it goes.

from zram-config.

spotty101 avatar spotty101 commented on June 8, 2024

I installed the sysv-init version
It seems to be working as expected now
even after a reboot

Thanks
Dave

glad i noticed the other day that mxlinux is a non systemd distro
I am sure that would have made this worse if I had not known

from zram-config.

StuartIanNaylor avatar StuartIanNaylor commented on June 8, 2024

MXLinux seems to be debian for those who don't like systemd as its actually there just not enabled.
The conversion of the script was simple really the emphemeral mode might take some more time but really never envisage for x86.
Glad its working and glad I also have a sysv-init version now.

With no systemd the main branch has no service provider so just will not start.
Being X86 its grub rather than uboot for arm so that is quite different.

I don't intend to make an all-in-one for all architecture and distro's as it just turns into scripting hell and becomes hard to read.
The scripts are available as examples to hack, copy and clone and only have a licence because no licence equates to all rights reserved but just take what you want as I claim no ownership as I don't do property and certainly nothing intellectual about me.

from zram-config.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.