From owner-freebsd-questions@FreeBSD.ORG Thu Jul 26 08:13:27 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7F7B0106566B for ; Thu, 26 Jul 2012 08:13:27 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 004798FC12 for ; Thu, 26 Jul 2012 08:13:26 +0000 (UTC) Received: by bkcje9 with SMTP id je9so1010055bkc.13 for ; Thu, 26 Jul 2012 01:13:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=6t3AWXavlg5A4gZYy/5QDenIjDw6qdKHfv28CUehDgQ=; b=gU5deWKKI4sAPiktJnE+1dF4COWVWLiANCwUaBzXQ2rSNVsW5ArpfTjl+M/lTlL7y8 2w7oGdub1l+7vi21MYWJMWM/F4piU7K4y9n4qNdXb7aGXz0HFhnbGdGq5lyoRlemkR9W 9d1d6L6SOg1/iGCh4f22m9dLyvbg0JQfcMQRcnAyH2FpfJznm7Hbi0l8lsPsEXZcny0P r+fc3AqfYiP/L3D06Wv9xXktoxhB6Ud6MLEzCczBbSir/l/lkRWsh+I5/ZdaLh5Ulm0Y Zm4HfwidiyL0KNqZ3dtvivOHd0kRknSjdrLIwu+j/T8czOc51EdxsAtYQEsFG6Ec346l KyTA== Received: by 10.204.128.214 with SMTP id l22mr13060546bks.86.1343290405761; Thu, 26 Jul 2012 01:13:25 -0700 (PDT) Received: from green.tandem.local (24-119-132-95.pool.ukrtel.net. [95.132.119.24]) by mx.google.com with ESMTPS id g6sm13943290bkg.2.2012.07.26.01.13.23 (version=SSLv3 cipher=OTHER); Thu, 26 Jul 2012 01:13:24 -0700 (PDT) Message-ID: <5010FC21.3020207@gmail.com> Date: Thu, 26 Jul 2012 11:13:21 +0300 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120605 Firefox/12.0 SeaMonkey/2.9.1 MIME-Version: 1.0 To: freebsd-questions@FreeBSD.org References: <1343228557.99992.androidMobile@web140705.mail.bf1.yahoo.com> In-Reply-To: <1343228557.99992.androidMobile@web140705.mail.bf1.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: how to speed up port make?? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jul 2012 08:13:27 -0000 Mr U wrote: > is it possible to speed up port make ?? > i want to install openbox and xorg on a Pentium 4 and 2gb ram, > compiling xorg takes about 2 hours 1. You can use devel/ccache to cache compiled data. This way when you are compiling anything for a second time you'll get a big speed boost. Consider compiling kernel+world in 1 hour instead of 8 hours. 1a. If using clang setenv CCACHE_CPP2. 2. Try switching to clang, it has lower memory requirements and compilation speed. Be ready to disable it for some ports that have nonstandard code. 2a. Don't try to build world with clang if you need wine/openoffice/libreoffice. They are known not to work on a world built with clang. 3. Use tmpfs for port building. I always use a big swap and point WRKSRCDIR to /tmp/ports. 4. Finetune your compilation flags. The safest way to select one is to run `(gcc|gcc46|clang) -E -v -march=native - < /dev/null` and select the lowest -march value then write it down to /etc/make.conf as CPUTYPE. 5. Use port management tools like portmaster. When building big ports it will split building down to individual ports cleaning disk between builds. This keeps cache from holding temporary files. -- Sphinx of black quartz judge my vow.