From: MALATTAR <mouhannad.alattar-jI/kxupzh7HSLaPbPq81kw@public.gmane.org>
To: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
Subject: lxc performance?
Date: Wed, 06 Oct 2010 17:41:45 +0200 [thread overview]
Message-ID: <4CAC98B9.4030903@univ-fcomte.fr> (raw)
Hi all,
I subscribed in this list recently and i have some questions about lxc
performance.
firstly, let me explain where i am using lxc:
i am using lxc with ns3 in order to simulate adhoc network where i will
test my IDS(intrusion detection system for adhoc routing protocol).
i create until now only 10 containers with the same configuration (i
based on the tutorial
http://blog.bodhizazen.net/linux/lxc-configure-fedora-containers/)
my IDS is written in perl, using mysql dataBase and syslog service in
order to collect, treating the logs of the simulation and apply the
detection rules.
In order to have several types of devices(e.g., laptops, PDA and mobile
telephone) in adhoc network, i need to create the lxc containers with
different resources limits.
In other words, some of the containers must be powerful where others
must be supplied with limited resources. Also, i have to test the
effects of my IDS at the resources
(e.g, memory consumption)
Therefore, i used the next lxc-cgroup commands (recommended by Daniel
lezcano):
lxc-cgroup -n dora1 memory.usage_in_bytes (to get the current used
physical memory by the container dora1)
lxc-cgroup -n dora1 cpuacct.usage (to get the cpu sharing)
lxc-cgroup -n dora1 memory.limit_in_bytes 268435456 (to define the
available memory for the container as 256MB)
Finally, my problem(after the long introduction :-) ):
the container dora1, where i launch an instance of my IDS, does not take
more than 70 MB as memory even though the memory limit for it is much
bigger than this value,
as a result the IDS works very slowly (the detection operation, which is
composed of a simple perl script contacts with 3 tables in the DB, for 2
minutes of simulation takes more than 1 hour)
Someone has any idea how to give more resources for a container?
Creating several containers with different resources needs special
configuration?
NB: lastly i tried to create only one container without connecting it
with the ns3 simulation, but i still have the same problem.
i am using Ubuntu 10.04 lucid, the lxc system is fedora12
--
Mouhannad AlATTAR
Doctorant à L’UFR Sciences,Techniques et Gestion de l’Industrie
Pôle multimedia de Franche Comté - numerica
1, cours Leprince-Ringuet
25201 Montbéliard
Fixe bureau : 03 81 99 47 87
Portable : 06 16 71 05 10
next reply other threads:[~2010-10-06 15:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-06 15:41 MALATTAR [this message]
[not found] ` <4CAC98B9.4030903-jI/kxupzh7HSLaPbPq81kw@public.gmane.org>
2010-10-07 13:32 ` lxc performance? Pavel Labushev
2010-10-13 15:44 ` Pavel Labushev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CAC98B9.4030903@univ-fcomte.fr \
--to=mouhannad.alattar-ji/kxupzh7hslapbpq81kw@public.gmane.org \
--cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox