github.com/zhuohuang-hust/src-cbuild@v0.0.0-20230105071821-c7aab3e7c840/mergeCode/runc/man/runc-update.8.md (about)

     1  # NAME
     2     runc update - update container resource constraints
     3  
     4  # SYNOPSIS
     5     runc update [command options] <container-id>
     6  
     7  # DESCRIPTION
     8     The data can be read from a file or the standard input, the
     9  accepted format is as follow (unchanged values can be omitted):
    10  
    11     {
    12       "memory": {
    13         "limit": 0,
    14         "reservation": 0,
    15         "swap": 0,
    16         "kernel": 0,
    17         "kernelTCP": 0
    18       },
    19       "cpu": {
    20         "shares": 0,
    21         "quota": 0,
    22         "period": 0,
    23         "realtimeRuntime": 0,
    24         "realtimePeriod": 0,
    25         "cpus": "",
    26         "mems": ""
    27       },
    28       "blockIO": {
    29         "blkioWeight": 0
    30       }
    31     }
    32  
    33  Note: if data is to be read from a file or the standard input, all
    34  other options are ignored.
    35  
    36  # OPTIONS
    37     --resources value, -r value  path to the file containing the resources to update or '-' to read from the standard input
    38     --blkio-weight value         Specifies per cgroup weight, range is from 10 to 1000 (default: 0)
    39     --cpu-period value           CPU CFS period to be used for hardcapping (in usecs). 0 to use system default
    40     --cpu-quota value            CPU CFS hardcap limit (in usecs). Allowed cpu time in a given period
    41     --cpu-rt-period value        CPU realtime period to be used for hardcapping (in usecs). 0 to use system default
    42     --cpu-rt-runtime value       CPU realtime hardcap limit (in usecs). Allowed cpu time in a given period
    43     --cpu-share value            CPU shares (relative weight vs. other containers)
    44     --cpuset-cpus value          CPU(s) to use
    45     --cpuset-mems value          Memory node(s) to use
    46     --kernel-memory value        Kernel memory limit (in bytes)
    47     --kernel-memory-tcp value    Kernel memory limit (in bytes) for tcp buffer
    48     --memory value               Memory limit (in bytes)
    49     --memory-reservation value   Memory reservation or soft_limit (in bytes)
    50     --memory-swap value          Total memory usage (memory + swap); set '-1' to enable unlimited swap