[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RAID Sizes (was Re: Why do people in the UK put a u in the word color?)



On Thu, Apr 13, 2006 at 09:18:17AM -0400, Matthias Julius wrote:
> > On Wed, 2006-04-12 at 12:32 -0400, Matthias Julius wrote:
> >> 
> >> Yes, there is.  As example here is part of the output of mdadm:
> >> 
> >>   Array Size : 468872448 (447.15 GiB 480.13 GB)
> >>   Device Size : 156290816 (149.05 GiB 160.04 GB)
> >>                                   ^^^        ^^
> >> 
> >> Note there is GiB (gibibyte) which is 1024 MiB (mebibyte) and there is
> >> GB (gigabyte) which is 1000 MB (megabyte).
> >
> > If GB is decimal, then why aren't the sizes
> >     468.87 GB
> >     156.29 GB
> 
> Why should they be?

Because dividing by a multpile of 10 essentially simply moves the
decimal point to the left. The thing that's not bleedingly obvious
there though is that 156290816 is in kibibytes. :) So:

156290816 * 1024 / 1000 / 1000 / 1000 ~= 160.04 GB :)

Similar for 468872448.

-- 
    "To the extent that we overreact, we proffer the terrorists the
    greatest tribute."
    	- High Court Judge Michael Kirby



Reply to: