Warning: mysqli_query(): (HY000/1021): Disk full (/tmp/#sql-a2c-1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device") in /var/www/html/wp-includes/wp-db.php on line 2024

Warning: mysqli_query(): (HY000/1021): Disk full (/tmp/#sql-a2c-1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device") in /var/www/html/wp-includes/wp-db.php on line 2024
class="post-443340 post type-post status-publish format-standard hentry" id="post-443340">

What is the command to view a CGROUP name using SYSVInit system manager?

Below is the SYSVInit machine:

$ cat /etc/os-release
NAME="Amazon Linux AMI"
VERSION="2018.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2018.03"
PRETTY_NAME="Amazon Linux AMI 2018.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2018.03:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"
$
$
$ pstree | more
init-+-MyClient-+-MyClient---11*[{MyClient}]
     |              `-{MyClient}
     |-acpid
     |-agetty
     |-amazon-ecs-init---6*[{amazon-ecs-init}]
     |-amazon-ssm-agen---10*[{amazon-ssm-agen}]
     |-auditd---{auditd}
     |-aws---10*[{aws}]
     |-crond
     ....

where

a docker container is launched in a CGROUP by name newgroup as shown below:

   $ ID=$(docker container run -it -d --cgroup-parent="/newgroup" --cpus=0.25 --memory="100m" stress -q -c 1 --vm 1 --vm-bytes 1500m --vm-keep)
   $
   $ docker update --cpus 0.50 $ID
   $ docker update --memory 200m $ID

On systemd machine, we use commands like systemd-cgls and systemd-cgtop, but

What is the command to view list of CGROUPs(including newgroup)?

What is the command to view CPU usage for each CGROUP?

Leave a Reply

Your email address will not be published. Required fields are marked *