mirror of
https://github.com/systemd/systemd.git
synced 2024-11-29 05:13:48 +08:00
journal: Set the default keep free value to 15% (up from 5%)
As some SSDs are still seeing performance degredation when reaching 85% usage the default value of 5% seems a little low. Set this to 15% by default.
This commit is contained in:
parent
417b1a62ed
commit
8621b1109b
@ -246,7 +246,7 @@
|
||||
configured in
|
||||
<varname>SystemMaxUse=</varname> and
|
||||
<varname>RuntimeMaxUse=</varname> is
|
||||
available. Defaults to 5% of the size
|
||||
available. Defaults to 15% of the size
|
||||
of the respective file
|
||||
system. <varname>SystemMaxFileSize=</varname>
|
||||
and
|
||||
|
@ -2769,7 +2769,7 @@ void journal_default_metrics(JournalMetrics *m, int fd) {
|
||||
if (m->keep_free == (uint64_t) -1) {
|
||||
|
||||
if (fs_size > 0) {
|
||||
m->keep_free = PAGE_ALIGN(fs_size / 20); /* 5% of file system size */
|
||||
m->keep_free = PAGE_ALIGN(fs_size * 3 / 20); /* 15% of file system size */
|
||||
|
||||
if (m->keep_free > DEFAULT_KEEP_FREE_UPPER)
|
||||
m->keep_free = DEFAULT_KEEP_FREE_UPPER;
|
||||
|
Loading…
Reference in New Issue
Block a user