Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#41361 - [systemd-swap] no zram devices

Attached to Project: Community Packages
Opened by Askhat Bakarov (sirocco) - Sunday, 27 July 2014, 11:42 GMT
Last edited by Felix Yan (felixonmars) - Friday, 15 August 2014, 05:40 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

no zram devices with uncommented zram[streams]=${sys[cpu_count]} in /etc/systemd-swap.conf

And one /dev/zram0 with this string commented.

systemd-swap 2.24.3-1
This task depends upon

Closed by  Felix Yan (felixonmars)
Friday, 15 August 2014, 05:40 GMT
Reason for closing:  Not a bug
Comment by Felix Yan (felixonmars) - Sunday, 27 July 2014, 15:57 GMT
Since it has nothing to do with packaging, please report it to upstream, thanks.
Comment by Timofey (nefelim4ag) - Monday, 28 July 2014, 12:20 GMT Comment by Dave Reisner (falconindy) - Monday, 28 July 2014, 14:23 GMT
> https://github.com/Nefelim4ag/systemd-swap/issues/16
I'm not a user of this package, but your reply seems to have nothing to do with the problem here. The config you ship is being taken as something of a "sane default", and it's clear from this bug report that it's not meant to be. Maybe you can clarify your own config rather than pointing to the underlying mechanics that your software tries to abstract away?
Comment by Timofey (nefelim4ag) - Monday, 28 July 2014, 14:38 GMT
> I'm not a user of this package, but your reply seems to have nothing to do with the problem here. The config you ship is being taken as something of a "sane default", and it's clear from this bug report that it's not meant to be. Maybe you can clarify your own config rather than pointing to the underlying mechanics that your software tries to abstract away?

I added link to simplify tracking issue on github and bugs.archlinux.org

Config file has explain of this behavior:
# zram[streams]=${sys[cpu_count]} # Zram compression streams count
# # /sys/block/zram*/max_comp_streams
# # One -> using one core, more -> more core.
Comment by Dave Reisner (falconindy) - Monday, 28 July 2014, 15:10 GMT
What is cpu_count? Where is defined? Where did zram[streams] come from? What is "streams"? Mention of some random sysfs file doesn't really explain anything either.
Comment by Timofey (nefelim4ag) - Thursday, 31 July 2014, 22:14 GMT
>What is cpu_count? Where is defined? Where did zram[streams] come from? What is "streams"? Mention of some random sysfs file doesn't really explain anything either.

I don't want to copy/paste any additional information from config.
if you can propose more user-friendly explanation, suggest it.
I think that explanation in config and description for zram in kernel is enough for end user.
If end user want to know more -> this is an open source project, try to open source code.

I do not want to be rude, just quote seems me relevant.
There's a good quote on <bash.im>. It's about open source, i can't find english equivalent and i will try to translate this:
"If you see a man without pants, make pants for him.
if you can't make pants, say where he can buy pants.
if you can't say where he can buy pants, tell him that he without pants.
if you don't want to say this, it's enough to stare at someone's naked ass".
Comment by Karol Błażewicz (karol) - Friday, 01 August 2014, 21:39 GMT
I'm using systemd-swap 2.24.5-1 and I have no idea which lines - if any - should I uncomment.
Can you post the configuration you're using?
Comment by Timofey (nefelim4ag) - Friday, 01 August 2014, 22:21 GMT
> I'm using systemd-swap 2.24.5-1 and I have no idea which lines - if any - should I uncomment.
> Can you post the configuration you're using?

Not a problem. Config file in attach. (if you address your message to me)
Comment by Karol Błażewicz (karol) - Monday, 04 August 2014, 22:51 GMT
Using this config I get /dev/zram0 to /dev/zram31 with systemd-swap 2.24.5-1 so it seems to work.
Comment by Askhat Bakarov (sirocco) - Friday, 15 August 2014, 04:37 GMT
The problem solved, the bug should be closed.

Loading...