diff options
author | Benjamin Drung <benjamin.drung@profitbricks.com> | 2018-05-15 12:12:56 +0200 |
---|---|---|
committer | Benjamin Drung <benjamin.drung@profitbricks.com> | 2018-06-05 19:17:11 +0200 |
commit | ae339ffd5ed924c1489ad1fec17af2eff612770d (patch) | |
tree | ac089e314e5c8f51a9bbf55f36c83db58e40817a /initramfs.conf.5 | |
parent | be2b91c3760f70869eaeb79980039b84d29ee012 (diff) |
Make size of /run configurable
Using 10% of RAM for /run is a good default, but not suitable for all
systems. 10% might be too small for system with less memory (e.g.
virtual machine with 160 MiB RAM) or too big (VM host with 256/512 GiB
RAM). A too small /run partition leads to not enough space on it. If the
/run partition is huge, systemd's journald will consume lot of memory,
because it defaults to using at most 15% of the respective file system
of /run/log/journal.
Adjusting the size of /run via an entry in /etc/fstab is not sufficient
since journald calculates it limits before systemd remounts /run with
the small size. Therefore journald could occupy the full /run partition
with its logs.
Allow specifying the size of /run by adding a RUNSIZE configuration
variable and a initramfs.ramsize= boot argument. Mounting /run must be
done after reading the configuration.
Closes: #862013
Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com>
Diffstat (limited to 'initramfs.conf.5')
-rw-r--r-- | initramfs.conf.5 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/initramfs.conf.5 b/initramfs.conf.5 index b4eea70..569834c 100644 --- a/initramfs.conf.5 +++ b/initramfs.conf.5 @@ -74,6 +74,15 @@ Allows one to use an nfs drive as the root of the drive. The default is to boot from \fIlocal\fP media (hard drive, USB stick). Set to \fInfs\fP for an NFS root share. +.TP +\fB RUNSIZE +The size of the \fI/run\fP tmpfs mount point in bytes (suffixes are supported) +or as percentage of your physical RAM. This parameter is used as the value of +the size mount option to tmpfs. See +\fBhttps://www.kernel.org/doc/Documentation/filesystems/tmpfs.txt\fR for +details. Can be overridden by an optional \fBinitramfs.runsize=\fR bootarg. +The default is 10%. + .SH VARIABLES FOR LOCAL BOOT .TP \fB RESUME |