New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Running CPU heavy tasks with high nice value?
Just had a weird idea pop up in my head...
What would happen if I run a bunch of CPU heavy tasks in an OpenVZ container with high nice values? Would it just take up only unused CPU so I can run CPU heavy tasks without affecting other containers?
Would providers get annoyed if I do this on their VPSes?
Comments
Yes.
Yes.
No.
yes
Definitely maybe.
https://www.lowendtalk.com/discussion/32109/does-ionice-nice-in-openvz-apply-to-only-your-vm-or-to-all-processes
You can search for
[oop, @rm_ beat me to it and linked you to a thread]
We've touched on this recently in a couple threads. Nice only prioritizes within your container; if your CPU-heavy process is the only thing running on your VM, it will happily chew up the CPU up to whatever limits imposed by the hypervisor.
cpulimit monitors the load (local to your VM) and suspends/resumes the process (SIGSUSP/SIGCONT) to match your desired load.
Not really- on OVZ. It monitors your REPORTED CPU PERCENTAGE, but does NOTHING for projected load. You can still be using 10% CPU and hold a load far over 1.
Long story short: Don't shoemine on OVZ. It's being a dick, and you can't control it well enough.
Good point. I suppose then cpulimit's utility depends on what metrics the provider is looking at to determine whether to suspend you for CPU abuse.
I stole the logic used by cpulimit to script a tool that does the same, based upon actual system load, but with the proliferation of shoeminers, I'm not going to bother sharing it.
Yep, I'm hoping the cryptocurrency landscape changes soon so we can get our cheap Hetzner auctions back again.
++feels_ya_bro;