About this list Date view Thread view Subject view Author view Attachment view

From: Herbert Poetzl (herbert_at_13thfloor.at)
Date: Tue 23 Nov 2004 - 15:44:22 GMT


On Tue, Nov 23, 2004 at 03:00:06PM +0200, Andreea Gansac wrote:
> Hi,
>
> I am testing the linux vservers development release 1.9.3.
> I have 2 problems:
>
> 1. When I check the limits with vlimit I can't see any cpu resource:
> [root_at_v2 linux-2.6.9]# vlimit -c 49167 --all -d
> RSS N/A N/A 100000
> NPROC N/A N/A 70
> NOFILE N/A N/A inf
> MEMLOCK N/A N/A inf
> AS N/A N/A inf

> Though :
>
> [root_at_v2 util-vserver]# vlimit -c 49168 --cpu 30
> vc_set_rlimit(): Success

we could do CPU limits (similar to ulimit) but would
you really want to limit a vserver to, let's say 1minute
of CPU usage in total?

> If I run a process that does only while(1){} inside the vserver, the
> cpu is used only 25%-30%. So the limitations work but not how I want
> them to. No matter how much I set the cpu limit (10,20,50,100,200...)
> and no matter how many processes I have in the vserver the cpu is used
> 25-30%.
> I think I missed a piece of the puzzle.

yep, probably the hard scheduler, the token bucket
and the vsched tool ...

> 2. How can I clone a vserver? On 2.4.x I had the newvserver utility.
> On 2.6 I have vbuild and vcopy but neither of them works.
>
> [root_at_v2 util-vserver]# ./vbuild --debug --test andreea andreea_clone
> sh: line 1: /usr/lib/util-vserver/distrib-info: No such file or
> directory
> Can't lstat file andreea/.vdir (No such file or directory)
>
> [root_at_v2 util-vserver]# ./vcopy andreea_clone andreea
> unification not configured for source vserver
>
> Reading the error I get at vcopy I understand that vcopy creates vserver
> using unification. I don't want unification. I want every vserver to
> have it's own logical volume, thus I can limit the space for every
> vserver very easy.
> I think vbuild is what I want but it's not working. Is there another
> utility I don't know about? Or how can I make vbuild work?

I think vserver <name> build ... is what you want ...

HTH,
Herbert

> Thanks a lot.
>
> --
> Andreea Gansac
> Web Engineer
> iNES Group
> tel: 021-232.21.12
> fax: 021-232.34.61
> www.ines.ro
>
> _______________________________________________
> Vserver mailing list
> Vserver_at_list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Tue 23 Nov 2004 - 15:44:35 GMT by hypermail 2.1.3