cmdline: clarify cgroup_cpu_ms_per_sec
authorRobert Swiecki <robert@swiecki.net>
Wed, 5 Dec 2018 13:35:16 +0000 (14:35 +0100)
committerRobert Swiecki <robert@swiecki.net>
Wed, 5 Dec 2018 13:35:16 +0000 (14:35 +0100)
cmdline.cc
config.proto
nsjail.1

index ac22106..b1cb147 100644 (file)
@@ -142,7 +142,7 @@ struct custom_option custom_opts[] = {
     { { "cgroup_net_cls_classid", required_argument, NULL, 0x0821 }, "Class identifier of network packets in the group (default: '0' - disabled)" },
     { { "cgroup_net_cls_mount", required_argument, NULL, 0x0822 }, "Location of net_cls cgroup FS (default: '/sys/fs/cgroup/net_cls')" },
     { { "cgroup_net_cls_parent", required_argument, NULL, 0x0823 }, "Which pre-existing net_cls cgroup to use as a parent (default: 'NSJAIL')" },
-    { { "cgroup_cpu_ms_per_sec", required_argument, NULL, 0x0831 }, "Number of us that the process group can use per second (default: '0' - disabled)" },
+    { { "cgroup_cpu_ms_per_sec", required_argument, NULL, 0x0831 }, "Number of milliseconds of CPU time per second that the process group can use (default: '0' - no limit)" },
     { { "cgroup_cpu_mount", required_argument, NULL, 0x0822 }, "Location of cpu cgroup FS (default: '/sys/fs/cgroup/net_cls')" },
     { { "cgroup_cpu_parent", required_argument, NULL, 0x0833 }, "Which pre-existing cpu cgroup to use as a parent (default: 'NSJAIL')" },
     { { "iface_no_lo", no_argument, NULL, 0x700 }, "Don't bring the 'lo' interface up" },
index 4e02537..3988543 100644 (file)
@@ -217,7 +217,7 @@ message NsJailConfig {
     /* Writeable directory (for the nsjail user) under cgroup_net_mount */
     optional string cgroup_net_cls_parent = 69 [default = "NSJAIL"];
 
-    /* If > 0 number of milliseconds of CPU that jail processes can use per each second */
+    /* If > 0, number of milliseconds of CPU time per second that jailed processes can use */
     optional uint32 cgroup_cpu_ms_per_sec = 70 [default = 0];
     /* Mount point for cgroups-cpu in your system */
     optional string cgroup_cpu_mount = 71 [default = "/sys/fs/cgroup/cpu"];
index c1c32aa..07c537d 100644 (file)
--- a/nsjail.1
+++ b/nsjail.1
@@ -239,7 +239,7 @@ Location of net_cls cgroup FS (default: '/sys/fs/cgroup/net_cls')
 Which pre\-existing net_cls cgroup to use as a parent (default: 'NSJAIL')
 .TP
 \fB\-\-cgroup_cpu_ms_per_sec\fR VALUE
-Number of us that the process group can use per second (default: '0' - disabled)
+Number of milliseconds of CPU time per second that the process group can use (default: '0' - no limit)
 .TP
 \fB\-\-cgroup_cpu_mount\fR VALUE
 Location of cpu cgroup FS (default: '/sys/fs/cgroup/net_cls')