Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#153689 - 07/04/2003 12:04 Emptool arithmetic problem
tms13
old hand

Registered: 30/07/2001
Posts: 1115
Loc: Lochcarron and Edinburgh
Emptool can't do its sums properly:
1260 Drive 0 size: 18976M, free: 1489M, used: 17487M (92%)
1260 Drive 1 size: 28497M, free: 16042M, used: 12455M (43%)
1260 = Total size: 33241M, free: 16414M, used: 16827M (50%)
Last time I checked, 18976+28497=47473...and the total used is really wierd!
_________________________
Toby Speight
030103016 (80GB Mk2a, blue)
030102806 (0GB Mk2a, blue)

Top
#153690 - 07/04/2003 12:56 Re: Emptool arithmetic problem [Re: tms13]
Yang
addict

Registered: 14/01/2002
Posts: 443
Loc: Raleigh, NC
Free and Used doesn't add up either.. Should be 17531M free and 29942M used.

Top
#153691 - 07/04/2003 13:06 Re: Emptool arithmetic problem [Re: tms13]
peter
carpal tunnel

Registered: 13/07/2000
Posts: 4180
Loc: Cambridge, England
really wierd
Due to the insane way this was coded (in emptool/playerdb.cpp:LogFreeSpace(), go and look) it gets the totals wrong if the music partitions were formatted with different block sizes. The sizes for each individual drive are correct.

Peter

Top
#153692 - 07/04/2003 13:10 Re: Emptool arithmetic problem [Re: peter]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
it gets the totals wrong if the music partitions were formatted with different block sizes.
Would this only happen if the drives hadn't been prepared with the builder images (i.e., they were partitioned and formatted by hand)?
_________________________
Tony Fabris

Top
#153693 - 07/04/2003 13:15 Re: Emptool arithmetic problem [Re: tfabris]
peter
carpal tunnel

Registered: 13/07/2000
Posts: 4180
Loc: Cambridge, England
Would this only happen if the drives hadn't been prepared with the builder images (i.e., they were partitioned and formatted by hand)?
Good question. It's quite possible that we've upgraded the builder image over the years, or even that we use mke2fs in a mode whereby it chooses the block size based on the partition size.

The Right Thing, which I've no idea whether we do, is to use big block sizes (4K) for music partitions, as almost 50% of files are much, much bigger than that and it saves space on the block-in-use bitmaps, indirect blocks, and so on.

Peter

Top
#153694 - 07/04/2003 13:20 Re: Emptool arithmetic problem [Re: peter]
peter
carpal tunnel

Registered: 13/07/2000
Posts: 4180
Loc: Cambridge, England
or even that we use mke2fs in a mode whereby it chooses the block size based on the partition size.
Bingo.

Peter

Top