From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id UBCdEco1u2IISwAAbAwnHQ (envelope-from ) for ; Tue, 28 Jun 2022 19:09:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id SFOZEco1u2Lm/AAA9RJhRA (envelope-from ) for ; Tue, 28 Jun 2022 19:09:30 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CCFE41F4E2 for ; Tue, 28 Jun 2022 19:09:29 +0200 (CEST) Received: from localhost ([::1]:59042 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6EiO-0005so-HO for larch@yhetil.org; Tue, 28 Jun 2022 13:09:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49106) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6Ehk-0005qs-3D for guix-devel@gnu.org; Tue, 28 Jun 2022 13:08:49 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:37543) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6Ehh-0006JL-6e for guix-devel@gnu.org; Tue, 28 Jun 2022 13:08:47 -0400 Received: by mail-wm1-x334.google.com with SMTP id r81-20020a1c4454000000b003a0297a61ddso8371788wma.2 for ; Tue, 28 Jun 2022 10:08:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=QpzmKBSsawwuHjccTVpjFMwQYsIOe7mzohmd1SF0ELM=; b=cGH9ve02hL4xxtV7xk3pUudWgmb3XAHVHfhzuU1M4+VZvhiiSd9YqDE4l7qOBZV8kc VCKVCaRKqBH5kKeaIZNryQ/bUBIIH8UwYRQ3mrwAORSJapy0ht/TfVDA82dWv4aEXP6B +JP3ZtpknlnbBMsYd4Zabp1+ywLXclLZrv6ZFraltYMHfunXnm9XtSqPZZ31KcVgtZsx YHas0nW15o86LwGLCb2JEotsIVRWdJPMo2hKkiGR3R9UPJNbGbWUhpttOPistxMj6Ghg +aXBDIiLzieEHecc+t1Ph0ph7WAAaId8zOwzN93MAlGCa9yN1bFsGZBPPPCsBaISi/41 bWFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=QpzmKBSsawwuHjccTVpjFMwQYsIOe7mzohmd1SF0ELM=; b=BcMnO1FFxk++zV/p/YdOC0kqjAQOYO4jo/PNEsFK4gfIfaYqJ0POJa1KHcnhDmFCvx ZiYufI3r/qw2OK62K3v2WKbGRhzyp6X8VWAYqEmaLdm42VF3isRkUminfZ2L1WDqmIES PQY2NiusWr73h0SsBNMdO5MI6HekfRfNHBqknLuWmmy7VxpxATRI3OrryuJ4VE0dxloJ HwEmuskgH7RtnzvpKIVwwAWjE0mX0+KF/WeiK1TadiQ0GNVYN/XyR0a7D0Xxop7BbFmD /3MHj2hGrXFUAiHi1F9Tx52a4uAlSUYj8eInPWhiqa3+pjKFosjcWDTKpNYBZFLBtVxA PwTg== X-Gm-Message-State: AJIora9yH88GDCFNfjUlPPICkypGsaI/KiRVoay8Oxi+zlvjVK4rfs8f nmHpSHwPLfJBwpwjqGIqOBywJ+9NxuOJJw== X-Google-Smtp-Source: AGRyM1vlng7lT3mTFlAMgshX880Ctwvzu3T1OHheZW0CfxiySWwLPA26hu2UvqZgZacMtkRtvuClUw== X-Received: by 2002:a05:600c:1d96:b0:3a0:30b6:bb1a with SMTP id p22-20020a05600c1d9600b003a030b6bb1amr652220wms.93.1656436123780; Tue, 28 Jun 2022 10:08:43 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id c16-20020adfe750000000b002103a7c5c91sm13956126wrn.43.2022.06.28.10.08.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jun 2022 10:08:43 -0700 (PDT) From: zimoun To: Efraim Flashner Cc: Akib Azmain Turja , guix-devel@gnu.org Subject: Re: First guix pull is too costly In-Reply-To: References: <87wnd1kycb.fsf@disroot.org> <86zghxdobv.fsf@gmail.com> Date: Tue, 28 Jun 2022 18:59:33 +0200 Message-ID: <86czesenbe.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x334.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list 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+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656436169; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=QpzmKBSsawwuHjccTVpjFMwQYsIOe7mzohmd1SF0ELM=; b=hs1nrjD7gzq46Hy4lJxRm9hR3OOrfKkxDQ/vdFC0P8/Mku3HCzW5Nnkyhi3T5nCLcxEWVY PZ3bCX6n8pcEWhXMo8o7JCpY6XAKN/g3a3pMkpyYayGkONQnVTCwe00RK6/tDRMnE4BtW1 SPfox+lwD351Mz+eRjUU2mOzZsMMaoGCVjQupPOTM0Dw/vAqfmJbAtkgrrKhqTDYWvxsQ5 lhI9hb/vrkD8O+FxWmjmd5Z4XKR5hscpRsUGUA5Z8lf3YklkxxSQG65oXONX7wZTubi4RP ZYAJuWOTZPX4Xjn8twsE0u3r7L6c+8YS1VmOQ5nF6OaQ1DR6qdyXNXVmnCTKbQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656436169; a=rsa-sha256; cv=none; b=UGlpmIdEhfp4VSxeJB9dVUPjR4dJf97cMSOlWx2MpOaOhqeGScUrktgAf2V1f3FiXwvdcd 2TPpHTmJ2Ez/xH+XWMimbziDIVMlMcUd4MgO9ApyYDxTujMKCFxirfAZ5G3WZh2IMyhjMy ZAGloHWf3aUt8dOmEIHN36JncZx2s+h7Etjvt0Zm+F438HVoLeGbvTdOJ+XOeQh713scre RPBkFCaAcDwxA4dLjgEcEMsIMw7mOxnDC7HNnoU8KA9bsC8BFIgeMKJS1yjxavWgqMAMX3 R5vmdAs2Z+Hfgr6UX+0GJCh6ZqXnfSd5pTYmwg3vE2gzz9vp0Eoge+I4g0NvjA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=cGH9ve02; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.75 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=cGH9ve02; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: CCFE41F4E2 X-Spam-Score: -5.75 X-Migadu-Scanner: scn0.migadu.com X-TUID: djI1P5ZVX4MP Hi Efraim, On Tue, 28 Jun 2022 at 15:28, Efraim Flashner wrote: > There's already a copy of the guix source code at > /run/current-system/profile/share/guile/site/3.0/guix, what if we "just" > switched the new-user/new-cache experience to: This is only for Guix System and not on foreign distro, no? > cp -r /run/current-system/profile/share/guile/site/3.0/guix/* > ~/.cache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27shj7apsna= lwq > cd ~/.cache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27shj7ap= snalwq > git init > git remote add origin https://git.savannah.gnu.org/git/guix.git > git fetch > git branch --set-upstream-to=3Dorigin/master Depending on the network, the first =E2=80=9Cguix pull=E2=80=9D is often co= nsidered as slow [1]; especially running the command for each new user: each time, it is a full Git clone in ~/.cache/guix/checkouts of ~400MB, if I read correctly. Instead of cloning each time from Savannah, maybe the clone could happen from the cache of =E2=80=99root=E2=80=99 and only fetch from Savannah for p= opulate by recent commit the cache of the regular user. It would save some network traffic. 1: Cheers, simon