Comments (5)
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.
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.
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.
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.
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)
- F2FS filesystem compatibility HOT 3
- Sync on demand HOT 1
- raspberry pi zero missing wpa_supplicant dir in /var/run HOT 1
- no package named linux-modules-extra-raspi HOT 1
- no sync dir : feauture request. HOT 1
- Lots of output after sudo zram-config "stop" / "start" HOT 4
- Any way to avoid locking up zram volume when full? HOT 6
- what does exactly your software ? HOT 1
- Not mounting any target HOT 4
- Any way to create multiple devices per core? HOT 2
- Difference to openhabian-zram HOT 2
- Service is active, but no zrams are mounted HOT 6
- Add ability to sync files to disk periodically HOT 6
- missing dependency
- read-only zram fs IN operations ?? HOT 6
- Failing to sync on shutdown but works on demand HOT 9
- install (from openhabian) fails HOT 1
- gpg Can't check signature: No public key A2A3BF1A7D8D7AD47E939274B13E6AF0E31D89F8 HOT 2
- Allow update.bash without git fetch/pull HOT 7
- Replace fts-dev with musl-fts-dev under alpine HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zram-config.