Re: [Vserver] Re: vcontext: vc_create_context(): Out of memory

2007-02-26 Thread Herbert Poetzl
On Tue, Feb 27, 2007 at 10:30:58AM +0900, Taisuke Yamada wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> OK, thanks to your instruction, I've recompiled the kernel,
> switched to static context configuration, and now I'm running
> around 500 virtual-hosts without a hitch.

sounds good to me ...

> However...I have no idea how I can reach to anywhere near
> 5000-8000 contexts...
> 
> Do all the numbers below mean running 5000-8000 of
> 
>   chcontext --ctx  command &

basically, a context can be as small as a single
process, or as large as a complete Linux distro

of course, the number of contexts you can run
depends on the amount of resource you have available
(CPU, RAM, I/O, Network, ...)

> commands directly, instead of hosting virtual-environment with
> different context? Since each hosted environment takes several
> MBs of memory and ~100MB of disk space (at least with "hashified"
> Debian install), even 1000 seems remote to me.

well, multiply the used resources by 1000, get
a machine which matches that and you will be 
able to run 1000+ guests ...

HTC,
Herbert

> >>> Yesterday, I tried to find out absolute maximum number of
> >>> virtualhosts I can host on my server, and got this message after
> >>> 40-50VMs:
> >> yes, known issue with the debian kernel, if you
> >> switch to mainline kernels, you will get to
> >> roughly 5000-8000 contexts ...
> > 
> > That is, before you run out of pids. On my x86 test system with 384 MiB of
> > RAM, I was able to get 6073 contexts running each with a sleep 3600
> > process running before fork started failing with EAGAIN.
> 
> Best Regards,
> - --
> Taisuke Yamada <[EMAIL PROTECTED]>, http://rakugaki.org/
> 2268 E9A2 D4F9 014E F11D  1DF7 DCA3 83BC 78E5 CD3A
> 
> Message to my public address may not be handled in a timely manner.
> For a direct contact, please use my private address on my namecard.
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.1 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQFF44nS3KODvHjlzToRAhBHAKCV8urmxKNv6i6foG1eG2KEKhmj/ACgh5DU
> RdQzSjfIB5EF5+HHdIA9Pak=
> =y5ZB
> -END PGP SIGNATURE-
> ___
> 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] Re: vcontext: vc_create_context(): Out of memory

2007-02-26 Thread Taisuke Yamada
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

OK, thanks to your instruction, I've recompiled the kernel,
switched to static context configuration, and now I'm running
around 500 virtual-hosts without a hitch.

However...I have no idea how I can reach to anywhere near
5000-8000 contexts...

Do all the numbers below mean running 5000-8000 of

  chcontext --ctx  command &

commands directly, instead of hosting virtual-environment with
different context? Since each hosted environment takes several
MBs of memory and ~100MB of disk space (at least with "hashified"
Debian install), even 1000 seems remote to me.

>>> Yesterday, I tried to find out absolute maximum number of
>>> virtualhosts I can host on my server, and got this message after
>>> 40-50VMs:
>> yes, known issue with the debian kernel, if you
>> switch to mainline kernels, you will get to
>> roughly 5000-8000 contexts ...
> 
> That is, before you run out of pids. On my x86 test system with 384 MiB of
> RAM, I was able to get 6073 contexts running each with a sleep 3600
> process running before fork started failing with EAGAIN.

Best Regards,
- --
Taisuke Yamada <[EMAIL PROTECTED]>, http://rakugaki.org/
2268 E9A2 D4F9 014E F11D  1DF7 DCA3 83BC 78E5 CD3A

Message to my public address may not be handled in a timely manner.
For a direct contact, please use my private address on my namecard.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF44nS3KODvHjlzToRAhBHAKCV8urmxKNv6i6foG1eG2KEKhmj/ACgh5DU
RdQzSjfIB5EF5+HHdIA9Pak=
=y5ZB
-END PGP SIGNATURE-
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] IPv6 with Bruno patch doesn't work for me

2007-02-26 Thread Bruno
Hi Eddy,

Well, I always setup IP addresses on the host, thus don't use util-vserver for 
configuring interfaces.

In order for util-vserver to configure your interfaces you need the following 
file with correct content:
  interfaces/X/dev(content is interface name)

Use
  interfaces/X/nodev  (empty file)
to tell util-vserver not to bother setting up any address on any interface 
(e.g. that's done by the host)

If you see an error message like "Broadcast can be set only for IPv4 
addresses" you will need to check with the following patch (against 
util-vserver 0.30.213-rc4) or ask Daniel (daniel_hozac) for help.
http://people.linux-vserver.org/~dhozac/p/uv/experimental/delta-ipv6-fix01.diff

Hope this helps,
Bruno


On Monday 26 February 2007 20:57:35 Eddy Vervest wrote:
> Hi Bruno,
>
> After setting up the same ipv6-address on the host system it works
> fine thanks for the help (and the patch in the first place)!
>
> The documentation on http://linux-vserver.org/IPv6 however suggest that
> with version 0.30.212 it will be done all automagically when added to the
> interface configuration of the vserver (like there isn't a difference
> between ipv4 and 6 in configuration). With just ipv4 I didn't have to add
> the quest ip address to the host like I needed to do with ipv6.
>
> Thanks,
> Eddy
>
> > Hi Eddy,
> >
> > Could you provide the contents of /proc/virtnet/106/info as well as check
> > that
> > the address is correctly set on the host?
> >
> > Adding an address to a guest that is not configured on the host will just
> > tell
> > the kernel that whenever that address gets available the guest may also
> > use
> > it. (this is the same for IPv4)
> >
> > If both show the same address and the address is not visible inside the
> > guest
> > (also check with ip from iproute2 packages, though both should work and
> > do here) then more hunting is required...
> >
> > Regards,
> > Bruno
> >
> > On Monday 26 February 2007 13:36:21 Eddy Vervest wrote:
> >> Hi All,
> >>
> >> After looking at http://linux-vserver.org/IPv6 I decided to give it a
> >> try,
> >> but I wasn't successfull.
> >>
> >> I used your patch-2.6.19.3-vs2.2.0.ipv6-rc13.1.diff patch and applied it
> >> (patched and compiled without errors), but no ipv6 support in my
> >> vserver.
> >>
> >> # uname -a
> >> Linux named 2.6.19.3-vs2.2.0.ipv6-rc13.1 #1 Thu Feb 22 20:59:52 CET 2007
> >> i686 GNU/Linux
> >>
> >> >From the host using naddress doesn't show an error:
> >>
> >> # naddress --add --nid 106 --ip 2001:610:614::53/48
> >> Adding 2001:610:614::53
> >>
> >> , but the ipv6 address doesn't show up in the quest using "ifconfig"
> >>
> >> Adding the IPv6 specification to the interfaces directory didn't work
> >> either. Running vserver-util 0.30.212 (build from debian/sid sources).
> >>
> >> What do I do wrong?
> >>
> >> Regards, Eddy
> >>
> ___
> 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


Re: [Vserver] IPv6 with Bruno patch doesn't work for me

2007-02-26 Thread Eddy Vervest
Hi Bruno,

After setting up the same ipv6-address on the host system it works
fine thanks for the help (and the patch in the first place)!

The documentation on http://linux-vserver.org/IPv6 however suggest that
with version 0.30.212 it will be done all automagically when added to the
interface configuration of the vserver (like there isn't a difference
between ipv4 and 6 in configuration). With just ipv4 I didn't have to add
the quest ip address to the host like I needed to do with ipv6.

Thanks,
Eddy

> Hi Eddy,
>
> Could you provide the contents of /proc/virtnet/106/info as well as check
> that
> the address is correctly set on the host?
>
> Adding an address to a guest that is not configured on the host will just
> tell
> the kernel that whenever that address gets available the guest may also
> use
> it. (this is the same for IPv4)
>
> If both show the same address and the address is not visible inside the
> guest
> (also check with ip from iproute2 packages, though both should work and do
> here) then more hunting is required...
>
> Regards,
> Bruno
>
>
> On Monday 26 February 2007 13:36:21 Eddy Vervest wrote:
>> Hi All,
>>
>> After looking at http://linux-vserver.org/IPv6 I decided to give it a
>> try,
>> but I wasn't successfull.
>>
>> I used your patch-2.6.19.3-vs2.2.0.ipv6-rc13.1.diff patch and applied it
>> (patched and compiled without errors), but no ipv6 support in my
>> vserver.
>>
>> # uname -a
>> Linux named 2.6.19.3-vs2.2.0.ipv6-rc13.1 #1 Thu Feb 22 20:59:52 CET 2007
>> i686 GNU/Linux
>>
>> >From the host using naddress doesn't show an error:
>>
>> # naddress --add --nid 106 --ip 2001:610:614::53/48
>> Adding 2001:610:614::53
>>
>> , but the ipv6 address doesn't show up in the quest using "ifconfig"
>>
>> Adding the IPv6 specification to the interfaces directory didn't work
>> either. Running vserver-util 0.30.212 (build from debian/sid sources).
>>
>> What do I do wrong?
>>
>> Regards, Eddy
>>
>> ___
>> 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


Re: [Vserver] IPv6 with Bruno patch doesn't work for me

2007-02-26 Thread Bruno
Hi Eddy,

Could you provide the contents of /proc/virtnet/106/info as well as check that 
the address is correctly set on the host?

Adding an address to a guest that is not configured on the host will just tell 
the kernel that whenever that address gets available the guest may also use 
it. (this is the same for IPv4)

If both show the same address and the address is not visible inside the guest 
(also check with ip from iproute2 packages, though both should work and do 
here) then more hunting is required...

Regards,
Bruno


On Monday 26 February 2007 13:36:21 Eddy Vervest wrote:
> Hi All,
>
> After looking at http://linux-vserver.org/IPv6 I decided to give it a try,
> but I wasn't successfull.
>
> I used your patch-2.6.19.3-vs2.2.0.ipv6-rc13.1.diff patch and applied it
> (patched and compiled without errors), but no ipv6 support in my vserver.
>
> # uname -a
> Linux named 2.6.19.3-vs2.2.0.ipv6-rc13.1 #1 Thu Feb 22 20:59:52 CET 2007
> i686 GNU/Linux
>
> >From the host using naddress doesn't show an error:
>
> # naddress --add --nid 106 --ip 2001:610:614::53/48
> Adding 2001:610:614::53
>
> , but the ipv6 address doesn't show up in the quest using "ifconfig"
>
> Adding the IPv6 specification to the interfaces directory didn't work
> either. Running vserver-util 0.30.212 (build from debian/sid sources).
>
> What do I do wrong?
>
> Regards, Eddy
>
> ___
> 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] IPv6 with Bruno patch doesn't work for me

2007-02-26 Thread Eddy Vervest
Hi All,

After looking at http://linux-vserver.org/IPv6 I decided to give it a try,
but I wasn't successfull.

I used your patch-2.6.19.3-vs2.2.0.ipv6-rc13.1.diff patch and applied it
(patched and compiled without errors), but no ipv6 support in my vserver.

# uname -a
Linux named 2.6.19.3-vs2.2.0.ipv6-rc13.1 #1 Thu Feb 22 20:59:52 CET 2007
i686 GNU/Linux

>From the host using naddress doesn't show an error:
# naddress --add --nid 106 --ip 2001:610:614::53/48
Adding 2001:610:614::53

, but the ipv6 address doesn't show up in the quest using "ifconfig"

Adding the IPv6 specification to the interfaces directory didn't work either.
Running vserver-util 0.30.212 (build from debian/sid sources).

What do I do wrong?

Regards, Eddy

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver