Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 610370 - sys-block/zram-init-3.8: Add options for block size, inode number, inode/bytes ratio to /etc/init.d/zram-init
Summary: sys-block/zram-init-3.8: Add options for block size, inode number, inode/byte...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-21 13:22 UTC by segmentation fault
Modified: 2020-07-11 06:04 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description segmentation fault 2017-02-21 13:22:01 UTC
Currently, the init script /etc/init.d/zram-init lacks control for

	block size (pass value to a yet-to-be-created option (see bug:610366) to /usr/sbin/zram-init)
	inode/bytes ratio (pass value to -i option to /usr/sbin/zram-init)
	number of inodes (pass value for -N option to /usr/sbin/zram-init)

Please add them. 

Background
==========

inodes get filled-up pretty fast when I store the browser cache on a zram device.
That's 82,000 cache files for 1.2GB space in one day! Whatever the reason,
even if it's a bug/malfunction of the browser cache, it should be possible
to tune inode size in zram through the scripts in zram-init and alleviate
the situation...
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:18:24 UTC
I can confirm that this is missing, but do not know when I will find time to add it.
Comment 3 Martin Väth 2020-07-11 06:04:47 UTC
I could not sleep this morning, so I released a new version with the small changes.