Skip to contentSkip to conversation

lxc performance?

DISCUSSION MALATTAR 2 participants 3 messages Oct 6, 2010 – Oct 13, 2010 1 message not in the archive

lore
Share & tools
lore

MALATTAR

author
#0 lore 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

Signature · 7 lines
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

A message that is not in the archive (sent off-list or not yet received): 4CAC98B9.4030903-jI/[email protected]

#2 lore raw

06.10.2010 23:41, MALATTAR пишет:

Quoted 3 lines

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,

How do you measure memory usage? What's in memory.max_usage_in_bytes of the container's cgroup?
_______________________________________________
Containers mailing list [email protected]
https://lists.linux-foundation.org/mailman/listinfo/containers