<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - journald can be very slow (on btrfs ?)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=78337">78337</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>journald can be very slow (on btrfs ?)
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mildred-bug.freedesktop@mildred.fr
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>systemd
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=98555" name="attach_98555" title="ls -l output">attachment 98555</a> <a href="attachment.cgi?id=98555&action=edit" title="ls -l output">[details]</a></span>
ls -l output

I used journald in both Fedora and ArchLinux, on a btrfs filesystem, and I
noticed on two occasions (once for each distribution) that journald can become
very slow, to the point where the boot proess is taking a very long time (more
than 10 minutes).

After getting a shell, I found that I couldn't access the log at all. Or it
took a very long time (a few minutes for `journalctl -fa`).

Removing (or moving away) all files in /var/log/journal fixed the problem and
the system was as fast as the first day.

I still have the old files for diagnosis if you want me to try something with
them.

Here is the output of --verify and --disk-usage

$ journalctl -D /var/log/journal/e92df66897d24a499a6b6ecf7e6a30c2- --disk-usage
Journals take up 4.0G on disk.

The output of --verify command (that was successful) and the list of files is
attached.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>