ALT Linux Distributions development
 help / color / mirror / Atom feed
From: Ildar Mulyukov <ildar@altlinux.ru>
To: devel-distro@lists.altlinux.org
Subject: Re: [devel-distro] [Builder Live/Appliance] tmpfs
Date: Fri, 16 Nov 2012 11:26:31 +0600
Message-ID: <1353043591.7785.5@ildar.innovations.kz> (raw)
In-Reply-To: <20121111165806.GA19661@osdn.org.ua> (from mike@osdn.org.ua on Sun Nov 11 22:58:06 2012)

On 11.11.2012 22:58:06, Michael Shigorin wrote:
> On Sun, Nov 11, 2012 at 01:58:47AM +0600, Ildar Mulyukov wrote:
> > Вот это я и имел в виду. На обычной машине разумный размер
> > tmpfs по  умолчанию --- сколько-то процентов от физической RAM.
> > На сборочнице  можно поднять рабочий каталог для сборки до
> > n*RAM (n > 1). При этом всё  прекрасно и когда нужно свопится,
> > это по моему опыту. Насколько я  помню, сейчас основные
> > хэшерницы работают именно в tmpfs.
> 
> Да, но на автомате я согласен разве что сделать автоматику,
> которая оставит не менее ~гига памяти под сборку (в моих тестах
> вроде бы больше ~400M не задействовалось, но мало ли).  И будто
> её уже даже делал когда-то...

Да, делал. Это livecd-tmpfs,
и мне кажется, тут надо подправить, т.к. цифры с большим запасом.

     39  guess_need()
     64          # some space must be set aside for the processes
     65          if [ "$RAM" -lt 4 ]; then DIFF=1; else DIFF=2; fi

это перебор. Для самого live-builder + gcc в hasher хватит и 0.5

     71                  # lower-memory systems will employ swap
     72                  if [ "$RAM" -lt 8 ]; then

ну и пусть... Тут весь фокус в том, чтобы доверить ядру, как  
распоряжаться памятью и свопом. [1]

ИМХО, надо оставить гарантированные 0.5G для процессов, а всю остальную  
VM="$(($RAM+$SWAP))" отдать под tmpfs. Это, однако, не значит, что ядро  
будет активно всё свапить, оно всё же довольно интеллектуальное в этом  
вопросе.
Впрочем, в этом месте хорошо было бы позвать эксперта, который сам  
держит и тюнит сборочницу (на ум приходит ldv@)

[1] Кстати, у ядра по свопу есть ещё кое-какие интересные "ручки":  
http://rudd-o.com/linux-and-free-software/tales-from-responsivenessland-why-linux-feels-slow-and-how-to-fix-that

-- 
Ildar

  reply	other threads:[~2012-11-16  5:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-10  4:00 [devel-distro] Builder Live/Appliance Ildar Mulyukov
2012-11-10  9:31 ` Михаил Радюк
2012-11-10 13:37   ` Michael Shigorin
2012-11-10 19:58     ` Ildar Mulyukov
2012-11-11 16:58       ` Michael Shigorin
2012-11-16  5:26         ` Ildar Mulyukov [this message]
2012-11-19 21:48           ` [devel-distro] [Builder Live/Appliance] tmpfs Michael Shigorin
2012-11-20  6:19             ` Ildar Mulyukov

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=1353043591.7785.5@ildar.innovations.kz \
    --to=ildar@altlinux.ru \
    --cc=devel-distro@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 Distributions development

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-distro/0 devel-distro/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 devel-distro devel-distro/ http://lore.altlinux.org/devel-distro \
		devel-distro@lists.altlinux.org devel-distro@lists.altlinux.ru devel-distro@lists.altlinux.com
	public-inbox-index devel-distro

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-distro


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git