Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Docker missing statistics
@ 2018-06-28  7:19 Roy Arav
  2018-06-28  7:39 ` Thomas Petazzoni
  2018-06-28  7:45 ` Baruch Siach
  0 siblings, 2 replies; 3+ messages in thread
From: Roy Arav @ 2018-06-28  7:19 UTC (permalink / raw)
  To: buildroot

Hi,

I am running buildroot on raspberry Pi3 and I fail to see docker statistics.
I can see CPU statistics but not memory nor network statistics.

Notes:
1. When running docker info I see the following warnings
WARNING: No memory limit support
WARNING: No swap limit support
WARNING: No kernel memory limit support
WARNING: No oom kill disable support

2.  I ran the following check script
https://raw.githubusercontent.com/moby/moby/master/contrib/check-config.sh
and the result is that there are 2 kernel flags missing
CONFIG_CGROUP_HUGETLB=y
CONFIG_AUFS_FS=y

3. I tried adding them and two more flags that I thought they might depend
on:
CONFIG_HUGETLBFS=y
CONFIG_HUGETLB_PAGE=y

But from some reason they are not shown during runtime.

Any ideas?
Thanks
Roy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180628/4a4a2b60/attachment.html>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] Docker missing statistics
  2018-06-28  7:19 [Buildroot] Docker missing statistics Roy Arav
@ 2018-06-28  7:39 ` Thomas Petazzoni
  2018-06-28  7:45 ` Baruch Siach
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2018-06-28  7:39 UTC (permalink / raw)
  To: buildroot

Hello,

On Thu, 28 Jun 2018 10:19:11 +0300, Roy Arav wrote:

> 2.  I ran the following check script
> https://raw.githubusercontent.com/moby/moby/master/contrib/check-config.sh
> and the result is that there are 2 kernel flags missing
> CONFIG_CGROUP_HUGETLB=y
> CONFIG_AUFS_FS=y
> 
> 3. I tried adding them and two more flags that I thought they might depend

How did you add them ?

To change the Linux kernel configuration, you need to use "make
linux-menuconfig" or "make linux-xconfig".

Best regards,

Thomas Petazzoni
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] Docker missing statistics
  2018-06-28  7:19 [Buildroot] Docker missing statistics Roy Arav
  2018-06-28  7:39 ` Thomas Petazzoni
@ 2018-06-28  7:45 ` Baruch Siach
  1 sibling, 0 replies; 3+ messages in thread
From: Baruch Siach @ 2018-06-28  7:45 UTC (permalink / raw)
  To: buildroot

Hi Roy,

On Thu, Jun 28, 2018 at 10:19:11AM +0300, Roy Arav wrote:
> I am running buildroot on raspberry Pi3 and I fail to see docker statistics.
> I can see CPU statistics but not memory nor network statistics.
> 
> Notes:
> 1. When running docker info I see the following warnings
> WARNING: No memory limit support
> WARNING: No swap limit support
> WARNING: No kernel memory limit support
> WARNING: No oom kill disable support

You need to enable memory control group (MEMCG) related kernel configuration 
options, and probably a few others. See 
https://github.com/moby/moby/issues/4250 . Note that CONFIG_MEMCG_KMEM is only 
for kernels older than 4.6. Newer kernels provide other config symbols for the 
same functionality.

This is not directly related to Buildroot though.

baruch

> 2.  I ran the following check script
> https://raw.githubusercontent.com/moby/moby/master/contrib/check-config.sh
> and the result is that there are 2 kernel flags missing
> CONFIG_CGROUP_HUGETLB=y
> CONFIG_AUFS_FS=y
> 
> 3. I tried adding them and two more flags that I thought they might depend
> on:
> CONFIG_HUGETLBFS=y
> CONFIG_HUGETLB_PAGE=y
> 
> But from some reason they are not shown during runtime.
> 
> Any ideas?
> Thanks
> Roy

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-06-28  7:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-28  7:19 [Buildroot] Docker missing statistics Roy Arav
2018-06-28  7:39 ` Thomas Petazzoni
2018-06-28  7:45 ` Baruch Siach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox