Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Running CPU heavy tasks with high nice value?
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.

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.

  • deankdeank Member, Troll

    Yes.

  • No.

  • hostdarehostdare Member, Patron Provider

    yes

  • Definitely maybe.

  • You can search for

    site:lowendtalk.com cpulimit
    

    [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.

    Thanked by 2nulldev philipc
  • @seanho said:
    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.

  • @WSS said:

    @seanho said:
    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.

    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.

  • @seanho said:

    @WSS said:

    @seanho said:
    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.

    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.

  • @seanho said:
    Yep, I'm hoping the cryptocurrency landscape changes soon so we can get our cheap Hetzner auctions back again.

    ++feels_ya_bro;

Sign In or Register to comment.