Questions tagged [cgroups]

cgroups are used to control resource management in kernel. They remain in an hierarchy and a new group can be created just by creating a directory in the appropriate place. Using cgroups, a lot of resource management can be done including memory, cpu etc.

cgroups (abbreviated from control groups) is a Linux kernel feature that limits, accounts for, and isolates the resource usage (CPU, memory, disk I/O, network, etc.) of a collection of processes.

369 questions
0
votes
2 answers

Limiting Hue resources with Static pools cgroup

I understood you can limit Hadoop services via cgroups in Static Service pools. I would like to limit the Hue service, because sometimes, it eats up all the memory we have on the Edge node and hurts our loading processes. However I wasnt able to…
k_mishap
  • 451
  • 2
  • 8
  • 17
0
votes
1 answer

docker startup failure due to cgroups misconfiguration

I am trying to start docker on a Centos-6-ish OS. It is failing for cgroups reasons. I believe the mount is correctly structured (docker recommends https://github.com/tianon/cgroupfs-mount/blob/master/cgroupfs-mount) so the final error message is…
djh
  • 401
  • 1
  • 5
  • 15
0
votes
1 answer

What capabilities does systemd daemon require to create cgroups?

In my project I need sometimes to be able to create new control groups as an unprivileged user. I decided to write a systemd daemon for this. I use libcgroup in the daemon code for cgroup manipulation. When I try to create a cgroup…
Vasiliy
  • 1
  • 1
0
votes
0 answers

Trying to monitor resource usage of a kvm/qemu virtual machine with mesos

I’m currently deploying a kvm/qemu virtual machine with mesos/marathon. In marathon, I’m using the built in mesos command executor and running the script. virsh start centos7.0; while true; do echo 'centos 7.0 guest is running'; sleep 5; done Note…
Jason
  • 23
  • 2
0
votes
2 answers

Process grouping in linux

I have recently seen some screencasts about process management with systemd and cgroups and I am a little confused about the distinction among: a) services: in the typical linux terminology, where a service can comprise more than one process; how…
pkaramol
  • 16,451
  • 43
  • 149
  • 324
0
votes
1 answer

cgroups: user.slice is missing

I am using a debian 8.7 (jessie) and have installed cgroups. It seems to work except that the user.slice is missing. I did not find out if there is a way to activate it. I already tried to give it a config in the systemd directory (here for the user…
Helen Curry
  • 11
  • 2
  • 7
0
votes
2 answers

cgconfig service won't start up

I have already referenced this post: Centos cgconfig fails to start I have a centos 7 machine. I've tried commenting out and leaving in memory in the following /etc/cgconfig.conf file: mount { cpuset = /cgroup/cpuset; cpu =…
theamycode
  • 219
  • 3
  • 10
0
votes
1 answer

Openshift disable build quota

I'm trying to use buildconfig/builds in OpenShift. The machine is a CentOS 7.3 with kernel 4.5.7-std-3 Unfortunately the kernel I'm using doesn't have CONFIG_CFS_BANDWIDTH enabled. gunzip < /proc/config.gz | grep CFS # CONFIG_CFS_BANDWIDTH is not…
The DoS
  • 1
  • 1
0
votes
0 answers

Soft Limits and Hard Limits in HortonWorks

I am trying to figure out how to configure soft limits and hard limits for the memory subsystem (Cgroups) in Hortonworks. I was successful in configuring it in Cloudera. But, I haven't found anything as such in Horton Works. Can anyone let me know,…
0
votes
1 answer

Error 50007 when creating cgroup with cgroup_new_cgroup

I have a process running in a docker container (docker puts that processes in a cgroup btw). The process forks and I want to put some forks into cgroups. I added the following code to my program: cgroup_init(); struct cgroup *my_cgroup =…
Phillipp
  • 264
  • 3
  • 14
0
votes
1 answer

How to install an application in Hadoop Cluster using YARN?

I am trying to learn YARN. But I have hit a roadblock. I have some questions. For every application, the data nodes must have a container each. But, are these containers created on their own, while running an application or do we need to…
RV186
  • 303
  • 2
  • 3
  • 12
0
votes
1 answer

How can I check what the cgroups option memory.use_hierarchy is set to?

I'm trying to figure out if the cgroups option memory.use_hierarchy is set to true or false (1 or 0). Is there some standard file this is listed in or a command I can use to figure this out? If it is not set anywhere, is there a default setting for…
0
votes
0 answers

Resource manager class in C++

I am currently implementing a server program that forks a process to handle a client's request. The forked process must be well-controlled in terms of cpu, memory, disk, and other system attributes. I noticed the easiest way to implement a resource…
Jes
  • 2,614
  • 4
  • 25
  • 45
0
votes
0 answers

How to get mount point of cgroups (control group) on RHEL/SUSE without using libcgroup's function?

I am trying to get mount point of cgroups on my RHEL & SUSE system. From This I am able to get it but it is with the use of libcgroup's system call. I have to do it without using any libcgroup library function as libcgroup may or may not be…
Chirag
  • 607
  • 1
  • 6
  • 17
0
votes
1 answer

why isn't cpu.shares in cgroups sharing cpu as defined

I ran the following command on a 6 core machines stress -c 10 dd if=/dev/zero of=/dev/null # 10 times the loads on the system was as shown below I created two cgroups and added their pids to them for i in $(pidof stress |tr ' ' '\n' ); do echo $i…
Jabir Ahmed
  • 82
  • 1
  • 1
  • 5