1 LXC container taking all cpu time

sahostking

Renowned Member
Have a strange one.

1 VPS Client is set to use 2 cores and for some reason is creating massive high load on server.

Don't think he caused issues on openvz but on LXC seems to be killing the whole node.

How do I set it so that he does not take so much cpu time and causing such a high iowait. If I stop his container everything is smooth. He usually takes it from 0.8 to 15 or 16.0

Not sure if I should just suspend him but all he states is he is doing facebook marketing.

Is there any setting or profile to limit his cpu time etc.
 
"man pct.conf"

Code:
       cpulimit: number (0 - 128) (default=0)
           Limit of CPU usage.

               Note
               If the computer has 2 CPUs, it has a total of 2 CPU time. Value 0 indicates no CPU limit.

       cpuunits: integer (0 - 500000) (default=1024)
           CPU weight for a VM. Argument is used in the kernel fair scheduler. The larger the number is, the more CPU time this VM gets. Number is relative to the weights of all the other running VMs.

               Note
               You can disable fair-scheduler configuration by setting this to 0.

finding out what exactly is causing the load might be a good idea in any case (could also be I/O related, in which case limiting the CPU time/shares might not help at all)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!