From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Reduced substitute-binary latency Date: Fri, 08 Nov 2013 22:58:11 +0100 Message-ID: <87ob5utv2k.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vev0p-0008S7-E4 for guix-devel@gnu.org; Fri, 08 Nov 2013 17:59:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VeuwV-0002dd-I3 for guix-devel@gnu.org; Fri, 08 Nov 2013 17:58:47 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:52480) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Veu4C-0007x8-U7 for guix-devel@gnu.org; Fri, 08 Nov 2013 16:58:13 -0500 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org Commit 50dc489 does the obvious thing to reduce latency when looking for substitutes on hydra.gnu.org. Thus, something like: --8<---------------cut here---------------start------------->8--- $ sudo rm /nix/var/nix/substitute-binary/cache/* $ time ./pre-inst-env guix build coreutils -n The following files would be downloaded: /nix/store/bm7rzxnmlgprx0i5jfmpwvrc5h5cq6y4-coreutils-8.21 /nix/store/xwaywgm456l9f3skjsviphrp6dc9h002-coreutils-8.21-debug --8<---------------cut here---------------end--------------->8--- goes from 11.8s to 3.7s on my machine, with networking latency artificially increased with sudo tc qdisc add dev eth0 root netem delay 1500ms Before that there=E2=80=99d be at most one thread per core, which was silly. Ludo=E2=80=99.