From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Re: New tool to reduce emacs start-up time on Linux Date: Mon, 13 Jul 2020 15:07:15 -0700 Message-ID: <24332.56083.994025.781149@retriever.mtv.corp.google.com> References: <24332.51925.447735.990302@retriever.mtv.corp.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14068"; mail-complaints-to="usenet@ciao.gmane.io" Cc: raman@google.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: blak3mill3r@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jul 14 00:07:56 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jv6c7-0003a1-V6 for ged-emacs-devel@m.gmane-mx.org; Tue, 14 Jul 2020 00:07:55 +0200 Original-Received: from localhost ([::1]:41428 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jv6c6-0005SK-V9 for ged-emacs-devel@m.gmane-mx.org; Mon, 13 Jul 2020 18:07:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52866) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jv6bZ-00050k-9v for emacs-devel@gnu.org; Mon, 13 Jul 2020 18:07:21 -0400 Original-Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]:40912) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jv6bX-0001iY-K3 for emacs-devel@gnu.org; Mon, 13 Jul 2020 18:07:21 -0400 Original-Received: by mail-pf1-x441.google.com with SMTP id u5so6652529pfn.7 for ; Mon, 13 Jul 2020 15:07:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:mime-version:content-transfer-encoding:message-id:date:to:cc :subject:in-reply-to:references; bh=gwf2t3dZi4GjfP7MyPtJeWjoNmz+HNBgPMVQseDw8XM=; b=eEXp3YLQ6prCM/jFsYTbxwApNXj7ACkUknqD+ubC0E1SAWekQilzBZ5GtLZk+FAr9q GpBVLcaPuPCDoR+hPaHpsHe/x/vCtI8e5969weOkMj66I4hrx4IbJ6BRiDWjnR5llLUR fhvg+/hND7eospd2FfJol/e216qoRC/NWqkCKWnXCSD53NkwuTEuPxTo6YL244m3weA3 CZIIrypo+iSSKRgL81EbpnVOP0kNFJog/pyAse1/Afm6eaQZ3e//1XoLNiZp+/WKYH/8 s6LRosDFHnXAfnXg/YepiZgsLYZJ82Ag5yj1QjGUM/3dNWvcX2D5UT3Tj8VEaJWxgwNG 2cTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:content-transfer-encoding :message-id:date:to:cc:subject:in-reply-to:references; bh=gwf2t3dZi4GjfP7MyPtJeWjoNmz+HNBgPMVQseDw8XM=; b=q1Y+JjBwarXo/XI4okcLmnHRosY5DAeSanpJMnKsvatMP7ggMhV2BnuIbxwxblPwbj T323XEOmxMuMnjaDKheD5WwMqgn5nl0yFSCY0LI6gHPjb+4wv1y8M8G0p+P75BIjK6mx P8HJ0ICrmblXJ3AWc/H/Dc2PYQ1657QCyN8Jjfy9yWbk/ZzDdQNZdrfDSpuLFjLaJTuc p+frpx2jODfGHIu9a6Nrrq/Y1NCYqtuxOBVL+2Y3CueR95+59SOjxnwJCUQf0e2Pjy5c xVZYyn/2/VxUGKmPDXK1rG/ifvF1Qzvc3zk0RKjPv/7ZfYCQg/WO1KaMYTOPBh3q2m0W wYFg== X-Gm-Message-State: AOAM533/qDzMBR3hMiDSO1MrJxKtUkefbC1v/lNWuT4NEEeNIbLdZdpt jzCWh5MfEaIzzrYMKnrW5HgfGQ== X-Google-Smtp-Source: ABdhPJxif+sOuj4EqyV2OjBYzzg1C9RmPzZJ30wadoiT4VvCHoC2pSI/w9ejOZVtHyyel4F0Ax/CGg== X-Received: by 2002:a63:ab0d:: with SMTP id p13mr956336pgf.327.1594678037736; Mon, 13 Jul 2020 15:07:17 -0700 (PDT) Original-Received: from retriever.mtv.corp.google.com ([172.22.80.201]) by smtp.gmail.com with ESMTPSA id o8sm13909918pgb.23.2020.07.13.15.07.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2020 15:07:16 -0700 (PDT) Original-Received: by retriever.mtv.corp.google.com (Postfix, from userid 13930) id 079C718003AE; Mon, 13 Jul 2020 15:07:16 -0700 (PDT) In-Reply-To: X-Mailer: VM 8.1.1 under 28.0.50 (x86_64-pc-linux-gnu) Received-SPF: pass client-ip=2607:f8b0:4864:20::441; envelope-from=raman@google.com; helo=mail-pf1-x441.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -185 X-Spam_score: -18.6 X-Spam_bar: ------------------ X-Spam_report: (-18.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:252931 Archived-At: Thanks. Also, for those of us not in the know, saying what CRIU is would also alleviate a lot of the concerns Blake Miller writes: > Sure. I should improve this in the readme. > > What runs as root are these three things only: > > 1. A little service that is part of my project, written in babashka, called > els-cloner > 2. The criu binary > 3. the criu-ns python script > > That's all. CRIU currently cannot be run as non-root. The other two things > wrap CRIU and so also need to run as root... except I think I could make > the els-cloner service run as an els-cloner user and give it permission > only to invoke criu & criu-ns as root, and I should do that. > > On Mon, Jul 13, 2020 at 8:58 PM T.V Raman wrote: > > > I see, I dont understand all the terminology here, which explains my > > confusion. As long as neither the emacs daemon or client run as Root, > > then that would take away my concern. Could you also elaborate on what > > it is that runs as Root? > > Blake Miller writes: > > > I'd never run emacs as root either. CRIU has to run as root, but the > > > processes it creates when restoring a snapshot are regular non-root > > > processes, just like the one that was checkpointed. > > > > > > On Mon, Jul 13, 2020 at 4:22 PM T.V Raman wrote: > > > > > > > Stefan Monnier writes: > > > > > > > > the biggest drawback I saw at a quick-read was the need to run as > > root, > > > > I'd never run emacs as root.>> As the name suggests, it can provide > > you > > > > with the fastest emacs startup > > > > >> time in the west, by using CRIU checkpoint/restore to "clone" > > emacsen. > > > > > > > > > > Hmmm... an "unexec" that's not Emacs-specific, interesting, > > > > > > > > > > > > > > > Stefan > > > > > > > > > > > > > > > > > > -- > > > > > > > > -- > > Id: kg:/m/0285kf1 > > > > -- > > Id: kg:/m/0285kf1 > > -- Id: kg:/m/0285kf1 -- Id: kg:/m/0285kf1