OpenVZ Forum


Home » Mailing lists » Users » RT priority processes in a VE.
RT priority processes in a VE. [message #12223] Fri, 20 April 2007 23:38 Go to next message
Daniel Pittman is currently offline  Daniel Pittman
Messages: 26
Registered: January 2007
Junior Member
G'day. I am using OpenVZ to split a few servers for security and
management reasons -- all the VE environments are run by me and trusted
and all that.

As part of this I want to run some software in the VE with real-time
priority threads (Asterisk, possibly other software) in our system.

Unfortunately I can't work out what settings, if any, make it possible
to permit this inside the VE and reading the kernel patch didn't help.

Is it possible to run a process with FIFO scheduling priority in a VE?

If so, how do I permit this?

Regards,
Daniel
--
Digital Infrastructure Solutions -- making IT simple, stable and secure
Phone: 0401 155 707 email: contact@digital-infrastructure.com.au
http://digital-infrastructure.com.au/
Re: RT priority processes in a VE. [message #12266 is a reply to message #12223] Mon, 23 April 2007 16:30 Go to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

Daniel Pittman wrote:
> G'day. I am using OpenVZ to split a few servers for security and
> management reasons -- all the VE environments are run by me and trusted
> and all that.
>
> As part of this I want to run some software in the VE with real-time
> priority threads (Asterisk, possibly other software) in our system.
>
> Unfortunately I can't work out what settings, if any, make it possible
> to permit this inside the VE and reading the kernel patch didn't help.
>
> Is it possible to run a process with FIFO scheduling priority in a VE?

first, it requires CAP_SYS_ADMIN capability, which maybe insecure to grant to VE.
see sched_setscheduler() for details. You can relax this check if required.

next, FIFO priority inside VE affects one particular VE only.
i.e. these tasks won't behave as FIFO compared to other VE processes and will share
CPU time with other VEs according to VE cpuuints.

Thanks,
Kirill
Previous Topic: adding secondary IP
Next Topic: Timer Frequency
Goto Forum:
  


Current Time: Tue May 21 23:51:39 GMT 2024

Total time taken to generate the page: 0.01617 seconds