maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 7 / Leste (https://talk.maemo.org/forumdisplay.php?f=66)
-   -   ZRAM and SWAP (https://talk.maemo.org/showthread.php?t=101464)

sebar 2023-12-20 10:25

ZRAM and SWAP
 
I'm experiencing trouble activating zram.

During boot it says at one point:
Code:

Activating swapfile swap, if any...done.
Later it says:
Code:

root: Starting Zram
/usr/sbin/zramswap: line 53: echo: write error: Invalid argument
Error: setting compression algo to lz4

Once booted up,
Code:

cat /etc/default/zramswap
confirms that
Code:

SIZE=1024
But
Code:

sudo zramswap status
shows all values of /dev/zram0 at 0B

Code:

sudo swapon
says
Code:

/dev/mmcblk1p3 partition 768M 29M -2
Leste is installed on a fresh highspeed MicroSD.

Arno_11 2023-12-20 21:31

Re: ZRAM and SWAP
 
Please, do not try to re activate zramswap (to avoid troubles) and ignore zram error on boot.

The mmcblk1p3 partition you see is the mmc swap (768MB), that's the best option actually and works fine :)

https://leste.maemo.org/Nokia_N900

sebar 2023-12-20 21:36

Re: ZRAM and SWAP
 
Quote:

Originally Posted by Arno_11 (Post 1575829)
Please, do not try to re activate zramswap (to avoid troubles) and ignore zram error on boot.

The mmcblk1p3 partition you see is the mmc swap (768MB), that's the best option actually and works fine :)

Ah, OK! Thanks for the warning! I was hoping for a slight boost of responsiveness, though... I guess I'll look into overclocking then.

Arno_11 2023-12-20 21:41

Re: ZRAM and SWAP
 
Ok, did you already upgrade to devel ? Should be far more responsive.

Just in case: edit /etc/apt/sources.list and add:

Code:

deb https://maedevu.maemo.org/leste chimaera-devel main contrib non-free  n900
BTW overclock is available out of the box now in devel (see N900 Leste wiki).

sebar 2023-12-20 22:48

Re: ZRAM and SWAP
 
Thanks for the hint! I'm looking at this paraghraph:
https://leste.maemo.org/Nokia_N900#Overclocking

"Overclocking is now available in -devel using cpufreq boost.
It uses 250-500-550-600-720-805-850MHz frequencies
To enable it, edit:
/sys/devices/system/cpu/cpufreq/boost
And replace 0 by 1."

But this here gives me a headache - /sys/devices/system/cpu/cpufreq/boost doesn't exist on my machine. How do I get it?

Arno_11 2023-12-20 22:56

Re: ZRAM and SWAP
 
It means that you didn't upgrade to devel or didn't reboot after upgrade :)

sebar 2023-12-20 23:08

Re: ZRAM and SWAP
 
Aaah, sorry! That I have to do a sudo apt-get dist-upgrade was not obvious to me! Running right now!

EDIT: The upgrade went without issues. For some reason the OC-tweaks stated above keep resetting after reboot, though.

Arno_11 2023-12-21 07:47

Re: ZRAM and SWAP
 
That's perfectly normal, that's the way boost mode works in cpufreq. (Keeping the 'safe' max 600MHz frequency on boot)

sebar 2023-12-21 08:00

Re: ZRAM and SWAP
 
You live, you learn :)! Thanks!

sebar 2023-12-21 09:41

Re: ZRAM and SWAP
 
...how to make it permanent...? :D


All times are GMT. The time now is 13:18.

vBulletin® Version 3.8.8