[Dovecot] Message size incorrect?

Tristan Woudenberg - Prism Mail Solutions tristan at prism.nl
Sat Jan 20 21:49:56 UTC 2007


On Wed, January 17, 2007 00:21, Timo Sirainen wrote:
> On Wed, 2007-01-17 at 01:05 +0200, Timo Sirainen wrote:
>> On Tue, 2007-01-16 at 21:48 +0100, Tristan Woudenberg - Prism Mail
>> Solutions wrote:
>> > du -sh cur new
>> > 4.1M    cur
>>
>> From the ls -l output that you sent me:
>>
>> cat ls|awk '{print $5"+"}'|tr -d '\n'|sed 's/+$/\n/'|bc
>> 3488542
>>
>> So your filesystem has lost 0,7MB somehow. Are there any hidden files
>> (ls -la)? If not, then I can think of two things:
>>
>> 1) There's a large file (or more) that have already been deleted, but
>> some process (stuck maybe?) still keeps them open. But if you've
>> rebooted since, this can't be the case.
>>
>> 2) Your filesystem has messed up something.
>
> Actually the most obvious reason that I for some reason failed to think
> of:
>
> 3) Your filesystem's block size is 4kB, and there's lots of wasted space
> because of that.
>
> cat ls|awk '{print "("$5"+4095)/4096+"}'|tr -d '\n'|sed 's/^/(/'|sed
> 's/+$/)*4096\n/'|bc
> 4096000

dumpe2fs /dev/md0 | grep -i 'block size'
dumpe2fs 1.37 (21-Mar-2005)
Block size:               4096

You were spot on!


> So, no bugs anywhere.

Very nice! Now I just have to figure out a way to have my users understand
why they're using more space on my server then the total of all their
emails sugguests.

Regards,

Tristan


-- 
Prism Mail Solutions
Deployment, customization and hosting
http://prism.nl



More information about the dovecot mailing list