0

I have just installed Ubuntu 14.04 64-bit on my laptop and on the system monitor it only shows 7.2 GB of RAM and not 8 GB.

Why is that?

xiaodongjie
  • 2,824
  • 1
  • 18
  • 37
Dan
  • 3,418
  • 6
  • 23
  • 32

1 Answers1

1

This is likely to be caused by different understandings of what 1GB, 1MB and what 1KB is.

1KB could mean 1024 bytes or 1000 bytes. The same is true for MB, GB, TB etc. In this case I guess that the manufacturer defined one KB as 1000 bytes (and so on), but in the System Monitor 1KB is defined as 1024 bytes.

Kai
  • 182
  • 7
  • 2
    This is not so. Memory size is always calculated by octal values. – dobey May 05 '14 at 17:52
  • I just found a Wikipedia article about this (http://en.wikipedia.org/wiki/Kilobyte). If I am understanding everything (Wikipedia and You) right memory is calculated by binary values. Please feel free to correct me, I am not an expert and my knowledge is not too big in this topic... – Kai May 05 '14 at 17:58
  • Memory (RAM) is always calculated as 8 bits == 1 byte. (That is octal, not binary. Everything is always binary, because a bit is binary, and everything is made up of bits.) – dobey May 05 '14 at 18:01
  • That is of course like this, but after 1 byte everything is measured in KB, where 1KB could be 1024 bytes or 1000 bytes, right? – Kai May 05 '14 at 18:04
  • 1
    @dobey No. One kilobyte (kB) is always 1000 bytes (because kilo derives from the Greek word for thousand). One kibibyte(kiB) is always 1024 bytes. [According to the international standard] Unfortunately the two terms got mixed up by people who thought it convenient to misuse a well known prefix. If some application swaps these meaning then it's fault of the developer ignorance. – Bakuriu May 05 '14 at 18:04
  • @Bakuriu Why are you directing that to me? I never mentioned KB or KiB in my comments. When talking about RAM though, whether you use KB or KiB, it is ALWAYS in octal. No manufacturer anywhere sells memory in 10-bit bytes designations. – dobey May 05 '14 at 18:57
  • Yes, the conversion of bits to bytes is octal. But this seems unrelated to me as I am talking about Kilobytes, not Kilobits... – Kai May 05 '14 at 19:52
  • (If I understand your doubts correctly...) – Kai May 05 '14 at 20:03
  • Let say, its 8,000,000,000/(102410241024) shouldn't equal to 7.45!!! where 7.2??? – user.dz May 05 '14 at 20:05
  • Ok, that's a good point... – Kai May 05 '14 at 20:07
  • Your answer is wrong because of my first comment in reply to you. It has nothing to do with the software showing KB vs KiB (1000 vs 1024), as memory as always shown as values based on 8-bit bytes. – dobey May 05 '14 at 20:44