[Lxc-users] systemd-journald process using 100% cpu when lxc container is running

Boomer Zha zhashuyu at 163.com
Sun Nov 10 13:38:13 UTC 2013


Hi, All
My PC has 4 cpus and when I start a lxc container, the systemd-journald
process continues using 100% of one cpu, when I start another lxc
container, the same thing happens, see the attachment.

I'm wondering this is a systemd bug or my settings are wrong?

This is my lxc container config file
            # Template used to create this container: fedora
                  # Template script checksum (SHA-1):
                9f5d8af2dad4a973ac6dc672d680e24c5b4ddcba
                                    
                        lxc.network.type = veth
                         lxc.network.link = br0
                         lxc.network.flags = up
                 lxc.network.hwaddr = 3a:49:74:e4:4a:e7
                                    
                        lxc.network.type = veth
                         lxc.network.link = br1
                         lxc.network.flags = up
                 lxc.network.hwaddr = 3a:43:74:e4:4a:e7
                      lxc.network.ipv4=10.1.3.4/24
                                    
                  lxc.rootfs = /var/lib/lxc/db2/rootfs
                       lxc.utsname = db2.bsg.com
                              lxc.tty = 4
                             lxc.pts = 1024
                   lxc.mount = /var/lib/lxc/db2/fstab
       lxc.cap.drop = sys_module mac_admin mac_override sys_time
                                    
                            lxc.autodev = 1
                                    
     # When using LXC with apparmor, uncomment the next line to run
                              unconfined:
                      #lxc.aa_profile = unconfined
                                #cgroups
                      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
                 lxc.cgroup.devices.allow = c 136:* rwm
                  lxc.cgroup.devices.allow = c 5:2 rwm
                                 # rtc
                 lxc.cgroup.devices.allow = c 254:0 rm

This is the log
                [root at boomer yum.repos.d]# journalctl -f
            -- Logs begin at Sun 2013-11-03 12:00:45 CST. --
Nov 10 21:14:01 boomer.bsg.com gnome-session[838]: JS ERROR: !!! stack =
'"()@/home/boomer/.local/share/gnome-shell/extensions/StatusTitl....js:422
           Nov 10 21:14:01 boomer.bsg.com gnome-session[838]:
                wrapper()@/usr/share/gjs-1.0/lang.js:213
      Nov 10 21:14:01 boomer.bsg.com gnome-session[838]: ([object
                        GObject_Object],[object
  GObject_ParamSpec])@/home/boomer/.local/share/gnome-shell....js:343
   Nov 10 21:14:01 boomer.bsg.com gnome-session[838]: wrapper([object
                        GObject_Object],[object
           GObject_ParamSpec])@/usr/share/gjs-1.0/lang.js:213
         Nov 10 21:14:01 boomer.bsg.com gnome-session[838]: "'
Nov 10 21:14:15 boomer.bsg.com fprintd[2849]: ** Message: No devices in
                               use, exit
  Nov 10 21:17:23 boomer.bsg.com dbus-daemon[311]: dbus[311]: [system]
      Activating service name='org.freedesktop.PackageKit' (using
                             servicehelper)
 Nov 10 21:17:23 boomer.bsg.com dbus[311]: [system] Activating service
        name='org.freedesktop.PackageKit' (using servicehelper)
  Nov 10 21:17:23 boomer.bsg.com dbus-daemon[311]: dbus[311]: [system]
      Successfully activated service 'org.freedesktop.PackageKit'
    Nov 10 21:17:23 boomer.bsg.com dbus[311]: [system] Successfully
             activated service 'org.freedesktop.PackageKit'
 Nov 10 21:21:43 boomer.bsg.com kernel: SELinux: initialized (dev proc,
                    type proc), uses genfs_contexts
    Nov 10 21:21:43 boomer.bsg.com kernel: device veth9I79rb entered
                            promiscuous mode
   Nov 10 21:21:43 boomer.bsg.com kernel: IPv6: ADDRCONF(NETDEV_UP):
                     veth9I79rb: link is not ready
    Nov 10 21:21:43 boomer.bsg.com kernel: device veths3TY4f entered
                            promiscuous mode
   Nov 10 21:21:43 boomer.bsg.com kernel: IPv6: ADDRCONF(NETDEV_UP):
                     veths3TY4f: link is not ready
 Nov 10 21:21:43 boomer.bsg.com kernel: br1: port 1(veths3TY4f) entered
                            forwarding state
 Nov 10 21:21:43 boomer.bsg.com kernel: br1: port 1(veths3TY4f) entered
                            forwarding state
Nov 10 21:21:43 boomer.bsg.com kernel: SELinux: initialized (dev mqueue,
                   type mqueue), uses transition SIDs
 Nov 10 21:21:43 boomer.bsg.com kernel: SELinux: initialized (dev proc,
                    type proc), uses genfs_contexts
     Nov 10 21:21:43 boomer.bsg.com avahi-daemon[309]: Withdrawing
                  workstation service for vethzVZlLd.
          Nov 10 21:21:43 boomer.bsg.com NetworkManager[301]:
 <warn> /sys/devices/virtual/net/veth9I79rb: couldn't determine device
                          driver; ignoring...
     Nov 10 21:21:43 boomer.bsg.com avahi-daemon[309]: Withdrawing
                  workstation service for vethISXBoi.
          Nov 10 21:21:43 boomer.bsg.com NetworkManager[301]:
 <warn> /sys/devices/virtual/net/vethISXBoi: couldn't determine device
                          driver; ignoring...
          Nov 10 21:21:43 boomer.bsg.com NetworkManager[301]:
 <warn> /sys/devices/virtual/net/veths3TY4f: couldn't determine device
                          driver; ignoring...
          Nov 10 21:21:43 boomer.bsg.com NetworkManager[301]:
 <warn> /sys/devices/virtual/net/vethzVZlLd: couldn't determine device
                          driver; ignoring...
Nov 10 21:21:43 boomer.bsg.com kernel: SELinux: initialized (dev tmpfs,
                   type tmpfs), uses transition SIDs
 Nov 10 21:21:43 boomer.bsg.com kernel: IPv6: ADDRCONF(NETDEV_CHANGE):
                     veths3TY4f: link becomes ready
   Nov 10 21:21:43 boomer.bsg.com NetworkManager[301]: <info> (br0):
                   carrier now ON (device state 100)
 Nov 10 21:21:43 boomer.bsg.com kernel: IPv6: ADDRCONF(NETDEV_CHANGE):
                     veth9I79rb: link becomes ready
 Nov 10 21:21:43 boomer.bsg.com kernel: br0: port 1(veth9I79rb) entered
                            forwarding state
 Nov 10 21:21:43 boomer.bsg.com kernel: br0: port 1(veth9I79rb) entered
                            forwarding state
Nov 10 21:21:43 boomer.bsg.com kernel: SELinux: initialized (dev tmpfs,
                   type tmpfs), uses transition SIDs
Nov 10 21:21:43 boomer.bsg.com kernel: SELinux: initialized (dev sysfs,
                    type sysfs), uses genfs_contexts
Nov 10 21:21:43 boomer.bsg.com kernel: SELinux: initialized (dev devpts,
                   type devpts), uses transition SIDs
Nov 10 21:21:43 boomer.bsg.com kernel: SELinux: initialized (dev tmpfs,
                   type tmpfs), uses transition SIDs
Nov 10 21:21:43 boomer.bsg.com kernel: SELinux: initialized (dev tmpfs,
                   type tmpfs), uses transition SIDs
Nov 10 21:21:43 boomer.bsg.com kernel: SELinux: initialized (dev tmpfs,
                   type tmpfs), uses transition SIDs
    Nov 10 21:21:43 boomer.bsg.com kernel: SELinux: initialized (dev
            hugetlbfs, type hugetlbfs), uses transition SIDs
Nov 10 21:21:43 boomer.bsg.com kernel: SELinux: initialized (dev tmpfs,
                   type tmpfs), uses transition SIDs
  Nov 10 21:21:44 boomer.bsg.com systemd-logind[304]: Watching system
              buttons on /dev/input/event2 (Power Button)
      Nov 10 21:21:44 boomer.bsg.com upowerd[568]: (upowerd:568):
      UPower-Linux-WARNING **: treating add event as change event
                    on /org/freedesktop/...power_AC
  Nov 10 21:21:44 boomer.bsg.com systemd-logind[304]: Watching system
                buttons on /dev/input/event5 (Video Bus)
      Nov 10 21:21:44 boomer.bsg.com upowerd[568]: (upowerd:568):
      UPower-Linux-WARNING **: treating add event as change event
                    on /org/freedesktop/...ery_BAT0
  Nov 10 21:21:44 boomer.bsg.com systemd-logind[304]: Watching system
               buttons on /dev/input/event0 (Lid Switch)
  Nov 10 21:21:44 boomer.bsg.com systemd-logind[304]: Watching system
              buttons on /dev/input/event1 (Sleep Button)
 Nov 10 21:21:44 boomer.bsg.com mtp-probe[3069]: checking bus 1, device
        3: "/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6"
 Nov 10 21:21:44 boomer.bsg.com mtp-probe[3069]: bus: 1, device: 3 was
                           not an MTP device
  Nov 10 21:21:44 boomer.bsg.com systemd-logind[304]: Watching system
         buttons on /dev/input/event6 (ThinkPad Extra Buttons)
Nov 10 21:21:44 boomer.bsg.com colord[631]: (colord:631): Cd-WARNING **:
   CdMain: failed to emit DeviceAdded: failed to register object: An
                              o...d_Camera
   Nov 10 21:21:45 boomer.bsg.com avahi-daemon[309]: Registering new
     address record for fe80::fc35:c9ff:fec2:b13e on veth9I79rb.*.
   Nov 10 21:21:45 boomer.bsg.com avahi-daemon[309]: Registering new
     address record for fe80::fcd1:a5ff:fe17:ac59 on veths3TY4f.*.
 Nov 10 21:21:58 boomer.bsg.com kernel: br1: port 1(veths3TY4f) entered
                            forwarding state
 Nov 10 21:21:58 boomer.bsg.com kernel: br0: port 1(veth9I79rb) entered
                            forwarding state

INFO:
Fedora19-x86_64 with the latest updates
kernel: 3.11.7-200
lxc:0.9.0
lxc container OP: fedora19(same with the host)
systemd:204-17 

Regards
Boomer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20131110/e4cecfc9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffd.png
Type: image/png
Size: 127867 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20131110/e4cecfc9/attachment.png>


More information about the lxc-users mailing list