On Sat, Jan 20, 2007 at 05:02:27PM -0800, Jennifer Chou wrote:
> Hi Herbert,
>
> Thanks for the pomprt reply. I have tried to put all the following
> files with
> some number (i.e. 2048 for example) to try out.
>
> (BTW, the doc in ulimits section does not mention
> supporting of ulimits on core though)
>
> /etc/vserver<guestos>/rlimits/core
> /etc/vserver<guestos>/rlimits/core.hard
> /etc/vserver<guestos>/rlimits/core.soft
>
> /etc/vserver<guestos>/ulimits/core
> /etc/vserver<guestos>/ulimits/core.hard
> /etc/vserver<guestos>/ulimits/core.soft
>
> Then I do:
> vserver guestos stop
> vserver guestos start
>
> I got the same error as "vc_set_rlmit: Unknow error 524)
> I assume I got this from the rlimts/core setting.
probably, but the fact that you get the 'unknown error'
points towards older tools, which might not support the
ulimits at all ...
> Then I do:
> vserver guestos enter
> ulimit -c
>
> (I still got 0 and not the value I set in the ulimits file ?)
>
> Any idea ?
could be related to several things like:
- older tools
- missing support for that limit
> what I was trying to do is to use CLI for customer to setup
> their default corefile size in that Vserver during runtime.
> The value can take effect after Vserver restart.
how do the customers reach the guest? via ssh or
something like that? because if, then you could also
set those limits on a per login basis via pam
anyway, kernel and tool version would be appreciated
TIA,
Herbert
> Thanks,
>
> Jennifer
>
>
> On 1/20/07, Herbert Poetzl <herbert@13thfloor.at> wrote:
> >
> >On Sat, Jan 20, 2007 at 11:56:55AM -0800, Jennifer Chou wrote:
> >> Hi,
> >>
> >> I am trying to use vlimit to setup the corefile size for
> >> the Vserver. For example.
> >>
> >> vlimit -c ctx_id --core 2048
> >>
> >> I got the
> >> vc_set_rlimit(): Unknow error 524
> >>
> >> Does vlimit command support core file size change ?
> >
> >hmm, no, the idea of the vlimit (rlimit for an
> >entire guest) is kind of different from the ulimit
> >(rlimit per user/process) ... basically the vlimits
> >are limits for the accumulated resources used up
> >by a guest/context, which is somewhat hard to define
> >for things like the 'core dump file size'
> >
> >what you probably want to set is the default core
> >dump size (ulimit) for that guest, which should not
> >be too hard to set either (not for the running guest
> >though, as it has to be inherited for all processes)
> >
> >i.e. /etc/vservers/<guest-name>/ulimits
> >(http://linux-vserver.org/util-vserver:Documentation)
> >
> >see http://linux-vserver.org/Resource_Limits for
> >details on which guest resources are accounted and
> >enforced ...
> >
> >HTC,
> >Herbert
> >
> >> Thanks,
> >>
> >> Jennifer
> >
> >> _______________________________________________
> >> 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
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Sun Jan 21 03:20:57 2007