Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[zram]Failed to start zram
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
hypeboyz
n00b
n00b


Joined: 26 Feb 2012
Posts: 24

PostPosted: Fri Sep 09, 2016 12:01 pm    Post subject: [zram]Failed to start zram Reply with quote

Hi
I didn't notice since when my zram failed to start. By adapting configuration of gentoo wiki https://wiki.gentoo.org/wiki/Zram it always prompts:
Code:
 * Caching service dependencies ...                                                                                                                                                            [ ok ]
 * Remove zram0 swap                                                                                                                                                                           [ !! ]
 * Remove zram1 swap                                                                                                                                                                           [ !! ]
 * Unloading zram module...                                                                                                                                                                    [ ok ]
 * Loading zram module...                                                                                                                                                                      [ ok ]
 * Swap->zram0
zramctl: /dev/zram0: failed to set algorithm: Invalid argument
zram-init: zramctl zram0 failed                                                                                                                                                                [ !! ]
 * Swap->zram1
zramctl: /dev/zram1: failed to set algorithm: Invalid argument
zram-init: zramctl zram1 failed                                                                                                                                                                [ !! ]

And if I remove algo*=lz4 to leave its default lzo it prompts
Code:
 * Caching service dependencies ...                                                                                                                                                            [ ok ]
 * Remove zram0 swap                                                                                                                                                                           [ !! ]
 * Remove zram1 swap                                                                                                                                                                           [ !! ]
 * Unloading zram module...                                                                                                                                                                    [ ok ]
 * Loading zram module...                                                                                                                                                                      [ ok ]
 * Swap->zram0
zramctl: only one <device> at a time is allowed
zram-init: zramctl zram0 failed                                                                                                                                                                [ !! ]
 * Swap->zram1
zramctl: only one <device> at a time is allowed
zram-init: zramctl zram1 failed                                                                                                                                                                [ !! ]

My configuration doesn't deviate too much from gentoo wiki's too much:
Code:
type0=swap
flag0=
size0=512
#algo0=lz4
maxs0=1

type1=swap
flag1=
size1=512
#algo1=lz4
maxs1=1

The error indicates the error in option paring in zramctl, which in turn is invoked on line 144-147 of zram-init script(/usr/sbin/zram-init). I don't know if it's a bug or did I misconfigured something? Thanks
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6292

PostPosted: Fri Sep 09, 2016 12:48 pm    Post subject: Reply with quote

Do you use zram-init-3.8? There was a bug in <zram-init-3.8 if the number of streams or the algorithm argument was omitted.
Back to top
View user's profile Send private message
hypeboyz
n00b
n00b


Joined: 26 Feb 2012
Posts: 24

PostPosted: Fri Sep 09, 2016 2:44 pm    Post subject: Reply with quote

mv wrote:
Do you use zram-init-3.8? There was a bug in <zram-init-3.8 if the number of streams or the algorithm argument was omitted.

It's the protage's latest version, 3.6.
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6292

PostPosted: Fri Sep 09, 2016 10:20 pm    Post subject: Reply with quote

hypeboyz wrote:
It's the protage's latest version, 3.6.

portage has 3.8 already since one month. Upgrading should solve your problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum