Difference between revisions of "Linux: Cgroups Resource Limiting"

From Define Wiki
Jump to navigation Jump to search
(edit)
(edit)
Line 4: Line 4:
 
== Installing Python ==
 
== Installing Python ==
 
  <nowiki>
 
  <nowiki>
$ yum install python36  
+
$ sudo yum install python36  
 
</nowiki>
 
</nowiki>
  
 
== Installing external modules ==
 
== Installing external modules ==
<nowiki>
+
<nowiki>
 
$ python3 -m ensurepip --default-pip
 
$ python3 -m ensurepip --default-pip
 
$ pip3 install matplotlib toml requests  # requests may not be necessary
 
$ pip3 install matplotlib toml requests  # requests may not be necessary
 
</nowiki>
 
</nowiki>
 +
 +
== Acquiring the Arbiter2 source files ==
 +
<nowiki>
 +
$ sudo yum install git
 +
$ git clone https://gitlab.chpc.utah.edu/arbiter2/arbiter2.git optional-destination-directory
 +
 +
</nowiki>
 +
 +
== Setting up 'arbiter' user to run the script ==

Revision as of 08:50, 3 May 2020

This document describes the process of a basic installation of the arbiter2 tool, that can be used to apply CPU & Memory limits on logged-in Linux users, using cgroups accounting. The official documentation can be found at https://github.com/subfission/arbiter2/blob/master/INSTALL.md

Installing Python

$ sudo yum install python36 

Installing external modules

$ python3 -m ensurepip --default-pip
$ pip3 install matplotlib toml requests  # requests may not be necessary

Acquiring the Arbiter2 source files

$ sudo yum install git
$ git clone https://gitlab.chpc.utah.edu/arbiter2/arbiter2.git optional-destination-directory


Setting up 'arbiter' user to run the script