<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 15, 2019 at 6:26 AM Michael Biebl <<a href="mailto:biebl@debian.org" target="_blank">biebl@debian.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 15.10.19 00:30, David Castillo wrote:<br>
> Hi!<br>
> <br>
> I'm currently working on packaging an application which runs as a<br>
> systemd service within a slice. <br>
<br>
Is there a specific reason for using a dedicated slice?</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
What exactly is the use case here?</blockquote><div> </div><div> We'd like to isolate the process, and specify non-default IO and CPU weights.</div><div>Something very similar to this: <a href="https://github.com/scylladb/scylla/blob/master/dist/common/systemd/scylla-server.slice">https://github.com/scylladb/scylla/blob/master/dist/common/systemd/scylla-server.slice</a>,</div><div>which is explained in more detail here: <a href="https://www.scylladb.com/2019/09/25/isolating-workloads-with-systemd-slices/">https://www.scylladb.com/2019/09/25/isolating-workloads-with-systemd-slices/</a>`</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Is this a package shipped in Debian so we could have a look?<br></blockquote><div><br></div><div>Nope, it's a private package, unfortunately.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Typically, services are run in the system.slice.<br>
<br>
Installing the .service files was<br>
> straightforward, but I found that dh_installsystemd doesn't support<br>
> .slice files, according to the man page<br>
> <<a href="https://manpages.debian.org/testing/debhelper/dh_installsystemd.1.en.html" rel="noreferrer" target="_blank">https://manpages.debian.org/testing/debhelper/dh_installsystemd.1.en.html</a>>.<br>
<br>
It doesn't, that's correct.<br>
<br>
> I wanted to know if there's a recommended method to do it (I ended up<br>
> including it in our .install file), and if there's a reason for .slices<br>
> not being supported.<br>
<br>
Installing via .install is fine, I'd say.<br>
<br>
So far there simply hasn't been a demand / use case for supporting<br>
.slice units in dh_installsystemd.<br></blockquote><div><br></div><div>Got it! Thanks so much for your help.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Michael<br>
-- <br>
Why is it that all of the instruments seeking intelligent life in the<br>
universe are pointed away from Earth?<br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr">- David</div></div></div>