You are not logged in.

#1 2018-08-22 10:17:47

quayasil
Member
Registered: 2008-11-09
Posts: 117

systemd: Increasing maximal /run tmpfs size (on-the fly?)

IMHO without systemd mounting was somewhat easier...

The problem is: by default systemd allocates 0.5*RAM of memory for the tmpfs mounted as /run (precisely: it is the maximal limit for use). I'm wondering how can I increase this value to, let's say, 0.6*RAM?
The other question is: can I set a new value and remount it on-the-fly, that is: without rebooting a working system?

Offline

#2 2018-08-22 10:55:39

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: systemd: Increasing maximal /run tmpfs size (on-the fly?)

You can redefine them in fstab the same way as "before" systemd. Add an appropriate tmpfs line with your new size definition.

https://www.freedesktop.org/wiki/Softwa … leSystems/

Last edited by V1del (2018-08-22 11:12:15)

Offline

#3 2018-08-22 11:04:02

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,718
Website

Re: systemd: Increasing maximal /run tmpfs size (on-the fly?)

For your other question, you need to use the `remount` and `size` mount options.

man mount tmpfs

Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2018-08-22 11:06:28

CarbonChauvinist
Member
Registered: 2012-06-16
Posts: 413
Website

Re: systemd: Increasing maximal /run tmpfs size (on-the fly?)

I've always used the following, from the wiki on tmpfs, to on the fly resize /tmp

The tmpfs can also be temporarily resized without the need to reboot, for example when a large compile job needs to run soon. In this case, run:

# mount -o remount,size=4G,noatime /tmp

"the wind-blown way, wanna win? don't play"

Offline

Board footer

Powered by FluxBB