Skip to content

Commit b29e0e9

Browse files
committed
Include cpulimit tool
Include cpulimit tool from commit f4d2682804931 https://github.com/opsengine/cpulimit for easy distribution/use within O2.
1 parent 60b41a1 commit b29e0e9

15 files changed

Lines changed: 1728 additions & 0 deletions

Utilities/Tools/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# granted to it by virtue of its status as an Intergovernmental Organization or
99
# submit itself to any jurisdiction.
1010

11+
add_subdirectory(cpulimit)
1112

1213
install(PROGRAMS monitor-mem.sh DESTINATION share/scripts/)
1314
install(PROGRAMS jobutils.sh DESTINATION share/scripts/)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
DisableFormat: true
2+
SortIncludes: false
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright CERN and copyright holders of ALICE O2. This software is distributed
2+
# under the terms of the GNU General Public License v3 (GPL Version 3), copied
3+
# verbatim in the file "COPYING".
4+
#
5+
# See http://alice-o2.web.cern.ch/license for full licensing information.
6+
#
7+
# In applying this license CERN does not waive the privileges and immunities
8+
# granted to it by virtue of its status as an Intergovernmental Organization or
9+
# submit itself to any jurisdiction.
10+
11+
add_executable(cpulimit
12+
cpulimit.c list.c process_group.c process_iterator.c)
13+
target_compile_definitions(cpulimit PUBLIC _GNU_SOURCE)
14+
15+
install(TARGETS cpulimit DESTINATION share/scripts/)

Utilities/Tools/cpulimit/README

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
These sources have been copied from https://github.com/opsengine/cpulimit
2+
commit f4d2682804931e.

0 commit comments

Comments
 (0)