Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 610366 - sys-block/zram-init-3.8: Add option for block size to /usr/sbin/zram-init
Summary: sys-block/zram-init-3.8: Add option for block size to /usr/sbin/zram-init
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Jason Zaman
Depends on:
Reported: 2017-02-21 13:11 UTC by segmentation fault
Modified: 2020-07-10 18:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description segmentation fault 2017-02-21 13:11:43 UTC
The /usr/sbin/zram-init currently lacks an option to control the block size for the ext2/ext4/... filesystem on a zram device. This results in RAM filesystems with the default block size of 4096 bytes. This may or may not be optimal, depending on usage.

For example, if you use a zram device to store the browser cache on it, 4096 may be too large a block size. Lots of files in the browser cache are much smaller than 4K (even smaller thgan 1K).

Please add an option to /usr/sbin/zram-init to control block size.
Comment 1 Michael 'veremitz' Everitt 2020-07-10 05:39:40 UTC
Adding mvaeth to CC for upstream verification, and potential resolutions. Tia Martin! :)
Comment 2 Martin Väth 2020-07-10 18:21:18 UTC
I would mark this a dupe of 610370.
In future, please add feature requests directly upstream on github.

Thanks for the reports, anyway.