ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Michael A. Kangin" <prividen@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: [devel] mkimage-на-стероидах
Date: Thu, 14 Aug 2008 23:06:12 +0400
Message-ID: <200808142306.13070.prividen@altlinux.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 323 bytes --]

Добрый день.

по мотивам прочтения http://www.altlinux.org/TmpFS решил проделать то же с 
mkimage. 
На двух гигабайтах ОЗУ цель installer из M-P-D собралась за 6 минут вместо 8,5 
при обычной сборке.

В аттаче хак, требующий разрешения для вызывающего make юзера выполнять 
команды через sudo.


-- 
wbr, Michael A. Kangin

[-- Attachment #2: mkimage-tmpfs.patch --]
[-- Type: text/x-diff, Size: 627 bytes --]

--- /usr/share/mkimage/targets.mk.orig	2008-06-24 00:16:18 +0400
+++ /usr/share/mkimage/targets.mk	2008-08-14 20:36:09 +0400
@@ -15,7 +15,9 @@
 	fi
 
 prepare: $(SUBDIRS)
-	mkdir -p -- $(PKGBOX) $(WORKDIR) $(OUTDIR)
+	mkdir -p -- $(WORKDIR)
+	sudo mount -t tmpfs tmpfs $(WORKDIR) || true
+	mkdir -p -- $(PKGBOX) $(OUTDIR)
 	mkdir -p -- $(CACHEDIR)/mki $(CACHEDIR)/hsh
 
 prepare-workdir: prepare $(SUBDIRS)
@@ -111,6 +113,7 @@
 clean: clean-current $(SUBDIRS)
 
 distclean-current: clean-current
+	sudo umount $(WORKDIR) || true
 	rm -rf -- $(WORKDIR) $(OUTDIR) $(CACHEDIR) $(PKGBOX)
 
 distclean: distclean-current $(SUBDIRS)

             reply	other threads:[~2008-08-14 19:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-14 19:06 Michael A. Kangin [this message]
2008-08-14 19:21 ` Kirill A. Shutemov
2008-08-14 19:38   ` Alexey Gladkov
2008-08-15  5:28   ` Michael A. Kangin
2008-08-15  9:19     ` Michael Shigorin
2008-08-14 19:42 ` Michael Shigorin
2008-08-15  5:29   ` 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=200808142306.13070.prividen@altlinux.org \
    --to=prividen@altlinux.org \
    --cc=devel@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 Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

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


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