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

From: Taisuke Yamada <tyamadajp_at_list.rakugaki.org>
Date: Tue 27 Feb 2007 - 01:30:58 GMT
Message-ID: <45E389D2.2030508@list.rakugaki.org>

-----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 <n> 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 <tyamadajp_at_spam.rakugaki.org>, 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
Received on Tue Feb 27 01:37:10 2007

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Tue 27 Feb 2007 - 01:37:17 GMT by hypermail 2.1.8