Forum › Forums › Orphaned Posts › antiX-17 “Heather Heyer, Helen Keller” › Getting the zram script to work (Solved)
- This topic has 7 replies, 4 voices, and was last updated May 27-4:55 pm by banned.
-
AuthorPosts
-
October 24, 2019 at 1:45 pm #28511Member
melodie
Hello,
I’ll explain perhaps more than needed, I just want to make sure the context is taken in account, and that what will follow could also get to be tested in a regular antiX edition. (Be it the version 17 or the next one available now, 19).
I have tried several ways to get zram to be loaded and working in the respins I did with Openbox (an Openbox recipe used in several distributions, at home and among the foss communities, goal : to be utmost easy for the common user while as light as possible, well, still using gtk3 and co). My goal in getting antiX as a basis for this recipe is to obviously be able to have the same recipe, but on machines much older than I used to deal with. (ie: a Dell D610 which can take 2 GB RAM max, and would not boot anything else than a regular CD … tried MX, didn’t work, tried the full antiX didn’t work either, even used Plop to boot from USB, didn’t work, didn’t test PXE as I don’t have a PXE server nor enough free time to learn how to setup one).
Now to my point : I have tried installing the zram* package from repos, didn’t work, tried to get zram from the /usr/local/bin directory **the way it is explained in the zram comments**, it didn’t work. Here I enclose 2 screenshots.
What worked:
I added
/usr/local/bin/zram startin /etc/rc.local, before the line “exit 0” and rebooted. This worked! And it kept working after reboot, so I thought I’d come to tell about it.
- This topic was modified 3 years, 6 months ago by melodie. Reason: get to be notified
Attachments:
May 26, 2021 at 7:12 pm #60192Memberbanned
::Ok, I was using the zram skript as it says in the file itself. Works basicly. I have not done nothing with /etc/rc.local, there is just exit 0.
The script is making a zram in % of the free ram. So of course it depends, what other appilcation you are running in the moment you start it. After reboot I got this:
$ cat /proc/swaps Filename Type Size Used Priority /swapfile file 2097148 0 -1 /dev/zram0 partition 199496 544 100But with the command given in the zram script I got this:
$ lsmod | grep zram zram 18355 1So what means 18255? Not the size? It comes from /sys/module/zram/coresize
Then I tried to change the default like it says in the zram script:
“Copy this script (as root) from /usr/local/bin to /etc/init.d and then #update-rc.d zram defaults”
I don’t get any output, if I run this with sudo:
antix@antix1:~ $ sudo update-rc.d zram defaults [sudo] password for antix: antix@antix1:~What is it doing? I can not find a file or directroy rc.d. Where is it?
Then I tried to find the default settings for zram, as it is in the code from zram script:
# Cumulative size of zram swapspace expressed as a percentage of available memory # Option, a value specified in /etc/default/zram overrides a value specified below # Examples # PERCENTAGE=30 # PERCENTAGE=10 # Default, PERCENTAGE=25But I could not find such a file. Or what /etc is it? Not the one in the root?
And just a idea. Wouldn’t it also be helpful to have the option of specifying the zram size in MB and not as a percentage of the free ram?
May 26, 2021 at 7:46 pm #60197Anonymous
::Stop wasting peoples’ time by posting same inquiries to multiple topics!
I already answered this, in response to your post here: https://www.antixforum.com/forums/topic/zram-defaults-not-found/
One of your posts claims you’ve been a wizard for 30 years?
Another pseudo-intellectual post blathers about connecting applications at the “physical” (sic) layer……yet you lack the self-help skill of accessing manpages, and are ignorant of details related to sysV init?!?
May 27, 2021 at 12:50 am #60220Memberbanned
::@Skidoo
Another one who has no respect 🙂
And by the way, I made this post before the other one, it just didn’t work. Apparently there was a temporary problem with the forum software.
And if you are frustrated as a “pseudo-moderator” or “pseudo-administrator”, because you are just a normal member, then just leave it and do something you like 🙂
May 27, 2021 at 8:10 am #60258Member
melodie
::Another one who has no respect
That’s enough. First you undig a 2 years old topic, which may not be relevant to what antiX is nowadays, then you lack respect to an elder. Just don’t and create *your own topics*.
May 27, 2021 at 8:59 am #60263Anonymous
::Another one who has no respect
>>> if you are frustrated as a “pseudo-moderator” or “pseudo-administrator”, because you are just a normal member
Wow.
You will discover, if you peruse earlier forum topics, that normal-member skidoo had previously served the role of moderator. FWIW, skidoo had chosen to return to the rank-and-file so that my sometimes ToughLove posts would not reflect poorly on others among the “official” staff and developers.Dear Everyone Else,
I luvs ya, but after reading Xecure’s post tonight in response to dealing with this same brat, I too am now choosing to step away for a while. I’ll suggest that the forum should introduce an additional role, “supporter” or similar. Future skidoo will likely only offer assistance to bona fide supporters, and will altogether ignore help requests from casual “brats”.May 27, 2021 at 9:44 am #60266Forum Admin
anticapitalista
::JSM – stop insulting our users.
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.
May 27, 2021 at 4:55 pm #60309Memberbanned
-
AuthorPosts
- You must be logged in to reply to this topic.

