delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/11/10/19:39:55

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:cc:subject:in-reply-to:message-id
:references:mime-version:content-type; q=dns; s=default; b=OTA31
f7oWjYZt9p6ZQQLZigvvPSuIDq9+EUnMVjlN6myFxY7+r3HlOpQ08v0+8lpWiq25
ty+RPl5ib1wqFYPL5ePeZYp3unB2QVvh9cNoIpb/6No7GflHt800IjkKUt77ffr2
4EfNcTNa4qB02yG5LhC1RJQqo1aNF2A2AnG4lU=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:cc:subject:in-reply-to:message-id
:references:mime-version:content-type; s=default; bh=KMfLSQ9n53s
8uR/PkvolJ+97E8c=; b=wPr1xnmU7TFgrsRcd6glx5cS/wFWwaTaQl29EG9MZmB
78a2Vkb+IYlk2UMDc7GAv4DgZzyt6jLv/hB7Gwmd6P9O+zDnepKcxdLPitqKSl79
JWj1hu8XMA6BeUGPg7J8BoNB0WO1pfPORh138UzSj24EDZY75mTC7r5gkOp2vEM8
=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.3 required=5.0 tests=AWL,BAYES_05,SPF_PASS,TVD_RCVD_IP autolearn=ham version=3.3.2 spammy=H*MI:sk:000801d, ErikSoderquistgmailcom, soderquist, sk:eriksod
X-HELO: ripple.fruitbat.org
Date: Thu, 10 Nov 2016 16:38:39 -0800 (PST)
From: "Peter A. Castro" <doctor AT fruitbat DOT org>
To: Erik Soderquist <ErikSoderquist AT gmail DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Complaining after fair notice of dropping XP support. Was: Not very nice at all.
In-Reply-To: <CACoZoo3A2O9owPhsAjJA1a8qZzAv83uD9gBeCksZMtDQnBrv7w@mail.gmail.com>
Message-ID: <alpine.LNX.2.00.1611101615380.6490@ming.fruitbat.org>
References: <000801d23b23$8912a3c0$9b37eb40$@bonhard.uklinux.net> <166a2465-cffb-3b15-30be-d696be8ead8e AT SystematicSw DOT ab DOT ca> <alpine DOT LNX DOT 2 DOT 00 DOT 1611101016260 DOT 6490 AT ming DOT fruitbat DOT org> <CACoZoo3A2O9owPhsAjJA1a8qZzAv83uD9gBeCksZMtDQnBrv7w AT mail DOT gmail DOT com>
User-Agent: Alpine 2.00 (LNX 1167 2008-08-23)
MIME-Version: 1.0
X-IsSubscribed: yes

On Thu, 10 Nov 2016, Erik Soderquist wrote:

> Date: Thu, 10 Nov 2016 17:16:53 -0500
> From: Erik Soderquist <ErikSoderquist AT gmail DOT com>
> To: cygwin AT cygwin DOT com
> Subject: Re: Complaining after fair notice of dropping XP support. Was: Not
>     very nice at all.

Greetings, Erik,

> On Thu, Nov 10, 2016 at 2:19 PM, Peter A. Castro wrote:
>> And for those who think keeping a private mirror is trivial, let me give you
>> some stats.  A full snapshot of Cygwin, 32-bit + 64-bit (+noarch) + source
>> packages (Current and Previous) is about 137Gb.  Don't believe me? Your
>> setup.ini has a size (and a hash) for every package.  Add them up yourself.
>> Now consider that I have about 4000 snapshots (and counting!) of Cygwin.
>> Oh!  Quick quiz:
>>   What's 137Gb * 4000?
>>   Answer: 535Tb.
>> Now, do you really think I have that amount of storage?  Of course not. The
>> Time Machine isn't organized like that (don't be silly).  It's currently
>> about 500Gb (which is quite a savings, if you think about it :-)
>
> I would dearly love to know more about how you did this specific piece...

A good magician never reveals how the trick works.  8^)

Sadly I'm not a good magician.

It's not all that complicated, if you think about it.  Each time a new 
setup.ini is generated only a hand full of packages was actually updated, 
so really, day-to-day, there's not all that much change.

I keep a delta database and each time I grab a new setup.ini I compare all 
of the packages listed to my existing database.  Anything new, I pull down 
and add to the archive.  Anything already present I don't re-pull.  Think 
of it as de-duplication on a package level (though I do this for more 
than just setup.ini, but that's a separate trick).

It's only if you decide you want a complete copy of all packages for any
given circa that the amount of data instantiating is alot.

Then, from the setup.ini, I create a new circa directory and, really, the 
smoke-and-mirrors of the trick is that it's all symlinks to the real 
package storage, of which I have exactly one copy.  Hence, 500Gb 
instead of 535Tb.

So, um, "Ta-da"! :-)

Oh, this is all automated, btw.  I hardly touch it except to clean out 
old logs and do backups from time to time.

Sorry, it wasn't all that good a trick, was it.

> -- Erik

-- 
--=> Peter A. Castro
Email: doctor at fruitbat dot org / Peter dot Castro at oracle dot com
 	"Cats are just autistic Dogs" -- Dr. Tony Attwood

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019