[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rdiff-backup-users] The rdiff-backup poll!
From: |
dean gaudet |
Subject: |
Re: [rdiff-backup-users] The rdiff-backup poll! |
Date: |
Wed, 21 Dec 2005 19:15:42 -0800 (PST) |
On Wed, 21 Dec 2005, Ben Escoto wrote:
> Unfortunately it uses way too much memory now---1GB to make this
> output. It does hold the entire tree in memory, but 1k per file is
> more than I expected.
it looks like you're keeping data about every file in memory... i hacked
around that in mine by trimming the base component of every path before
adding it into the hash tables... so there are only as many hash keys as
directories, which is a bit more manageable.
if you want a more general solution you might consider invoking external
sort(1) ... sort(1) is geared towards sorting inputs which could be as
large as /tmp or $TMPDIR without consuming all of memory. but that can be
slower on smallish inputs because you end up parsing strings multiple
times.
-dean
- Re: [rdiff-backup-users] The rdiff-backup poll!, (continued)
- Re: [rdiff-backup-users] The rdiff-backup poll!, Ben Escoto, 2005/12/20
- Re: [rdiff-backup-users] The rdiff-backup poll!, Ben Escoto, 2005/12/20
- Re: [rdiff-backup-users] The rdiff-backup poll!, dean gaudet, 2005/12/20
- Re: [rdiff-backup-users] The rdiff-backup poll!, Ben Escoto, 2005/12/20
- Re: [rdiff-backup-users] The rdiff-backup poll!, dean gaudet, 2005/12/21
- Re: [rdiff-backup-users] The rdiff-backup poll!, Ben Escoto, 2005/12/21
- Re: [rdiff-backup-users] The rdiff-backup poll!, Blair Zajac, 2005/12/20
- Re: [rdiff-backup-users] The rdiff-backup poll!, dean gaudet, 2005/12/20
- Re: [rdiff-backup-users] The rdiff-backup poll!, Ben Escoto, 2005/12/20
- Re: [rdiff-backup-users] The rdiff-backup poll!, Ben Escoto, 2005/12/21
- Re: [rdiff-backup-users] The rdiff-backup poll!,
dean gaudet <=
- Re: [rdiff-backup-users] The rdiff-backup poll!, Ben Escoto, 2005/12/22
- Re: [rdiff-backup-users] The rdiff-backup poll!, Blair Zajac, 2005/12/29
- statistics summarizer (Was: [rdiff-backup-users] The rdiff-backup poll!), Ben Escoto, 2005/12/29
- Re: statistics summarizer (Was: [rdiff-backup-users] The rdiff-backup poll!), Blair Zajac, 2005/12/29
- Re: statistics summarizer (Was: [rdiff-backup-users] The rdiff-backup poll!), Ben Escoto, 2005/12/30
- Re: [rdiff-backup-users] The rdiff-backup poll!, Blair Zajac, 2005/12/20
Re: [rdiff-backup-users] The rdiff-backup poll!, Ben Escoto, 2005/12/20
Re: [rdiff-backup-users] The rdiff-backup poll!, Chris Wilson, 2005/12/20