How can I put the /user.slice under the /system.slice?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












When running a Kubernetes cluster, it is recommended that /user.slice resides under the SystemReserved top level cgroup (i.e. under /system.slice).



According to the systemd.slice documentation, a slice's name encodes its location in the hierachy, so how can I rename the existing user.slice unit to system-user.slice so that this is so, without renaming the existing system file at /usr/lib/systemd/system/user.slice (as this is bad practice) and make sure that systemd-logind uses system-user.slice for user login sessions instead.



Alternatively, if the slice unit renaming is not possible, is it possible to just configure systemd-logind to place user sessions under a slice other than /user.slice?




  • uname -a: Linux ip-10-99-55-207.eu-west-1.compute.internal 4.16.2-1.el7.elrepo.x86_64 #1 SMP Thu Apr 12 09:08:05 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux


  • cat /etc/centos-release: CentOS Linux release 7.4.1708 (Core)






share|improve this question



















  • That is an expression of desire for systemd to work differently in a proposal document, not a recommendation of good practice.
    – JdeBP
    Jun 7 at 10:58










  • @JdeBP is this regarding renaming the system slice units? So are you saying renaming a system (slice) unit is okay?
    – dippynark
    Jun 7 at 13:11














up vote
0
down vote

favorite












When running a Kubernetes cluster, it is recommended that /user.slice resides under the SystemReserved top level cgroup (i.e. under /system.slice).



According to the systemd.slice documentation, a slice's name encodes its location in the hierachy, so how can I rename the existing user.slice unit to system-user.slice so that this is so, without renaming the existing system file at /usr/lib/systemd/system/user.slice (as this is bad practice) and make sure that systemd-logind uses system-user.slice for user login sessions instead.



Alternatively, if the slice unit renaming is not possible, is it possible to just configure systemd-logind to place user sessions under a slice other than /user.slice?




  • uname -a: Linux ip-10-99-55-207.eu-west-1.compute.internal 4.16.2-1.el7.elrepo.x86_64 #1 SMP Thu Apr 12 09:08:05 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux


  • cat /etc/centos-release: CentOS Linux release 7.4.1708 (Core)






share|improve this question



















  • That is an expression of desire for systemd to work differently in a proposal document, not a recommendation of good practice.
    – JdeBP
    Jun 7 at 10:58










  • @JdeBP is this regarding renaming the system slice units? So are you saying renaming a system (slice) unit is okay?
    – dippynark
    Jun 7 at 13:11












up vote
0
down vote

favorite









up vote
0
down vote

favorite











When running a Kubernetes cluster, it is recommended that /user.slice resides under the SystemReserved top level cgroup (i.e. under /system.slice).



According to the systemd.slice documentation, a slice's name encodes its location in the hierachy, so how can I rename the existing user.slice unit to system-user.slice so that this is so, without renaming the existing system file at /usr/lib/systemd/system/user.slice (as this is bad practice) and make sure that systemd-logind uses system-user.slice for user login sessions instead.



Alternatively, if the slice unit renaming is not possible, is it possible to just configure systemd-logind to place user sessions under a slice other than /user.slice?




  • uname -a: Linux ip-10-99-55-207.eu-west-1.compute.internal 4.16.2-1.el7.elrepo.x86_64 #1 SMP Thu Apr 12 09:08:05 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux


  • cat /etc/centos-release: CentOS Linux release 7.4.1708 (Core)






share|improve this question











When running a Kubernetes cluster, it is recommended that /user.slice resides under the SystemReserved top level cgroup (i.e. under /system.slice).



According to the systemd.slice documentation, a slice's name encodes its location in the hierachy, so how can I rename the existing user.slice unit to system-user.slice so that this is so, without renaming the existing system file at /usr/lib/systemd/system/user.slice (as this is bad practice) and make sure that systemd-logind uses system-user.slice for user login sessions instead.



Alternatively, if the slice unit renaming is not possible, is it possible to just configure systemd-logind to place user sessions under a slice other than /user.slice?




  • uname -a: Linux ip-10-99-55-207.eu-west-1.compute.internal 4.16.2-1.el7.elrepo.x86_64 #1 SMP Thu Apr 12 09:08:05 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux


  • cat /etc/centos-release: CentOS Linux release 7.4.1708 (Core)








share|improve this question










share|improve this question




share|improve this question









asked Jun 7 at 7:01









dippynark

1275




1275











  • That is an expression of desire for systemd to work differently in a proposal document, not a recommendation of good practice.
    – JdeBP
    Jun 7 at 10:58










  • @JdeBP is this regarding renaming the system slice units? So are you saying renaming a system (slice) unit is okay?
    – dippynark
    Jun 7 at 13:11
















  • That is an expression of desire for systemd to work differently in a proposal document, not a recommendation of good practice.
    – JdeBP
    Jun 7 at 10:58










  • @JdeBP is this regarding renaming the system slice units? So are you saying renaming a system (slice) unit is okay?
    – dippynark
    Jun 7 at 13:11















That is an expression of desire for systemd to work differently in a proposal document, not a recommendation of good practice.
– JdeBP
Jun 7 at 10:58




That is an expression of desire for systemd to work differently in a proposal document, not a recommendation of good practice.
– JdeBP
Jun 7 at 10:58












@JdeBP is this regarding renaming the system slice units? So are you saying renaming a system (slice) unit is okay?
– dippynark
Jun 7 at 13:11




@JdeBP is this regarding renaming the system slice units? So are you saying renaming a system (slice) unit is okay?
– dippynark
Jun 7 at 13:11















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f448347%2fhow-can-i-put-the-user-slice-under-the-system-slice%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f448347%2fhow-can-i-put-the-user-slice-under-the-system-slice%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay