Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] top command: meaning of 'm' in memory related values?
- Date: Sat, 22 Feb 2014 12:32:14 +0100
- From: Bruno Raoult <braoult@example.com>
- Subject: Re: [tlug] top command: meaning of 'm' in memory related values?
- References: <CABEB6AhggofO+qV_BCGF+SAcJgrWw2=5RLZG9o-SWK17q8Zu8w@mail.gmail.com> <CABHGxq6sQiHsSOPyFw+y3R315ytt7EL0fcOnMrLO9F9C9suDQA@mail.gmail.com> <CAAhy3ds5jo9xzc02mr9-qwYSdywhh4OMeiCg0XxhjJ+eefOfkQ@mail.gmail.com>
Hi,On Sat, Feb 22, 2014 at 9:02 AM, Raymond Wan <rwan.kyoto@example.com> wrote:
On Sat, Feb 22, 2014 at 7:47 AM, Jim Breen <jimbreen@example.com> wrote:Yes and similarly, "g" means gigabytes. I've seen that a before, too...
> I've always thought it meant "megabytes".
>
> The man page says "VIRT -- Virtual Image (kb)", but I suspect
> it's out-of-date.
The manpage says "VIRT -- Virtual Memory Size (KiB)"I would think that all values in top are expressed in (SIC) "kibibytes (KiB), mebibytes (MiB) or gibibytes (GiB)" rather than kilo/mega/gigabytes.
Well, many people use the term kilobyte as 2^10 (1024) bytes, but it is preferred to use the term kibibyte for this, and use kilobyte as 1000 bytes, to avoid confusion.This means that a "g" for top would be 1 gibibyte = 2^30 bytes = 1073741824bytes (and not 1 gigabyte = 10^9 bytes = 1000000000 bytes).
Again, kilobyte (and mega and giga) is also used as 1024 bytes units (which makes the term having a double meaning, and therefore implies confusion).Some commands such as "ls" and "df" have options to select 1000 or 1024 powers. For instance on my system:
br@lorien:~$ df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 45G 14G 30G 31% /
br@lorien:~$ df -H /
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 48G 14G 32G 31% /br.
--
2 + 2 = 5, for very large values of 2.
- Follow-Ups:
- Re: [tlug] top command: meaning of 'm' in memory related values?
- From: Bruno Raoult
- References:
- [tlug] top command: meaning of 'm' in memory related values?
- From: Hector Akamine
- Re: [tlug] top command: meaning of 'm' in memory related values?
- From: Jim Breen
- Re: [tlug] top command: meaning of 'm' in memory related values?
- From: Raymond Wan
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] What is the Sysadmin pager these days?
- Next by Date: Re: [tlug] top command: meaning of 'm' in memory related values?
- Previous by thread: Re: [tlug] top command: meaning of 'm' in memory related values?
- Next by thread: Re: [tlug] top command: meaning of 'm' in memory related values?
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links