Skip to contentSkip to conversation

lxc-performance?

DISCUSSION MALATTAR 5 participants 8 messages Oct 8, 2010 – Oct 15, 2010 4 messages not in the archive

lore
Share & tools
lore

MALATTAR

author
#0 lore raw

-------- Message original --------
Sujet: Re: lxc-performance
Date : Thu, 07 Oct 2010 16:56:05 +0200
De : MALATTAR <mouhannad.alattar-jI/[email protected]>
Pour : MALATTAR <mouhannad.alattar-jI/[email protected]>

Quoted 8 lines · MALATTAR

------------------------------------------------------------------------
06.10.2010 23:41, MALATTAR ?????:

Quoted 1 line

/ 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?

by using the command:
lxc-cgroup -n dora1 memory.usage_in_bytes

Quoted 2 lines

What's in memory.max_usage_in_bytes of
the container's cgroup?

executing the next command lxc-cgroup -n dora1 memory.max_usage_in_bytes gave me 70193152 bytes

Quoted 10 lines
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
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): 4CAED1CF.6050908-jI/[email protected]

#2 lore raw
Quoted 20 lines · MALATTAR

-------- Message original --------
Sujet: Re: lxc-performance
Date : Thu, 07 Oct 2010 16:56:05 +0200
De : MALATTAR <mouhannad.alattar-jI/[email protected]>
Pour : MALATTAR <mouhannad.alattar-jI/[email protected]>

Quoted 8 lines · MALATTAR

------------------------------------------------------------------------
06.10.2010 23:41, MALATTAR ?????:

Quoted 1 line

/ 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?

Quoted 6 lines

by using the command:
lxc-cgroup -n dora1 memory.usage_in_bytes

Quoted 2 lines

What's in memory.max_usage_in_bytes of
the container's cgroup?

executing the next command lxc-cgroup -n dora1 memory.max_usage_in_bytes gave me 70193152 bytes

Interesting - that's not the value you set in your intro email.

What does /var/lib/lxc/dora1/config have?

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#4 lore raw
Quoted 19 lines · Serge E. Hallyn
Quoted 18 lines · MALATTAR

-------- Message original --------
Sujet: Re: lxc-performance
Date : Thu, 07 Oct 2010 16:56:05 +0200
De : MALATTAR<mouhannad.alattar-jI/[email protected]>
Pour : MALATTAR<mouhannad.alattar-jI/[email protected]>

Quoted 8 lines · MALATTAR

------------------------------------------------------------------------
06.10.2010 23:41, MALATTAR ?????:

Quoted 1 line

/ 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?

Quoted 7 lines
Quoted 6 lines

by using the command:
lxc-cgroup -n dora1 memory.usage_in_bytes

Quoted 2 lines

What's in memory.max_usage_in_bytes of
the container's cgroup?

executing the next command lxc-cgroup -n dora1 memory.max_usage_in_bytes gave me 70193152 bytes

Interesting - that's not the value you set in your intro email.

???

Quoted 2 lines

What does /var/lib/lxc/dora1/config have?

lxc.utsname = dora1
lxc.tty = 4
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br-node1
lxc.network.name = eth0
lxc.network.mtu = 1500
lxc.network.ipv4 = 10.0.0.1/24
lxc.network.hwaddr = 12:DA:00:4B:54:45
lxc.rootfs = /lxc/rootfs.fedora
lxc.mount = /lxc/fstab.fedora
lxc.cgroup.devices.deny = a

# /dev/null and zero
lxc.cgroup.devices.allow = c 1:3 rwm
lxc.cgroup.devices.allow = c 1:5 rwm
# consoles
lxc.cgroup.devices.allow = c 5:1 rwm
lxc.cgroup.devices.allow = c 5:0 rwm
lxc.cgroup.devices.allow = c 4:0 rwm
lxc.cgroup.devices.allow = c 4:1 rwm
# /dev/{,u}random
lxc.cgroup.devices.allow = c 1:9 rwm
lxc.cgroup.devices.allow = c 1:8 rwm
# /dev/pts/* - pts namespaces are "coming soon"
lxc.cgroup.devices.allow = c 136:* rwm
lxc.cgroup.devices.allow = c 5:2 rwm
# rtc
lxc.cgroup.devices.allow = c 254:0 rwm
lxc.cgroup.memory.limit_in_bytes = 1524435456
lxc.pts=1
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
#5 lore raw
In reply to a message not in the archive
Quoted 10 lines · On Fri, 08 Oct 2010 10:09:51 +0200 MALATTAR <[email protected]>…
Quoted 8 lines · MALATTAR

------------------------------------------------------------------------
06.10.2010 23:41, MALATTAR ?????:

Quoted 1 line

/ 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?

Quoted 7 lines

by using the command:
lxc-cgroup -n dora1 memory.usage_in_bytes

Quoted 2 lines

What's in memory.max_usage_in_bytes of
the container's cgroup?

executing the next command lxc-cgroup -n dora1 memory.max_usage_in_bytes gave me 70193152 bytes

Hmm. what latencytop shows ?

You can see this kind of output.
==
Cause Maximum Percentage

Writing a page to disk                            551.6 msec         36.8 %
Fork() system call                                273.7 msec          1.1 %
Page fault                                        253.9 msec         29.5 %
Writing buffer to disk (synchronous)              225.9 msec          2.9 %
Creating block layer request                      202.7 msec         17.1 %
Walking directory tree                            161.5 msec          1.4 %
[congestion_wait]                                  97.6 msec          4.4 %
Executing a program                                97.1 msec          0.3 %
synchronous write                                  73.9 msec          0.1 %

==

IMHO, if memory limit is the problem, "Page Fault" tend to be big.

Thanks,
-Kame

_______________________________________________
Containers mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/containers

A message that is not in the archive (sent off-list or not yet received): 20101012140509.0ab6c617.kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org

author
#7 lore raw
Quoted 33 lines · KAMEZAWA Hiroyuki
Quoted 9 lines · On Fri, 08 Oct 2010 10:09:51 +0200 MALATTAR<[email protected]>…
Quoted 8 lines · MALATTAR

------------------------------------------------------------------------
06.10.2010 23:41, MALATTAR ?????:

Quoted 1 line

/ 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?

Quoted 7 lines

by using the command:
lxc-cgroup -n dora1 memory.usage_in_bytes

Quoted 2 lines

What's in memory.max_usage_in_bytes of
the container's cgroup?

executing the next command lxc-cgroup -n dora1 memory.max_usage_in_bytes gave me 70193152 bytes

Hmm. what latencytop shows ?

You can see this kind of output.
==
Cause Maximum Percentage

Writing a page to disk                            551.6 msec         36.8 %
Fork() system call                                273.7 msec          1.1 %
Page fault                                        253.9 msec         29.5 %
Writing buffer to disk (synchronous)              225.9 msec          2.9 %
Creating block layer request                      202.7 msec         17.1 %
Walking directory tree                            161.5 msec          1.4 %
[congestion_wait]                                  97.6 msec          4.4 %
Executing a program                                97.1 msec          0.3 %
synchronous write                                  73.9 msec          0.1 %
Quoted 9 lines

==

IMHO, if memory limit is the problem, "Page Fault" tend to be big.

Thanks,
-Kame

executing latencytop during the execution of my program gave me:
Cause
Maximum Percentage
fsync() on a file (type 'F' for details) 45.1
msec 2.2 %
Waiting for event (poll) 5.0
msec 47.9 %
Userspace lock contention 5.0
msec 43.1 %
Waiting for event (select) 4.8
msec 5.7 %
Throttling GPU while waiting for commands 3.4 msec 0.4 %
[i915_do_wait_request] 3.3
msec 0.5 %
Waiting for data on unix socket 0.3
msec 0.1 %
Waiting for TTY data 0.2
msec 0.1 %

Process mysqld (291) Total: 2.3 msec
Waiting for data on unix socket 0.3 msec 100.0 %

It seems that there is no problem...

also memtest command was able to allocate up to 1024MB but it takes a long time
for one loop only ...
So, i think the problem is in my program not in the container, is not it?

a+

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



_______________________________________________
Containers mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/containers

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

#9 lore raw
Quoted 66 lines · MALATTAR
Quoted 35 lines · KAMEZAWA Hiroyuki
Quoted 9 lines · On Fri, 08 Oct 2010 10:09:51 +0200 MALATTAR<mouhannad.alattar-jI/kxupzh7HSLaPbP…
Quoted 8 lines · MALATTAR

------------------------------------------------------------------------
06.10.2010 23:41, MALATTAR ?????:

Quoted 1 line

/  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?

Quoted 7 lines

by using the command:
lxc-cgroup -n dora1 memory.usage_in_bytes

Quoted 2 lines

   What's in memory.max_usage_in_bytes of
the container's cgroup?

executing the next command lxc-cgroup -n dora1 memory.max_usage_in_bytes gave me 70193152 bytes

Hmm. what latencytop shows ?

You can see this kind of output.
==
Cause                                                Maximum     Percentage Writing a page to disk                            551.6 msec         36.8 % Fork() system call                                273.7 msec          1.1 % Page fault                                        253.9 msec         29.5 % Writing buffer to disk (synchronous)              225.9 msec          2.9 % Creating block layer request                      202.7 msec         17.1 % Walking directory tree                            161.5 msec          1.4 % [congestion_wait]                                  97.6 msec          4.4 % Executing a program                                97.1 msec          0.3 % synchronous write                                  73.9 msec          0.1 % ==

Quoted 7 lines

IMHO, if memory limit is the problem, "Page Fault" tend to be big.

Thanks,
-Kame

executing latencytop during the execution of my program gave me:
Cause
Maximum     Percentage
fsync() on a file (type 'F' for details)                      45.1 msec       2.2 %
Waiting for event (poll)                                          5.0 msec         47.9 %
Userspace lock contention                                    5.0 msec         43.1 %
Waiting for event (select)                                      4.8 msec          5.7 %
Throttling GPU while waiting for commands         3.4 msec          0.4 % [i915_do_wait_request]                                         3.3 msec          0.5 %
Waiting for data on unix socket                             0.3 msec          0.1 %
Waiting for TTY data                                              0.2 msec          0.1 %

Process mysqld (291)                               Total:   2.3 msec Waiting for data on unix socket                     0.3 msec        100.0 %

Quoted 6 lines

It seems that there is no problem...

also memtest command was able to allocate up to 1024MB but it takes a long time
for one loop only ...
So, i think the problem is in my program not in the container, is not it?

Could you please dump your cgroup filesystem? What is memory.limit_in_bytes, memory.stat? fysnc() can clearly hold up things across the filesystem with ext3 and other FS. The source does sound like mysql database for the frequent fsync's - is that correct? What does the iotop output look like?

Balbir

#10 lore raw
In reply to a message not in the archive

14.10.2010 21:41, MALATTAR пишет:

Quoted 3 lines

also memtest command was able to allocate up to 1024MB but it takes a long time
for one loop only ...

OK, the problem is not with LXC memory limits therefore.

Quoted 1 line

So, i think the problem is in my program not in the container, is not it?

It could be your program or too low rlimits. What 'ulimit -a' says? Note that rlimits are per-process, so you should investigate their values from inside your program's operating environment.

_______________________________________________
Containers mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/containers

#11 lore raw
In reply to a message not in the archive
Quoted 20 lines · MALATTAR

-------- Message original --------
Sujet: Re: lxc-performance
Date : Thu, 07 Oct 2010 16:56:05 +0200
De : MALATTAR <mouhannad.alattar-jI/[email protected]>
Pour : MALATTAR <mouhannad.alattar-jI/[email protected]>

Quoted 8 lines · MALATTAR

------------------------------------------------------------------------
06.10.2010 23:41, MALATTAR ?????:

Quoted 1 line

/ 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?

Quoted 6 lines

by using the command:
lxc-cgroup -n dora1 memory.usage_in_bytes

Quoted 2 lines

What's in memory.max_usage_in_bytes of
the container's cgroup?

executing the next command lxc-cgroup -n dora1 memory.max_usage_in_bytes gave me 70193152 bytes

Ah, linux/Documentation/cgroups/memory.txt explains that max_usage_in_bytes reports the maximum memory usage recorded, not the limit. Look at
lxc-cgroup -n dora1 memory.max_usage_in_bytes

-serge