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

Re: OT - Convert output of byte count to GB count?



On Thu, 2013-02-14 at 09:50 +0200, Andrei POPESCU wrote:
> On Mi, 13 feb 13, 14:08:15, Richard Hector wrote:
> > On 12/02/13 22:43, Ralf Mardorf wrote:
> > 
> > > My machine has got 4GB RAM too, but only 1,000,000,000 hex-bytes ;p.
> > > Serious, there is no other correct sum than 4,294,967,296 bytes. For an
> > > old former Assembler programmer it's disgusting to distinguish between
> > > GB and GiB. OTOH kilos etc. are 10^x, but for the computer I do the math
> > > based on 1024.
> > 
> > Abusing the standard prefixes like that was always a horrible hack.
> 
> +1
> 
> It's also a major source of confusion for many users.

$ hwinfo --memory
  Memory Size: 3 GB + 512 MB

so it should be GiB, but they call it GB.

Regards,
Ralf

-- 
Btw. my PC has got got 4048 M(i)B - 256 M(i)B framebuffer = 3 G(i)B +
768 M(i)B and I've given up to find out what's going wrong a long time
ago. IIRC with a PAE kernel it always was ok, IIRC just 64-bit kernels
cause this issue on my machine. I couldn't find a BIOS setting or any
other bad setting, that might be the cause for the missing 256 M(i)B.
I've got a FreeBSD install for a while, this thread reminds me to check
if there is the same issue for BSD.


Reply to: