Re: [Vserver] Problem with nice inside a vserver

From: Herbert Poetzl <herbert_at_13thfloor.at>
Date: Sun 12 Mar 2006 - 13:19:57 GMT
Message-ID: <20060312131957.GA30722@MAIL.13thfloor.at>

On Sun, Mar 12, 2006 at 12:26:43PM +1000, Russell Kliese wrote:
>
> >> $NICE is set to 10 in /etc/updatedb.conf, so -n ${NICE:-10} is the same
> >> as
> >> -n 0.
> >>
> > In a shell script? Doesn't ":-" set a default value if the variable is
> > not already set?
>
> Yes, my mistake. With $NICE being 10, the priority in this cause would be
> incremented by 10 (i.e. lowered).
>
> Anyway, this is an aside. Even when running nice without the -n option
> still causes problems.

hmm, two things:

 a) could you strace -fF -o nice.trace the nice command as is?
 b) what does your ulimit -a show on the host and guest?

TIA,
Herbert

> >> >> >> >> >>Would enabling CAP_SYS_NICE help in this case even though a
> >> >> lower
> >> >> >> >> >>priority is being set? Or is there something else causing
> >> this
> >> >> >> >> problem?
>
> _______________________________________________
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Sun Mar 12 13:20:18 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sun 12 Mar 2006 - 13:20:24 GMT by hypermail 2.1.8