From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 67E47138CEF for ; Tue, 11 Feb 2014 12:14:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 329F0E0B0B; Tue, 11 Feb 2014 12:14:39 +0000 (UTC) Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 07C4DE0A7F for ; Tue, 11 Feb 2014 12:14:37 +0000 (UTC) Received: by mail-wi0-f170.google.com with SMTP id hi5so3948263wib.1 for ; Tue, 11 Feb 2014 04:14:36 -0800 (PST) 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=tkwhmyqv8T3RUALLvK4KidPZS69NKLenHF//889+ls4=; b=vJl/t/A6b+xVPtLSXXyRcanJeZW6p/G0/tJ3yxYPC8fJaRzAo9FZ7cv7OQr+sMHUHr jSbYqdOewn6849JYZV9L6mj8X59a4G5+xjfOmpuDjXOrkEck6fglLYBBx5giJOqCIFNV poKKhbONfEdhLMERmyTTRNrF98xGun8dtH9k9uGLucpp43DdhV8Ex8E2q5dZfuYIpM96 iiv/bRp003yY17tC0c+vJ458hr69GQ2Zuz+WSoeAZchJ43BXaKGJms7P+KqFFPQ8EOux I7v/DEAAIXnlxCoy7vm7dp9YOWoocN8pAzrcDu8P20VVrNwcM7Wv/nE/Rz3pClaX8vko 93+A== X-Received: by 10.194.118.228 with SMTP id kp4mr31967wjb.94.1392120876714; Tue, 11 Feb 2014 04:14:36 -0800 (PST) Received: from [172.20.0.40] (196-210-102-21.dynamic.isadsl.co.za. [196.210.102.21]) by mx.google.com with ESMTPSA id jd2sm43814239wic.9.2014.02.11.04.14.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 11 Feb 2014 04:14:36 -0800 (PST) Message-ID: <52FA1427.3000604@gmail.com> Date: Tue, 11 Feb 2014 14:14:31 +0200 From: Alan McKinnon User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] User eix-sync permissions problem References: <197AEEF5-2BA3-43BF-944E-A5C4230D4CFB@stellar.eclipse.co.uk> <20140210190344.GB17128@waltdnes.org> <52F92894.2050809@gmail.com> <52F95C7A.6010903@fastmail.co.uk> <20140210235755.GA19782@waltdnes.org> <52F9B5FE.4000506@gmail.com> <20140211110710.GA21214@waltdnes.org> In-Reply-To: <20140211110710.GA21214@waltdnes.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 34fcdf01-df50-44b5-adbb-5b3b91f6813f X-Archives-Hash: 81ab075e63932637a189322fab5f3456 On 11/02/2014 13:07, Walter Dnes wrote: > On Tue, Feb 11, 2014 at 07:32:46AM +0200, Alan McKinnon wrote > >> emerge --sync X number of times daily in a cron >> >> emerge -avuND world deliberately and manually as the sysadmin at your >> leisure. >> >> Two different actions in time. > > Assume you sync once a day, and update once a week, the first 6 syncs > would be mostly wasted. Yes, your final sync would be smaller. But > your machine and the server would have to go through the file-comparison > process 7 times, instead of once. > So what? rsync is cheap and doesn't stress the server unduly. It doesn't check every object in the directory tree and stat 179680 files/dirs every time, the whole thing is hashed and it's the hash values that are compared. To compare a directory, rsync only needs to look at the directory inode, if they match on both ends then it's a certainty the files match. It's a *very* efficient system, all done in-memory, your average server can deal with many connections and not even break a sweat. If you want to minimize load, concentrate on making emerge world more efficient so that it takes less than 3 minutes to depgraph on a fast cpu and up to 40 on a slow one. Coupled with overlays, more often than not the portage cache is invalidated so emerge ends up sourcing almost every ebuild file in the tree. --sync is not something worth optimizing if done once a day. At that frequency you are well below the noise floor -- Alan McKinnon alan.mckinnon@gmail.com