From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Serge E. Hallyn" Subject: Re: Fwd: Re: lxc-performance? Date: Tue, 12 Oct 2010 17:47:27 -0500 Message-ID: <20101012224727.GA17653@hallyn.com> References: <4CAED1CF.6050908@univ-fcomte.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <4CAED1CF.6050908-jI/kxupzh7HSLaPbPq81kw@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: MALATTAR Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org List-Id: containers.vger.kernel.org Quoting MALATTAR (mouhannad.alattar-jI/kxupzh7HSLaPbPq81kw@public.gmane.org): > = > = > -------- Message original -------- > Sujet: Re: lxc-performance > Date : Thu, 07 Oct 2010 16:56:05 +0200 > De : MALATTAR > Pour : MALATTAR > = > = > = > Le 07/10/2010 16:43, MALATTAR a =E9crit : > > ------------------------------------------------------------------------ > > 06.10.2010 23:41, MALATTAR ?????: > > > > >/ 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 m= uch > > />/ bigger than this value, > > / > > How do you measure memory usage? > = > by using the command: > lxc-cgroup -n dora1 memory.usage_in_bytes > > 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