We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#!/bin/sh
echo "start" echo "scale=50000; 4*a(1)" | bc -l -q echo "end"
When executing shell scripts, "bc -l -q" is always 100%
Is the child process out of control?
The text was updated successfully, but these errors were encountered:
env : CentOS Linux release 7.8.2003 (Core)
Sorry, something went wrong.
hi @uppercaveman ,
i am not sure if our case are similar, but, i am able to limit the cpu usage by setting the Quota and Period (https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/resource_management_guide/sec-cpu)
Quota
Period
shares := uint64(256) quota := int64(500000) // 50% of CPU (quota/period) period := uint64(1000000) cgroupPath := cgroups.StaticPath("/test") pCGroup, err := cgroups.New(cgroups.V1, cgroupPath, &specs.LinuxResources{ CPU: &specs.LinuxCPU{ Shares: &shares, Quota: "a, Period: &period, }, })
No branches or pull requests
#!/bin/sh
echo "start"
echo "scale=50000; 4*a(1)" | bc -l -q
echo "end"
When executing shell scripts, "bc -l -q" is always 100%
Is the child process out of control?
The text was updated successfully, but these errors were encountered: