RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1029604 - Boot takes 27 seconds longer with /var/log/journal than without
Summary: Boot takes 27 seconds longer with /var/log/journal than without
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: systemd
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Lukáš Nykrýn
QA Contact: Petr Sklenar
URL:
Whiteboard:
Depends On: 1006386
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-12 17:28 UTC by Karel Volný
Modified: 2014-06-18 00:36 UTC (History)
2 users (show)

Fixed In Version: systemd-207-9.el7
Doc Type: Bug Fix
Doc Text:
Clone Of: 1006386
Environment:
Last Closed: 2014-06-13 11:19:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Karel Volný 2013-11-12 17:28:06 UTC
I believe this one affects RHEL7 too - judging from bug #1006386 comment #29 I believe this is systemd-journald design flaw

I managed to break my testing installation (beyond my ability to repair, bug #1029527) so I cannot provide exact numbers now, but if I recall correctly, the boot took 20 - 25 seconds with several services blamed to take more than ten or twelve seconds

after doing a fresh install, the machine booted in 12.5 seconds

the testing procedure consisted of writing random things to logs for some tenths of hours (with pauses in between to workaround rate limiting and to become a bit closer to the real world example where I saw this problem on Fedora)

note that simply "mkdir /var/log/journal ; reboot" is enough to get data written to it, systemd-journald runs by default

also note that these numbers are from a virtual machine run on a host with SSD and plenty of RAM, real hardware could be much slower (if I get it right that it accesses many 4 KiB blocks on disk)

+++ This bug was initially created as a clone of Bug #1006386 +++

Comment 2 Lukáš Nykrýn 2013-12-10 14:20:22 UTC
Following patches were backported to rhel7 systemd repo, will be in next update.

fbb6341	journald: mention how long we needed to flush to /var in the logs	    performance
eda4b58	journal: simplify pre-allocation logic	    performance
248c78c	journal: allow journal_file_copy_entry() to work on non-local files	    performance
e5462cd	journal: fix iteration when we go backwards from the beginning of an array chain element	    performance
f268980	journal: optimize bisection logic a bit by caching the last position	    performance
a676e66	journal: when appending to journal file, allocate larger blocks at once	    performance

Comment 5 Ludek Smid 2014-06-13 11:19:53 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


Note You need to log in before you can comment on or make changes to this bug.