Skip to contentSkip to conversation

R: Re: Slow startup of systemd-journal on BTRFS

DISCUSSION Goffredo Baroncelli <[email protected]> 1 participant 1 message Jun 12, 2014 Btrfs file system

lore
Share & tools
lore
#0 lore raw
Quoted 7 lines

----Messaggio originale----
Da: [email protected]
Data: 12/06/2014 3.18
A: <[email protected]>
Cc: "systemd Mailing List"<[email protected]>, "linux-btrfs"

<[email protected]>

Quoted 12 lines

Ogg: Re: Slow startup of systemd-journal on BTRFS

Quoted 8 lines · On Wed, 11 Jun 2014 23:28:54 Goffredo Baroncelli wrote:
        https://bugzilla.redhat.com/show_bug.cgi?id=1006386

suggested me that the problem could be due to a bad interaction between systemd and btrfs. NetworkManager was innocent. It seems that systemd-journal create a very hight fragmented files when it stores its log. And BTRFS it is know to behave slowly when a file is highly fragmented. This had caused a slow startup of systemd-journal, which in turn had blocked the services which depend by the loggin system.

Quoted 2 lines

On my BTRFS/systemd systems I edit /etc/systemd/journald.conf and put "SystemMaxUse=50M". That doesn't solve the fragmentation problem but

reduces

Quoted 1 line

it enough that it doesn't bother me.

IIRC my log files are about 80/100MB. So I am not sure if this could help. I want to investigate also the option

MaxFileSec=1d

which rotates the log file once a day (or a week)

Quoted 10 lines
Signature · 8 lines
-- 
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html