CG_VALUE_MAX is arbitrarily set to 100 which limits string values to a max of 100 characters. A potential situation where this will cause a failure is in the case of setting
cpuset.cpus to a long list (unrolled/comma-separated) of logical cpu ids.
Example: Passing a list of 64 logical cpu ids as a string
will truncate and result in a badly formatted string value that causes an EOF
This patch increases
CG_VALUE_MAX to a value of 1024. While still somewhat arbitrary, it seems this value should cover even the largest case. And since it looks like the string value buffers are being statically allocated per thread, it shouldn't really result in any major impact in initial memory.