Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 925516 - sys-block/zram-init should be configured so that there is one service per mount point or swap configuration
Summary: sys-block/zram-init should be configured so that there is one service per mou...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Mattéo Rossillol‑‑Laruelle
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-25 21:04 UTC by Norman Back
Modified: 2024-03-03 11:54 UTC (History)
2 users (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 Norman Back 2024-02-25 21:04:20 UTC
Configure sys-block/zram-init so that there is one service per mount point or swap configuration, in a similar manner that net-misc/tigervnc does per display.
This would enable:
1. starting and stopping each config separately.
2. Configuring separate writeback daemons for each config.

I have attempted doing this myself and it appeared to work in terms of starting stopping the services including writeback daemons.
However, there were issues:
My re-coding of the zram-init init script did not conform to openrc requirements.
My attempts at writeback daemons were unsatisfactory in terms of:
1. Choosing when writeback was required.
2. Suspicions of memory leak when left running continuously for 2 weeks or more.


Reproducible: Always

Steps to Reproduce:
This is an enhancement request.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-02-27 23:36:07 UTC
I think this might be something to send upstream to https://github.com/vaeth/zram-init/?
Comment 2 Mattéo Rossillol‑‑Laruelle 2024-03-02 14:29:18 UTC
(In reply to Sam James from comment #1)
> I think this might be something to send upstream to
> https://github.com/vaeth/zram-init/?

Therefore, should this bug be marked as resolved?