From: Alexei Takaseev <alexei@taf.ru>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] default runfs size?
Date: Sun, 10 Jun 2018 23:41:11 +0800 (IRKT)
Message-ID: <192498505.20524.1528645270048.JavaMail.taf@metamorph.taf.ru> (raw)
In-Reply-To: <3626615.IAAyPBFgs3@homerun.localdomain>
----- Исходное сообщение -----
> От: "Denis Medvedev" <nbr@altlinux.org>
> Кому: sisyphus@lists.altlinux.org
> Отправлено: Воскресенье, 10 Июнь 2018 г 23:24:02
> Тема: Re: [sisyphus] default runfs size?
>
> On воскресенье, 10 июня 2018 г. 16:28:54 MSK Michael A. Kangin wrote:
> > Добрый день.
> >
> > А от чего может зависить размер runfs, который на /run монтируется?
> > И как корректно сделать перемонтирование на нормальный размер,
> > чтобы не
> > ручками?
> >
> > А то на домашней системе он упорно получается 5mb, на что сильно
> > жалуется systemd. А беру виртуалку попробовать - там 2gb
> > "изкаробки".
> >
> > В fstab ничего интересного нету.
> >
> > В initrd находится
> > lib/initrd/modules/005-prepare: mount -n -t tmpfs -o
> > mode=755,nosuid
> > runfs /run
> > но как-то безразмерно.
> >
> Насколько я знаю, он забит в код systemd (!) в виде константы (!).
> Этой таблице (http://git.altlinux.org/gears/s/systemd.git?
> p=systemd.git;a=blob;f=src/core/mount-
> setup.c;h=e8c16fd478205b547db762da4e636959c56202fe;hb=41d81b25a33d46504939e7021fdb088f54e16fce
> )
> самое место в конфигурационном файле, а не в исходниках на Си!
> Выставите, пожалуйста, багу на systemd по этому поводу.
Странно. Проверил у себя на нескольких машинах и виртуалках. Везде размер runfs == tmpfs
система с 12Гб
runfs 5,9G 1,4M 5,9G 1% /run
tmpfs 5,9G 166M 5,7G 3% /dev/shm
tmpfs 5,0M 0 5,0M 0% /run/lock
tmpfs 5,9G 0 5,9G 0% /sys/fs/cgroup
tmpfs 5,9G 1,6G 4,4G 26% /tmp
tmpfs 1,2G 20K 1,2G 1% /run/user/500
другая система (виртуалка с 2Гб):
runfs 998M 564K 998M 1% /run
tmpfs 998M 12K 998M 1% /dev/shm
tmpfs 998M 0 998M 0% /sys/fs/cgroup
tmpfs 998M 12K 998M 1% /tmp
tmpfs 200M 0 200M 0% /run/user/501
tmpfs 200M 0 200M 0% /run/user/122
Какие-то проблемы с 5Мб но это было оооочень давно когда переползал с SysV на Systemd
во времена P6.
next prev parent reply other threads:[~2018-06-10 15:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-10 13:28 Michael A. Kangin
2018-06-10 15:24 ` Denis Medvedev
2018-06-10 15:38 ` Sergey Bolshakov
2018-06-10 15:41 ` Alexei Takaseev [this message]
2018-06-10 19:07 ` Michael A. Kangin
2018-06-10 20:28 ` Alexey Gladkov
2018-06-10 20:36 ` Leonid Krivoshein
2018-06-10 20:44 ` Leonid Krivoshein
2018-06-11 0:20 ` Michael A. Kangin
2018-06-11 0:25 ` Michael A. Kangin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=192498505.20524.1528645270048.JavaMail.taf@metamorph.taf.ru \
--to=alexei@taf.ru \
--cc=sisyphus@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git