On Wed, Aug 17, 2005 at 05:48:23PM +0200, Matvey Gladkikh wrote:
> On 17/08/05 14:28 +0200, Herbert Poetzl wrote:
> > On Wed, Aug 17, 2005 at 11:59:07AM +0200, Matvey Gladkikh wrote:
> > > Thank you Herbert!
> > > 
> > > What is the sintax of /etc/vservers/rlimits/{cpu.hard, soft, minimal}
> > > files and other limits possible values.
> > 
> > (from the FlowerPage)
> > # resource.hard
> >   A file which contains the hard- of the given resource in the first
> >   line. The special keyword 'inf' is recognized.
> > 
> > so basically positive numbers and the keyword 'inf'
> > 
> > do you really want to set the rlimit for the cpu resource?
> > because this isn't implemented yet as we all think that
> > nobody really wants to do that ...
> > 
> > (  -t     The maximum amount of cpu time in seconds )
> > 
> > HTH,
> > Herbert
> > 
> And how to setup cpu limits so that CPUBURN will not eat all the
> server cpu running on guest server?
> BTW i did not fully understood the spelling of resource.<any>
> 
> if I put: 
> echo "15inf" > /etc/vservers/.../rlimits/cpu.hard
> what will it be 15 second of hard cpu what :-)?

that would be a config error, as it is either 15
or the symbolic name 'inf' for infinity/unlimited

assuming that you would use 15, then that would be 
an upper limit of 15 seconds CPU time
(as I said, probably not what you are looking for)

> what will be if i put:
> echo "15inf" > /etc/vservers/.../rlimits/cpu.soft

soft and min are not implemented yet, but in future
soft will be a limit at which penalization starts
and min will be some kind of guarantee ...

> and what if i put:
> echo "15inf" > /etc/vservers/.../rlimits/cpu.min
> 
> how can I limit guest server which for example runs CPUBURN all the
> time to use 15% of the server CPU?

you want to look into the hard cpu scheduler for
that (and the token bucket setup)
(this is limiting the CPU resources, not the time)

HTH,
Herbert

> 
> -- 
> ?? ??????????????????,
> ???????????? ??????????????
> ?????? "????????-??????????"
> ??. ????????????, ????. ?????????????????? ??????, 9, ????. 803
> ??????./???????? (095) 981-60-42
> _______________________________________________
> Vserver mailing list
> [email protected]
> http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
[email protected]
http://list.linux-vserver.org/mailman/listinfo/vserver

Reply via email to