Commit Graph

6 Commits

Author SHA1 Message Date
Rosen Penev 206752dd9c libcgroup: update to 2.0.3
Upstream moved to GitHub.

Backport non GNU strerror_r patch.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-05-15 14:36:27 -07:00
Fabrice Fontaine 5afe5c9031 treewide: assign PKG_CPE_ID
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2024-02-04 16:16:10 -08:00
Ilya Lipnitskiy 5d8d4fbbcb
treewide: Run refresh on all packages
The crude loop I wrote to come up with this changeset:

  find -L package/feeds/packages/ -name patches | \
  sed 's/patches$/refresh/' | sort | xargs make

Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
2021-02-20 16:02:15 -08:00
Rosen Penev 8851c94970
libcgroup: don't build tests
Speeds up compile.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-08-13 21:50:27 -07:00
Rosen Penev d1a2a025fe
libcgroup: fix compile with newer musl
The code uses __BEGIN/END_DECLS from glibc's features.h, actually
sys/cdefs.h, which is deprecated. Get rid of it.

Fixed license information.

Fixed musl-fts dependency. It's only valid for musl.

Removed autoreconf as the patch was removed.

Added PKG_INSTALL for consistency between packages.

Added PKG_BUILD_PARALLEL for faster compilation.

Small cleanups for consistency between packages.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-03-29 21:38:23 -07:00
Daniel Danzberger dfc9555326 libcgroup: Added new package.
libcgroup also contains cgroup-utils, which make it very handy to work
with user defined cgroups settings.
It let's you define cgroups in a json like config file and execute them on the cmdline.

Example:

/etc/cgroup.conf:
----------------
group lowbob {
        cpu { cpu.shares="1"; }
        cpuacct { cpuset.cpu = "0" }
        memory { memory.limit_in_bytes = 10m; }
        blkio { ... }
	...
}
----------------
cgconfigparser -l /etc/cgroup.conf
cgexec -g cpu,memory,blkio:/lowbob cpuintense-task

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2019-02-16 09:55:02 +01:00