当我尝试运行 cgconfigparser 时收到以下错误消息。
:syntax error number 1 at
Error: failed to parse file /etc/cgconfig.conf
cgconfigparser; error loading /etc/cgconfig.conf: Have multiple paths for the same namespace
这是我的 cgconfig.conf 文件:
group coind {
perm {
admin {
uid = coin;
gid = coin;
}
task {
uid = coin;
gid = coin;
}
}
cpu {
cpu.shares="512";
}
memory {
memory.swappiness="60";
memory.limit_in_bytes="1073741824";
memory.memsw.limit_in_bytes="3221225472";
}
net_cls {
net_cls.classid="0";
}
blkio {
blkio.throttle.write_bps_device="";
blkio.throttle.read_bps_device="";
}
}
我真的很不想每次重启时都手动进行设置。