Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Mar 2008 12:01:56 -0700
From:      Chuck Swiger <cswiger@mac.com>
To:        Angelo Turetta <aturetta@bestunion.it>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: UFS2 optimization for many small files
Message-ID:  <828E6D60-C685-49AA-B0B4-FAD46D6A9DD3@mac.com>
In-Reply-To: <47D82486.5060402@bestunion.it>
References:  <47D82486.5060402@bestunion.it>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mar 12, 2008, at 11:44 AM, Angelo Turetta wrote:
> I then proceeded to copy my cyrus-imapd partition from /usr/local/ 
> mail (on /dev/da0s1f) to the new 76GB /mail (/dev/da2s1d). During  
> this copy I noticed the disk usage of the mailboxes (as reported by  
> du(8)) growing about 20% larger in the process. Please note that  
> cyrus stores mailboxes with 1 file per message, 1 directory per IMAP- 
> folder, and the moved files are in the order of the hundred- 
> thousands, with half of them less than 8 KB large.
>
> I tried understanding where the difference was, but I cannot work- 
> out any cause in the file systems:

I believe Cyrus will create hard links if the same email message is  
kept in multiple folders.  If your copy did not preserve hard and  
symlinks, the extra space growth might be a result...consider retrying  
the copy using the options to rsync/tar/whatever to preserve the links.

Regards,
-- 
-Chuck




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?828E6D60-C685-49AA-B0B4-FAD46D6A9DD3>