Files

47 lines
1.2 KiB
Tcl
Raw Permalink Normal View History

# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
2021-06-16 11:33:48 +01:00
PortGroup makefile 1.0
name cputhrottle
version 1.0.0
epoch 1
2021-06-16 21:36:28 -04:00
revision 1
categories sysutils
2014-07-28 15:08:27 +00:00
license none
maintainers nomaintainer
description a tool to for throttling process cpu usage
long_description Cputhrottle is a tool which allows cpu usage to be \
limited on a per-PID basis.
homepage http://www.willnolan.com/cputhrottle/cputhrottle.html
master_sites http://www.willnolan.com/cputhrottle/
checksums rmd160 529365fd4c3525fd4120e0df78e0004d1187a874 \
sha256 08243656d0abf6dd5fd9542d33553507ce395ee4e0a1aeb5df08ca78bc83ec21 \
size 3357
2023-10-19 14:20:54 +11:00
worksrcdir ${name}
2023-10-18 11:14:53 -07:00
patchfiles patch-GNUmakefile.diff
compiler.cxx_standard 2011
destroot {
xinstall -W ${worksrcpath} cputhrottle ${destroot}${prefix}/bin
}
notes "
${name} must be run as root, i.e.
sudo cputhrottle <pid> <percentage>
For example:
sudo cputhrottle 328 25
would limit process ID 328 to a maximum of 25% CPU usage.
"