Can we specify percentage value for RuntimeMaxUse attribute in journald.conf
up vote
3
down vote
favorite
From man page of Journald.conf I came to know that, by default Journal use 10% of file system size for storing journal files.
I have configured below values in journald.conf.
RuntimeMaxUse=10
#RuntimeKeepFree=
RuntimeMaxFileSize=2G
RuntimeMaxFiles=3
I have not specified any units for
RuntimeMaxUse attribute
How journal treats this value?
one more question below
Is there anyway to specify in journald.conf file to use 30% of the filesystem size for journal files?
For the above configuration, I could see below results on my system
-rw-r-----+ 1 root root 904M Jul 14 14:11 system@63691df841d14d4795850417936c799e-0000000006cdd9d1-0005379686115fe8.journal
-rw-r-----+ 1 root root 904M Jul 14 14:14 system@63691df841d14d4795850417936c799e-0000000006e30c11-00053796905a72d8.journal
-rw-r-----+ 1 root root 120M Jul 14 14:14 system.journal
Two files created with approximately 1G each and third file can grow upto 1G and after that oldest journal files gets deleted.
For one more configuration below,
RuntimeMaxUse=2G
#RuntimeKeepFree=
RuntimeMaxFileSize=2G
RuntimeMaxFiles=3
Even though i specified RuntimeMaxUse as 2G, I could see journal uses 3G of file system size.
i.e
1) file1 -- system@*********************** - 1G
2) file2 -- system@*********************** - 1G
3) file3 -- system.journal - Reaches upto 1G
Is my understanding correct?
Please clarify.
linux systemd logs systemd-journald
add a comment |
up vote
3
down vote
favorite
From man page of Journald.conf I came to know that, by default Journal use 10% of file system size for storing journal files.
I have configured below values in journald.conf.
RuntimeMaxUse=10
#RuntimeKeepFree=
RuntimeMaxFileSize=2G
RuntimeMaxFiles=3
I have not specified any units for
RuntimeMaxUse attribute
How journal treats this value?
one more question below
Is there anyway to specify in journald.conf file to use 30% of the filesystem size for journal files?
For the above configuration, I could see below results on my system
-rw-r-----+ 1 root root 904M Jul 14 14:11 system@63691df841d14d4795850417936c799e-0000000006cdd9d1-0005379686115fe8.journal
-rw-r-----+ 1 root root 904M Jul 14 14:14 system@63691df841d14d4795850417936c799e-0000000006e30c11-00053796905a72d8.journal
-rw-r-----+ 1 root root 120M Jul 14 14:14 system.journal
Two files created with approximately 1G each and third file can grow upto 1G and after that oldest journal files gets deleted.
For one more configuration below,
RuntimeMaxUse=2G
#RuntimeKeepFree=
RuntimeMaxFileSize=2G
RuntimeMaxFiles=3
Even though i specified RuntimeMaxUse as 2G, I could see journal uses 3G of file system size.
i.e
1) file1 -- system@*********************** - 1G
2) file2 -- system@*********************** - 1G
3) file3 -- system.journal - Reaches upto 1G
Is my understanding correct?
Please clarify.
linux systemd logs systemd-journald
add a comment |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
From man page of Journald.conf I came to know that, by default Journal use 10% of file system size for storing journal files.
I have configured below values in journald.conf.
RuntimeMaxUse=10
#RuntimeKeepFree=
RuntimeMaxFileSize=2G
RuntimeMaxFiles=3
I have not specified any units for
RuntimeMaxUse attribute
How journal treats this value?
one more question below
Is there anyway to specify in journald.conf file to use 30% of the filesystem size for journal files?
For the above configuration, I could see below results on my system
-rw-r-----+ 1 root root 904M Jul 14 14:11 system@63691df841d14d4795850417936c799e-0000000006cdd9d1-0005379686115fe8.journal
-rw-r-----+ 1 root root 904M Jul 14 14:14 system@63691df841d14d4795850417936c799e-0000000006e30c11-00053796905a72d8.journal
-rw-r-----+ 1 root root 120M Jul 14 14:14 system.journal
Two files created with approximately 1G each and third file can grow upto 1G and after that oldest journal files gets deleted.
For one more configuration below,
RuntimeMaxUse=2G
#RuntimeKeepFree=
RuntimeMaxFileSize=2G
RuntimeMaxFiles=3
Even though i specified RuntimeMaxUse as 2G, I could see journal uses 3G of file system size.
i.e
1) file1 -- system@*********************** - 1G
2) file2 -- system@*********************** - 1G
3) file3 -- system.journal - Reaches upto 1G
Is my understanding correct?
Please clarify.
linux systemd logs systemd-journald
From man page of Journald.conf I came to know that, by default Journal use 10% of file system size for storing journal files.
I have configured below values in journald.conf.
RuntimeMaxUse=10
#RuntimeKeepFree=
RuntimeMaxFileSize=2G
RuntimeMaxFiles=3
I have not specified any units for
RuntimeMaxUse attribute
How journal treats this value?
one more question below
Is there anyway to specify in journald.conf file to use 30% of the filesystem size for journal files?
For the above configuration, I could see below results on my system
-rw-r-----+ 1 root root 904M Jul 14 14:11 system@63691df841d14d4795850417936c799e-0000000006cdd9d1-0005379686115fe8.journal
-rw-r-----+ 1 root root 904M Jul 14 14:14 system@63691df841d14d4795850417936c799e-0000000006e30c11-00053796905a72d8.journal
-rw-r-----+ 1 root root 120M Jul 14 14:14 system.journal
Two files created with approximately 1G each and third file can grow upto 1G and after that oldest journal files gets deleted.
For one more configuration below,
RuntimeMaxUse=2G
#RuntimeKeepFree=
RuntimeMaxFileSize=2G
RuntimeMaxFiles=3
Even though i specified RuntimeMaxUse as 2G, I could see journal uses 3G of file system size.
i.e
1) file1 -- system@*********************** - 1G
2) file2 -- system@*********************** - 1G
3) file3 -- system.journal - Reaches upto 1G
Is my understanding correct?
Please clarify.
linux systemd logs systemd-journald
linux systemd logs systemd-journald
edited Sep 23 '17 at 19:48
sourcejedi
22k43396
22k43396
asked Jul 15 '16 at 6:17
sandeep nagendra
283
283
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
No, you cannot specify a percentage value for RuntimeMaxUse
or any other storage option from journald.conf
as Jan Synacek explains here:
The values are not specified in percentages, they are specified in
absolute values followed by a unit. The percentages mentioned in the
manpage are applied only if the user specifies no value for a given
option.
So only absolute values followed by a unit will work.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
No, you cannot specify a percentage value for RuntimeMaxUse
or any other storage option from journald.conf
as Jan Synacek explains here:
The values are not specified in percentages, they are specified in
absolute values followed by a unit. The percentages mentioned in the
manpage are applied only if the user specifies no value for a given
option.
So only absolute values followed by a unit will work.
add a comment |
up vote
1
down vote
accepted
No, you cannot specify a percentage value for RuntimeMaxUse
or any other storage option from journald.conf
as Jan Synacek explains here:
The values are not specified in percentages, they are specified in
absolute values followed by a unit. The percentages mentioned in the
manpage are applied only if the user specifies no value for a given
option.
So only absolute values followed by a unit will work.
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
No, you cannot specify a percentage value for RuntimeMaxUse
or any other storage option from journald.conf
as Jan Synacek explains here:
The values are not specified in percentages, they are specified in
absolute values followed by a unit. The percentages mentioned in the
manpage are applied only if the user specifies no value for a given
option.
So only absolute values followed by a unit will work.
No, you cannot specify a percentage value for RuntimeMaxUse
or any other storage option from journald.conf
as Jan Synacek explains here:
The values are not specified in percentages, they are specified in
absolute values followed by a unit. The percentages mentioned in the
manpage are applied only if the user specifies no value for a given
option.
So only absolute values followed by a unit will work.
answered Nov 20 at 11:55
don_crissti
48.8k15129157
48.8k15129157
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f296054%2fcan-we-specify-percentage-value-for-runtimemaxuse-attribute-in-journald-conf%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown