<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.rosa.ru/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://bugzilla.rosa.ru/"
          
          maintainer="d.postnikov@rosa.ru"
>

    <bug>
          <bug_id>1317</bug_id>
          
          <creation_ts>2012-12-24 14:50:29 +0400</creation_ts>
          <short_desc>systemd occupies 100% utilization of CPU</short_desc>
          <delta_ts>2026-04-17 23:40:37 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>ROSA-based products</classification>
          <product>ROSA Fresh</product>
          <component>Packages from Main</component>
          <version>Fresh</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="FirstLevel">firstlevel</reporter>
          <assigned_to name="ROSA Linux Bugs">bugs</assigned_to>
          <cc>alex.burmashev</cc>
    
    <cc>alexander.kazantsev</cc>
    
    <cc>alexander.petryakov</cc>
    
    <cc>altadeos</cc>
    
    <cc>denis.koryavov</cc>
    
    <cc>kostiagol</cc>
    
    <cc>mtzseb</cc>
    
    <cc>r0g3r</cc>
    
    <cc>shura0</cc>
    
    <cc>v.potapov</cc>
          
          <cf_platform>---</cf_platform>
          <cf_security_code></cf_security_code>
          <cf_package>systemd-194-10-rosa2012.1.i586</cf_package>
          <cf_upstream>known</cf_upstream>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>6063</commentid>
    <comment_count>0</comment_count>
      <attachid>960</attachid>
    <who name="FirstLevel">firstlevel</who>
    <bug_when>2012-12-24 14:50:29 +0400</bug_when>
    <thetext>Created attachment 960
systemctl-a.txt

Description of problem:
systemd occupies 100% utilization of CPU

I have such information of the top output

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
    1 root      20   0  5876 3416 2000 R   97  0.2  55:12.21 systemd 
 2875 root      20   0 2226m  33m  32m R   88  1.6  45:58.23 systemd-journal


# uname -r
3.6.10-nrj-desktop-1rosa

I have attached the output of systemctl -a



Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6064</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander Burmashev">alex.burmashev</who>
    <bug_when>2012-12-24 14:51:37 +0400</bug_when>
    <thetext>run please journalctl and check what is spammed in the last part of it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6140</commentid>
    <comment_count>2</comment_count>
      <attachid>969</attachid>
    <who name="FirstLevel">firstlevel</who>
    <bug_when>2012-12-25 08:59:56 +0400</bug_when>
    <thetext>Created attachment 969
journalctl -n --lines=100</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6141</commentid>
    <comment_count>3</comment_count>
    <who name="FirstLevel">firstlevel</who>
    <bug_when>2012-12-25 09:00:15 +0400</bug_when>
    <thetext>(In reply to comment #1)
&gt; run please journalctl and check what is spammed in the last part of it.

I have attached the output of
journalctl -n --lines=100</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6143</commentid>
    <comment_count>4</comment_count>
    <who name="Aleksandr Kazantcev">alexander.kazantsev</who>
    <bug_when>2012-12-25 09:06:47 +0400</bug_when>
    <thetext>Try 

  systemctl enable avahi-dnsconfd.service

If this help stop systemctl spam?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6182</commentid>
    <comment_count>5</comment_count>
    <who name="FirstLevel">firstlevel</who>
    <bug_when>2012-12-25 13:07:56 +0400</bug_when>
    <thetext>(In reply to comment #4)
&gt; Try 
&gt; 
&gt;   systemctl enable avahi-dnsconfd.service
&gt; 
&gt; If this help stop systemctl spam?

# systemctl enable avahi-dnsconfd.service
ln -s &apos;/lib/systemd/system/avahi-dnsconfd.service&apos; &apos;/etc/systemd/system/multi-user.target.wants/avahi-dnsconfd.service&apos;


I have no any CPU utilization after that</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6191</commentid>
    <comment_count>6</comment_count>
    <who name="Alexander Burmashev">alex.burmashev</who>
    <bug_when>2012-12-25 15:21:37 +0400</bug_when>
    <thetext>I also added avahi-dnsconf to the default pacakge list, so next time service should be enabled out of the box.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6380</commentid>
    <comment_count>7</comment_count>
    <who name="FirstLevel">firstlevel</who>
    <bug_when>2012-12-28 09:19:18 +0400</bug_when>
    <thetext>User has critical CPU utilization again.
Загрузка повторилась. 
    1 root      20   0  5876 3732 2172 R   95  0.2   4:43.74 systemd                  
  414 root      20   0 2135m  39m  38m R   80  2.6   4:06.65 systemd-journal          
 1264 root      20   0 31112 1504 1184 S   18  0.1   0:49.65 rsyslogd  

And he has such error in logs:
В логах куча вот таких записей.

Dec 28 13:53:37 localhost systemd[1]: Failed to start Avahi mDNS/DNS-SD Stack.
Dec 28 13:53:37 localhost systemd[1]: Failed to start Avahi mDNS/DNS-SD Stack.
Dec 28 13:53:37 localhost systemd[1]: Failed to start Avahi mDNS/DNS-SD Stack.
Dec 28 13:53:37 localhost systemd[1]: Failed to start Avahi mDNS/DNS-SD Stack.
Dec 28 13:53:37 localhost systemd[1]: Failed to start Avahi mDNS/DNS-SD Stack.
Dec 28 13:53:37 localhost systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
Dec 28 13:53:37 localhost systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
Dec 28 13:53:37 localhost systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
Dec 28 13:53:37 localhost systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
Dec 28 13:53:37 localhost systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
Dec 28 13:53:37 localhost systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
Dec 28 13:53:37 localhost systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
Dec 28 13:53:37 localhost systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
Dec 28 13:53:37 localhost systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
Dec 28 13:53:37 localhost systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
Dec 28 13:53:37 localhost systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
Dec 28 13:53:37 localhost systemd[1]: Failed to start Avahi mDNS/DNS-SD Stack.
Dec 28 13:53:37 localhost systemd[1]: Failed to start Avahi mDNS/DNS-SD Stack.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6435</commentid>
    <comment_count>8</comment_count>
    <who name="FirstLevel">firstlevel</who>
    <bug_when>2012-12-29 09:33:50 +0400</bug_when>
    <thetext>I have such problem on my laptop HP probook 6465b too. All updates are installed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6436</commentid>
    <comment_count>9</comment_count>
    <who name="FirstLevel">firstlevel</who>
    <bug_when>2012-12-29 09:34:23 +0400</bug_when>
    <thetext>I have 64bit system.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6437</commentid>
    <comment_count>10</comment_count>
    <who name="Aleksandr Kazantcev">alexander.kazantsev</who>
    <bug_when>2012-12-29 10:18:16 +0400</bug_when>
    <thetext>First - what output for

systemctl | grep failed

Second - (from root)

systemctl mask avahi-daemon.service
systemctl mask avahi-daemon.socket 
systemctl avahi-dnsconfd.service

Is bug appear after that ?


P.S. What reason up importance of bug? It&apos;s non-resolved upstream bug. We may only workaround it not resolved anymore in upstream...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6440</commentid>
    <comment_count>11</comment_count>
    <who name="Denis Koryavov">denis.koryavov</who>
    <bug_when>2012-12-29 12:59:46 +0400</bug_when>
    <thetext>Btw, I have this problem on the my laptop too. As a rule it appears after some time I&apos;m working and after I close laptop lid several times (so, the system &quot;sleeps&quot; several times).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6443</commentid>
    <comment_count>12</comment_count>
    <who name="Alexander Burmashev">alex.burmashev</who>
    <bug_when>2012-12-29 13:29:11 +0400</bug_when>
    <thetext>As i previously wrote somewhere, the problem is that sometimes avahi-daemon process dies and leaves /var/run/avahi-daemon/pid. Afterwards systemd tries to start avahi-daemon but since pid from previous crashed process is still on it&apos;s place it can&apos;t be started.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6461</commentid>
    <comment_count>13</comment_count>
    <who name="FirstLevel">firstlevel</who>
    <bug_when>2012-12-29 15:25:49 +0400</bug_when>
    <thetext>(In reply to comment #10)
&gt; First - what output for
&gt; 
&gt; systemctl | grep failed
&gt; 
&gt; Second - (from root)
&gt; 
&gt; systemctl mask avahi-daemon.service
&gt; systemctl mask avahi-daemon.socket 
&gt; systemctl avahi-dnsconfd.service
&gt; 
&gt; Is bug appear after that ?
&gt; 
&gt; 
&gt; P.S. What reason up importance of bug? It&apos;s non-resolved upstream bug. We
&gt; may only workaround it not resolved anymore in upstream...

[root@freshx32 ~]# systemctl | grep failed
atd.service               loaded failed failed        Job spooling tools
atieventsd.service        loaded failed failed        LSB: ATI Events Daemon
cpupower.service          loaded failed failed        Configure CPU power related settings
networkmanager.service    loaded failed failed        LSB: Daemon for automatically switching to best network connection.
systemd-sysctl.service    loaded failed failed        Apply Kernel Variables
systemd-...-setup.service loaded failed failed        Recreate Volatile Files and Directories
winbind.service           loaded failed failed        LSB: Winbind naming service (winbindd)
[root@freshx32 ~]# 

[root@freshx32 ~]# systemctl mask avahi-daemon.service
ln -s &apos;/dev/null&apos; &apos;/etc/systemd/system/avahi-daemon.service&apos;
[root@freshx32 ~]# systemctl mask avahi-daemon.socket 
ln -s &apos;/dev/null&apos; &apos;/etc/systemd/system/avahi-daemon.socket&apos;
[root@freshx32 ~]# systemctl mask avahi-dnsconfd.service
ln -s &apos;/dev/null&apos; &apos;/etc/systemd/system/avahi-dnsconfd.service&apos;

Results I&apos;ll see later.

Reason is simple. It is very critical for laptop energy consumption and for all desktop it causes other applications trying to utilize CPU.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6463</commentid>
    <comment_count>14</comment_count>
    <who name="FirstLevel">firstlevel</who>
    <bug_when>2012-12-29 15:28:58 +0400</bug_when>
    <thetext>My output was written when I have no CPU utilization
systemctl | grep failed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6499</commentid>
    <comment_count>15</comment_count>
    <who name="FirstLevel">firstlevel</who>
    <bug_when>2012-12-30 19:43:35 +0400</bug_when>
    <thetext>(In reply to comment #10)
&gt; First - what output for
&gt; 
&gt; systemctl | grep failed
&gt; 
&gt; Second - (from root)
&gt; 
&gt; systemctl mask avahi-daemon.service
&gt; systemctl mask avahi-daemon.socket 
&gt; systemctl avahi-dnsconfd.service
&gt; 
&gt; Is bug appear after that ?
&gt; 
&gt; 
&gt; P.S. What reason up importance of bug? It&apos;s non-resolved upstream bug. We
&gt; may only workaround it not resolved anymore in upstream...
User has said that problem is present but in does not appear every time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6522</commentid>
    <comment_count>16</comment_count>
    <who name="Denis Koryavov">denis.koryavov</who>
    <bug_when>2013-01-03 21:12:32 +0400</bug_when>
    <thetext>As for me, the problem is solved by this trick but I had small of the time to check this. If the problem will appear again I&apos;ll let you know.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6524</commentid>
    <comment_count>17</comment_count>
    <who name="Denis Koryavov">denis.koryavov</who>
    <bug_when>2013-01-03 21:14:28 +0400</bug_when>
    <thetext>*** Bug 1389 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6526</commentid>
    <comment_count>18</comment_count>
    <who name="Denis Koryavov">denis.koryavov</who>
    <bug_when>2013-01-03 21:15:20 +0400</bug_when>
    <thetext>*** Bug 1360 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6604</commentid>
    <comment_count>19</comment_count>
    <who name="Alexander Burmashev">alex.burmashev</who>
    <bug_when>2013-01-09 14:33:56 +0400</bug_when>
    <thetext>If someone will notice how to reproduce the bug - please do not hesitate to share the experience :)
For now i can suppose that 
ExecStartPre=/bin/rm -f /var/run/avahi-daemon/pid
may help</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6676</commentid>
    <comment_count>20</comment_count>
    <who name="">mtzseb</who>
    <bug_when>2013-01-10 18:21:12 +0400</bug_when>
    <thetext>I suspect that cupsd is the origin of the explosion process systemd and systemd-journald. I&apos;m not sure, but when I turned off my printer, the problem is solved itself instantly!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6677</commentid>
    <comment_count>21</comment_count>
    <who name="Alexander Burmashev">alex.burmashev</who>
    <bug_when>2013-01-10 18:24:50 +0400</bug_when>
    <thetext>Actually this helps a lot, because there is indeed such a bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6798</commentid>
    <comment_count>22</comment_count>
    <who name="Vladimir Potapov">v.potapov</who>
    <bug_when>2013-01-14 15:44:07 +0400</bug_when>
    <thetext>On my x586 test system the bug is now (after last updates) shown at every second reboot.
You can do experiments :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6811</commentid>
    <comment_count>23</comment_count>
    <who name="Alexander Burmashev">alex.burmashev</who>
    <bug_when>2013-01-14 17:58:02 +0400</bug_when>
    <thetext>Ok. I applied a test patch that may help you.

1) Please remove /var/run/avahi-daemon/pid file

2) Check that systemd still consumes much CPU. It should stop doing it after removing /var/run/avahi-daemon/pid

3) Add one this containers to your system ( so that is corresponds to you system arch )
i586
http://abf.rosalinux.ru/downloads/grendizer_personal/container/avahi-897588/RPMS/
x86_64
http://abf.rosalinux.ru/downloads/grendizer_personal/container/avahi-897589/RPMS/

4) Update from it, reboot and then try to reproduce the error one more time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6873</commentid>
    <comment_count>24</comment_count>
    <who name="Vladimir Potapov">v.potapov</who>
    <bug_when>2013-01-15 17:00:33 +0400</bug_when>
    <thetext>One workday, four reboot: OK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6912</commentid>
    <comment_count>25</comment_count>
    <who name="Alexander Burmashev">alex.burmashev</who>
    <bug_when>2013-01-16 14:01:39 +0400</bug_when>
    <thetext>OK, i am waiting for feedback until the evening and then i&apos;ll push the update to the main.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6913</commentid>
    <comment_count>26</comment_count>
    <who name="Vladimir Potapov">v.potapov</who>
    <bug_when>2013-01-16 14:23:54 +0400</bug_when>
    <thetext>6 Reboot: - bug appeared again :-(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7111</commentid>
    <comment_count>27</comment_count>
    <who name="Konstantin">kostiagol</who>
    <bug_when>2013-01-25 14:07:10 +0400</bug_when>
    <thetext>I also have this problem. If I start Rosalinux without network spot awailable, Systemd starts eating CPU, so I must switch to console and stop avahi service and avahi-daemon.service and avahi-daemon.socket.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7112</commentid>
    <comment_count>28</comment_count>
    <who name="Alexander Burmashev">alex.burmashev</who>
    <bug_when>2013-01-25 14:21:42 +0400</bug_when>
    <thetext>Did you try patched avahi,  i linked above ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7113</commentid>
    <comment_count>29</comment_count>
    <who name="Konstantin">kostiagol</who>
    <bug_when>2013-01-25 14:25:43 +0400</bug_when>
    <thetext>The link is broken (i586).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7127</commentid>
    <comment_count>30</comment_count>
    <who name="Eugene Budanov">r0g3r</who>
    <bug_when>2013-01-26 02:08:24 +0400</bug_when>
    <thetext>Unfortunaly, same situation with patched Avahi from container.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7314</commentid>
    <comment_count>31</comment_count>
    <who name="">mtzseb</who>
    <bug_when>2013-01-31 00:16:16 +0400</bug_when>
    <thetext>same problem for me :
Jan 30 21:13:45 localhost systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
Jan 30 21:13:45 localhost systemd[1]: Failed to start Avahi mDNS/DNS-SD Stack.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7339</commentid>
    <comment_count>32</comment_count>
    <who name="Alexander Burmashev">alex.burmashev</who>
    <bug_when>2013-01-31 14:16:12 +0400</bug_when>
    <thetext>Does anybody notice that it may happen due to cups ? Do you have cups started on your machine ? Does this happen if you restart cups.service on your PC ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7775</commentid>
    <comment_count>33</comment_count>
    <who name="Alexander">shura0</who>
    <bug_when>2013-02-10 13:25:29 +0400</bug_when>
    <thetext>It is not related to CUPS. I have not cups installed, but I have the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7776</commentid>
    <comment_count>34</comment_count>
    <who name="Konstantin">kostiagol</who>
    <bug_when>2013-02-10 13:36:51 +0400</bug_when>
    <thetext>I masked Cups from starting but still have this issue. When it happens only &apos;systemctl stop avahi-daemon.socket&apos; helps.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8394</commentid>
    <comment_count>35</comment_count>
    <who name="Alexander Burmashev">alex.burmashev</who>
    <bug_when>2013-03-01 14:01:40 +0400</bug_when>
    <thetext>fixed by avahi workaround, already published to the repo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87664</commentid>
    <comment_count>36</comment_count>
    <who name="Dmitry Postnikov">pastordidi</who>
    <bug_when>2026-04-17 23:39:21 +0300</bug_when>
    <thetext>The content of attachment 960 has been deleted</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87673</commentid>
    <comment_count>37</comment_count>
    <who name="Dmitry Postnikov">pastordidi</who>
    <bug_when>2026-04-17 23:40:37 +0300</bug_when>
    <thetext>The content of attachment 969 has been deleted</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>960</attachid>
            <date>2012-12-24 14:50:29 +0400</date>
            <delta_ts>2012-12-24 14:50:29 +0400</delta_ts>
            <desc>systemctl-a.txt</desc>
            <filename>systemctl-a.txt</filename>
            <type>text/plain</type>
            <size>0</size>
            <attacher name="FirstLevel">firstlevel</attacher>
            
              <data encoding="base64"></data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>969</attachid>
            <date>2012-12-25 08:59:56 +0400</date>
            <delta_ts>2012-12-25 08:59:56 +0400</delta_ts>
            <desc>journalctl -n --lines=100</desc>
            <filename>journalctl.txt</filename>
            <type>text/plain</type>
            <size>0</size>
            <attacher name="FirstLevel">firstlevel</attacher>
            
              <data encoding="base64"></data>

          </attachment>
      

    </bug>

</bugzilla>