How to display meminfo in megabytes in top?Human readable memory sizes in top?yum: RPM dependency treehtop - change units for memory usage displayAppearance of plus (+) in top outputOSX top command shows 5 running on a quad coreWhat is using memory?Investigating Active MemInfoHow to view summaric memory usage of groups of commands (instead of processes)What is using 4GB of memory? (Not cache, not a process, not slab, not shm)Recover from faking /proc/meminfohtop - change units for memory usage displayHow are /proc/meminfo values calculated?Slab cache affecting used memory much more than /proc/meminfo suggestsFilter top(1) display by COMMAND=abc OR COMMAND=xyz

Does an unused member variable take up memory?

What is this tube in a jet engine's air intake?

Is this Paypal Github SDK reference really a dangerous site?

What should I do when a paper is published similar to my PhD thesis without citation?

What does the Digital Threat scope actually do?

cannot log in to the server after changing SSH port

What will happen if my luggage gets delayed?

Why restrict private health insurance?

Movie: boy escapes the real world and goes to a fantasy world with big furry trolls

Is it appropriate to ask a former professor to order a book for me through an inter-library loan?

What sort of fish is this

Do similar matrices have same characteristic equations?

Why aren't there more Gauls like Obelix?

Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?

Why do we say 'Pairwise Disjoint', rather than 'Disjoint'?

What is Tony Stark injecting into himself in Iron Man 3?

How to copy the rest of lines of a file to another file

How exactly does an Ethernet collision happen in the cable, since nodes use different circuits for Tx and Rx?

Can I take the the bonus-action attack from Two-Weapon Fighting without taking the Attack action?

Giving a career talk in my old university, how prominently should I tell students my salary?

Create chunks from an array

Would those living in a "perfect society" not understand satire

Help! My Character is too much for her story!

Gomel chasadim tovim - are there bad chasadim?



How to display meminfo in megabytes in top?


Human readable memory sizes in top?yum: RPM dependency treehtop - change units for memory usage displayAppearance of plus (+) in top outputOSX top command shows 5 running on a quad coreWhat is using memory?Investigating Active MemInfoHow to view summaric memory usage of groups of commands (instead of processes)What is using 4GB of memory? (Not cache, not a process, not slab, not shm)Recover from faking /proc/meminfohtop - change units for memory usage displayHow are /proc/meminfo values calculated?Slab cache affecting used memory much more than /proc/meminfo suggestsFilter top(1) display by COMMAND=abc OR COMMAND=xyz













165















Sometimes it is not comfortable to see meminfo in kilobytes when you have several gigs of RAM. In Linux, it looks like:



top, with memory stats all scaled to Kb



And here is how it looks in Mac OS X:



top, with memory stats scaled to Mb and Gb



Is there a way to display meminfo in Linux top in terabytes, gigabytes and megabytes?










share|improve this question



















  • 5





    Apparently, some posts say that in Redhat Linux you can do someting like top -M to display the usage in MB. If you only want to monitor the memory usage, you can use rather use htop. Not sure of any other option.

    – Barun
    Dec 19 '13 at 15:54












  • Right you are, but there is nothing about that in build-in help. I've just occasionally was able to find that in man page

    – Anthony Ananich
    Dec 19 '13 at 15:56






  • 1





    The man page is the builtin help.

    – casey
    Dec 19 '13 at 15:59






  • 2





    You could always use free -m, or better free -h instead.

    – terdon
    Dec 19 '13 at 16:48







  • 5





    Once you jump into top hit E until it shows the memory cumulative you're looking for, then hit W to write that configuration to disk.

    – Trevor Norris
    Apr 13 '15 at 2:07















165















Sometimes it is not comfortable to see meminfo in kilobytes when you have several gigs of RAM. In Linux, it looks like:



top, with memory stats all scaled to Kb



And here is how it looks in Mac OS X:



top, with memory stats scaled to Mb and Gb



Is there a way to display meminfo in Linux top in terabytes, gigabytes and megabytes?










share|improve this question



















  • 5





    Apparently, some posts say that in Redhat Linux you can do someting like top -M to display the usage in MB. If you only want to monitor the memory usage, you can use rather use htop. Not sure of any other option.

    – Barun
    Dec 19 '13 at 15:54












  • Right you are, but there is nothing about that in build-in help. I've just occasionally was able to find that in man page

    – Anthony Ananich
    Dec 19 '13 at 15:56






  • 1





    The man page is the builtin help.

    – casey
    Dec 19 '13 at 15:59






  • 2





    You could always use free -m, or better free -h instead.

    – terdon
    Dec 19 '13 at 16:48







  • 5





    Once you jump into top hit E until it shows the memory cumulative you're looking for, then hit W to write that configuration to disk.

    – Trevor Norris
    Apr 13 '15 at 2:07













165












165








165


40






Sometimes it is not comfortable to see meminfo in kilobytes when you have several gigs of RAM. In Linux, it looks like:



top, with memory stats all scaled to Kb



And here is how it looks in Mac OS X:



top, with memory stats scaled to Mb and Gb



Is there a way to display meminfo in Linux top in terabytes, gigabytes and megabytes?










share|improve this question
















Sometimes it is not comfortable to see meminfo in kilobytes when you have several gigs of RAM. In Linux, it looks like:



top, with memory stats all scaled to Kb



And here is how it looks in Mac OS X:



top, with memory stats scaled to Mb and Gb



Is there a way to display meminfo in Linux top in terabytes, gigabytes and megabytes?







linux memory top meminfo






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 2 '18 at 11:30









Jeff Schaller

43.2k1159138




43.2k1159138










asked Dec 19 '13 at 15:44









Anthony AnanichAnthony Ananich

3,22942241




3,22942241







  • 5





    Apparently, some posts say that in Redhat Linux you can do someting like top -M to display the usage in MB. If you only want to monitor the memory usage, you can use rather use htop. Not sure of any other option.

    – Barun
    Dec 19 '13 at 15:54












  • Right you are, but there is nothing about that in build-in help. I've just occasionally was able to find that in man page

    – Anthony Ananich
    Dec 19 '13 at 15:56






  • 1





    The man page is the builtin help.

    – casey
    Dec 19 '13 at 15:59






  • 2





    You could always use free -m, or better free -h instead.

    – terdon
    Dec 19 '13 at 16:48







  • 5





    Once you jump into top hit E until it shows the memory cumulative you're looking for, then hit W to write that configuration to disk.

    – Trevor Norris
    Apr 13 '15 at 2:07












  • 5





    Apparently, some posts say that in Redhat Linux you can do someting like top -M to display the usage in MB. If you only want to monitor the memory usage, you can use rather use htop. Not sure of any other option.

    – Barun
    Dec 19 '13 at 15:54












  • Right you are, but there is nothing about that in build-in help. I've just occasionally was able to find that in man page

    – Anthony Ananich
    Dec 19 '13 at 15:56






  • 1





    The man page is the builtin help.

    – casey
    Dec 19 '13 at 15:59






  • 2





    You could always use free -m, or better free -h instead.

    – terdon
    Dec 19 '13 at 16:48







  • 5





    Once you jump into top hit E until it shows the memory cumulative you're looking for, then hit W to write that configuration to disk.

    – Trevor Norris
    Apr 13 '15 at 2:07







5




5





Apparently, some posts say that in Redhat Linux you can do someting like top -M to display the usage in MB. If you only want to monitor the memory usage, you can use rather use htop. Not sure of any other option.

– Barun
Dec 19 '13 at 15:54






Apparently, some posts say that in Redhat Linux you can do someting like top -M to display the usage in MB. If you only want to monitor the memory usage, you can use rather use htop. Not sure of any other option.

– Barun
Dec 19 '13 at 15:54














Right you are, but there is nothing about that in build-in help. I've just occasionally was able to find that in man page

– Anthony Ananich
Dec 19 '13 at 15:56





Right you are, but there is nothing about that in build-in help. I've just occasionally was able to find that in man page

– Anthony Ananich
Dec 19 '13 at 15:56




1




1





The man page is the builtin help.

– casey
Dec 19 '13 at 15:59





The man page is the builtin help.

– casey
Dec 19 '13 at 15:59




2




2





You could always use free -m, or better free -h instead.

– terdon
Dec 19 '13 at 16:48






You could always use free -m, or better free -h instead.

– terdon
Dec 19 '13 at 16:48





5




5





Once you jump into top hit E until it shows the memory cumulative you're looking for, then hit W to write that configuration to disk.

– Trevor Norris
Apr 13 '15 at 2:07





Once you jump into top hit E until it shows the memory cumulative you're looking for, then hit W to write that configuration to disk.

– Trevor Norris
Apr 13 '15 at 2:07










8 Answers
8






active

oldest

votes


















184














When in top, typing capital "E" cycles through different memory units (kb, mb, gb etc) in the total memory info:



The image shows tops general memory display with GiB as a unit.



While lower-case "e" does the same individual process lines:



The image shows processes in top where the memory is displayed in MiB



From the manpage:



2c. MEMORY Usage
This portion consists of two lines which may express values in kibibytes
(KiB) through exbibytes (EiB) depending on the scaling factor enforced
with the 'E' interactive command.


Version Information: top -version: procps-ng version 3.3.9 System: CentOS 7






share|improve this answer




















  • 4





    Does not work for me in RHEL

    – Anthony Ananich
    May 11 '14 at 11:49






  • 3





    Works in ubuntu 14.04 cheers.

    – tjjjohnson
    May 22 '14 at 4:22











  • works in fedora 20

    – sivann
    Sep 19 '14 at 8:48






  • 5





    @AnthonyAnanich: Does work for me in RHEL 7.

    – krlmlr
    Dec 17 '14 at 11:14






  • 3





    <time machine from the future>I find the default units of Petabytes is woefully inadequate and unhelpful. I always end up having to hit E at least once to set top in units of Exabytes.</time machine from the future>

    – Trevor Boyd Smith
    Feb 16 '17 at 15:12


















64














There is a command-line option which does that:



-M : Detect memory units
Show memory units (k/M/G) and display floating point values in the
memory summary.


So it is sufficient to run top like that:



top -M


If -M does not work you can press E while already in top.



From man top (procps-ng version 3.3.9):




E :Extend-Memory-Scale in Summary Area
With this command you can cycle through the available summary area memory scaling which ranges from KiB (kibibytes or 1,024 bytes) through EiB (exbibytes or 1,152,921,504,606,846,976 bytes).



If you see a '+' between a displayed number and the following label, it means that top was forced to truncate some portion of that number. By raising the scaling factor, such truncation can be avoided.




top, showing Memory units in "M"






share|improve this answer




















  • 22





    +1 , but checked in Ubuntu , its saying not working. Any way in Ubuntu ?

    – rɑːdʒɑ
    Dec 19 '13 at 15:59












  • I have no clue, @richardparker

    – Anthony Ananich
    Dec 19 '13 at 16:32






  • 1





    Damn, you racked up a ton of karma with a simple (but good) self-answered Q&A. Nice work.

    – user1717828
    Oct 29 '15 at 15:39






  • 3





    That blur isn't blurry enough, antonio.

    – Evgeni Sergeev
    May 24 '16 at 9:19






  • 2





    Works for RHEL 6 (pressing 'E' does not as the top comment)

    – Molten Ice
    Sep 9 '16 at 10:02



















43














You can also use htop. It's much cooler than top.



If you are using Debian or one of its derivatives, then you can install it using sudo apt-get install htop.



htop screenshot



Edit: Here is a screenshot with a better color scheme:



htop screenshot with better colors






share|improve this answer




















  • 16





    htop looks better with either a white or a black background. Your screenshot color scheme is less than optimal.

    – jlliagre
    Dec 19 '13 at 17:42






  • 1





    @jlliagre Eye of the beholder.

    – Jonathan Komar
    Aug 7 '15 at 7:07











  • @macmadness86 alternate screenshot added

    – jlliagre
    Aug 7 '15 at 7:20






  • 1





    fyi, htop comes with other color shemes which you can access by going to setup F2.

    – Miguel Mota
    Nov 28 '16 at 20:09



















31














top -M doesn't work on any of the Fedora, Debian or Ubuntu distros to my knowledge. I just tried it and it's not in the procps-ng package that provides top. There are many implementations of top so one needs to pay special attention to which they use.



In general it's best to use free with switching to get the amount of memory free on Linux.



procps vs. procps-ng



You might of noticed that on CentOS 5 & 6 as well as RHEL 5 & 6 that top -M appears to work. This is because those distros ship with the original version of procps. The project was forked and there is now another project procps-ng.



Some of the details as to why there was fork, from the Fedora Project's page.



excerpt




Old (legacy) procps tools had no updates for several years and that led to a massive code split caused by a local-only application of distribution specific patches, which were not merged upstream. The project became hardly maintainable since some of the newly written patches were incompatible with sources maintained by other distributors. A similar incompatibility could be noticed in the applications behavior and their command line switches. This inevitable update can be understood as an effort to unify the procps tools across all Linux distributions.




So to be clear, the forked project, procps-ng is what Debian, Fedora, Ubuntu, and other distros are using, the legacy project, which does support top -M is still in use of several of the longer term releases that don't keep up with the latest and greatest.



NOTE: I downloaded the latest version of procps-ng, "procps-ng version 3.3.9.1-14ef" and it too was lacking the -M switch.



$ ./top/top -version
procps-ng version 3.3.9.1-14ef
Usage:
lt-top -hv | -bcHiOSs -d secs -n max -u|U user -p pid(s) -o field -w [cols]


free



In running free with switches you can see the most likely reason as to why the lack of units feature is missing from procps-ng's implementation of top.



$ free -m
total used free shared buffers cached
Mem: 7782 6506 1276 0 504 1726
-/+ buffers/cache: 4274 3507
Swap: 7823 1429 6394
[saml@greeneggs ~]$ free -k
total used free shared buffers cached
Mem: 7969492 6663180 1306312 0 516948 1764780
-/+ buffers/cache: 4381452 3588040
Swap: 8011772 1463456 6548316


Rounding becomes problematic, so I believe, procps's implementation avoids the issue by not offering the ability.



htop



Does an OK job of showing aggregate memory usage.



   ss of htop



atop



In my opinion a better tool for looking at memory.



   ss of atop



nmon



Another useful tool is nmon for looking at system performance.



   ss of nmon






share|improve this answer




















  • 1





    top -M works for me in RHEL6

    – Anthony Ananich
    Dec 19 '13 at 21:58






  • 2





    @AnthonyAnanich - I researched this a bit more. CentOS 5.4's top version "procps version 3.2.8" has the -M switch, CentOS 5.8, also has this switch, "procps version 3.2.7". However Fedora 19 has "procps-ng version 3.3.8" which doesn't support the -M switch.

    – slm
    Dec 19 '13 at 22:07












  • @AnthonyAnanich - added details to my answer about procps vs. procps-ng.

    – slm
    Dec 19 '13 at 22:14











  • Great answer, thank you, @slm. I even do not know which of the three answers is the best. Will not award to anyone, I want let other people decide.

    – Anthony Ananich
    Jan 22 '14 at 11:11











  • @AnthonyAnanich - NP. You should consider picking one if you feel that it answers your Q 100%. Accepting an A is important since it signals to the rest of the community that passes by your Q that you as the OP felt this A answered or solved your particular issues. If other A's are outstanding they'll get UV'd as well. Not accepting one, is basically a signal that you as the OP still feel your Q hasn't bee sufficiently answered. The accepted A also gets positioned as the 1st A when ppl see your Q in the future.

    – slm
    Jan 22 '14 at 12:59



















17














You can press the following keys:




  • e -- Change the scaling factor on the summary display


  • Shift+e -- Change the scaling factor on the task


  • Shift+w -- Save current settings





share|improve this answer

























  • e and shift-e are the other way round on my system at least...

    – fifaltra
    Aug 26 '16 at 9:45






  • 2





    Didn't know about Shift + w , great tip to save my config :)

    – sofly
    Mar 9 '17 at 18:27



















4














So the quick answer : depending on your linux distro, try either :



top -M


OR, after starting top, type capital E (then W to write the config).



One of those should work for nearly everybody (except Solaris, of course, where you'd be lucky to have top at all).



bonus tip : every time you start a top instance on a new install, type ExyzW to save colours and highlighting and units - what a relief!






share|improve this answer


















  • 4





    All of this information has been posted already.

    – Scott
    Feb 9 '16 at 1:09


















0














On RHEL7
top
shift + e or CspsLK ON. You need " E " capital alphabet.



You will get in MiB, Gib, TiB, PiB, EiB. All these you can access.



And also you can you htop command which should be downlaoded and installed on rpm base system.



Thank you.
Sagar Dalvi






share|improve this answer






























    0














    On command line I want top to show memory in MB. How to do it?





    share








    New contributor




    Ari Järmälä is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.



















      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "106"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f105908%2fhow-to-display-meminfo-in-megabytes-in-top%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      8 Answers
      8






      active

      oldest

      votes








      8 Answers
      8






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      184














      When in top, typing capital "E" cycles through different memory units (kb, mb, gb etc) in the total memory info:



      The image shows tops general memory display with GiB as a unit.



      While lower-case "e" does the same individual process lines:



      The image shows processes in top where the memory is displayed in MiB



      From the manpage:



      2c. MEMORY Usage
      This portion consists of two lines which may express values in kibibytes
      (KiB) through exbibytes (EiB) depending on the scaling factor enforced
      with the 'E' interactive command.


      Version Information: top -version: procps-ng version 3.3.9 System: CentOS 7






      share|improve this answer




















      • 4





        Does not work for me in RHEL

        – Anthony Ananich
        May 11 '14 at 11:49






      • 3





        Works in ubuntu 14.04 cheers.

        – tjjjohnson
        May 22 '14 at 4:22











      • works in fedora 20

        – sivann
        Sep 19 '14 at 8:48






      • 5





        @AnthonyAnanich: Does work for me in RHEL 7.

        – krlmlr
        Dec 17 '14 at 11:14






      • 3





        <time machine from the future>I find the default units of Petabytes is woefully inadequate and unhelpful. I always end up having to hit E at least once to set top in units of Exabytes.</time machine from the future>

        – Trevor Boyd Smith
        Feb 16 '17 at 15:12















      184














      When in top, typing capital "E" cycles through different memory units (kb, mb, gb etc) in the total memory info:



      The image shows tops general memory display with GiB as a unit.



      While lower-case "e" does the same individual process lines:



      The image shows processes in top where the memory is displayed in MiB



      From the manpage:



      2c. MEMORY Usage
      This portion consists of two lines which may express values in kibibytes
      (KiB) through exbibytes (EiB) depending on the scaling factor enforced
      with the 'E' interactive command.


      Version Information: top -version: procps-ng version 3.3.9 System: CentOS 7






      share|improve this answer




















      • 4





        Does not work for me in RHEL

        – Anthony Ananich
        May 11 '14 at 11:49






      • 3





        Works in ubuntu 14.04 cheers.

        – tjjjohnson
        May 22 '14 at 4:22











      • works in fedora 20

        – sivann
        Sep 19 '14 at 8:48






      • 5





        @AnthonyAnanich: Does work for me in RHEL 7.

        – krlmlr
        Dec 17 '14 at 11:14






      • 3





        <time machine from the future>I find the default units of Petabytes is woefully inadequate and unhelpful. I always end up having to hit E at least once to set top in units of Exabytes.</time machine from the future>

        – Trevor Boyd Smith
        Feb 16 '17 at 15:12













      184












      184








      184







      When in top, typing capital "E" cycles through different memory units (kb, mb, gb etc) in the total memory info:



      The image shows tops general memory display with GiB as a unit.



      While lower-case "e" does the same individual process lines:



      The image shows processes in top where the memory is displayed in MiB



      From the manpage:



      2c. MEMORY Usage
      This portion consists of two lines which may express values in kibibytes
      (KiB) through exbibytes (EiB) depending on the scaling factor enforced
      with the 'E' interactive command.


      Version Information: top -version: procps-ng version 3.3.9 System: CentOS 7






      share|improve this answer















      When in top, typing capital "E" cycles through different memory units (kb, mb, gb etc) in the total memory info:



      The image shows tops general memory display with GiB as a unit.



      While lower-case "e" does the same individual process lines:



      The image shows processes in top where the memory is displayed in MiB



      From the manpage:



      2c. MEMORY Usage
      This portion consists of two lines which may express values in kibibytes
      (KiB) through exbibytes (EiB) depending on the scaling factor enforced
      with the 'E' interactive command.


      Version Information: top -version: procps-ng version 3.3.9 System: CentOS 7







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Oct 29 '15 at 15:37









      Raphael Ahrens

      7,06152846




      7,06152846










      answered Apr 27 '14 at 12:55









      Josh WJosh W

      1,841162




      1,841162







      • 4





        Does not work for me in RHEL

        – Anthony Ananich
        May 11 '14 at 11:49






      • 3





        Works in ubuntu 14.04 cheers.

        – tjjjohnson
        May 22 '14 at 4:22











      • works in fedora 20

        – sivann
        Sep 19 '14 at 8:48






      • 5





        @AnthonyAnanich: Does work for me in RHEL 7.

        – krlmlr
        Dec 17 '14 at 11:14






      • 3





        <time machine from the future>I find the default units of Petabytes is woefully inadequate and unhelpful. I always end up having to hit E at least once to set top in units of Exabytes.</time machine from the future>

        – Trevor Boyd Smith
        Feb 16 '17 at 15:12












      • 4





        Does not work for me in RHEL

        – Anthony Ananich
        May 11 '14 at 11:49






      • 3





        Works in ubuntu 14.04 cheers.

        – tjjjohnson
        May 22 '14 at 4:22











      • works in fedora 20

        – sivann
        Sep 19 '14 at 8:48






      • 5





        @AnthonyAnanich: Does work for me in RHEL 7.

        – krlmlr
        Dec 17 '14 at 11:14






      • 3





        <time machine from the future>I find the default units of Petabytes is woefully inadequate and unhelpful. I always end up having to hit E at least once to set top in units of Exabytes.</time machine from the future>

        – Trevor Boyd Smith
        Feb 16 '17 at 15:12







      4




      4





      Does not work for me in RHEL

      – Anthony Ananich
      May 11 '14 at 11:49





      Does not work for me in RHEL

      – Anthony Ananich
      May 11 '14 at 11:49




      3




      3





      Works in ubuntu 14.04 cheers.

      – tjjjohnson
      May 22 '14 at 4:22





      Works in ubuntu 14.04 cheers.

      – tjjjohnson
      May 22 '14 at 4:22













      works in fedora 20

      – sivann
      Sep 19 '14 at 8:48





      works in fedora 20

      – sivann
      Sep 19 '14 at 8:48




      5




      5





      @AnthonyAnanich: Does work for me in RHEL 7.

      – krlmlr
      Dec 17 '14 at 11:14





      @AnthonyAnanich: Does work for me in RHEL 7.

      – krlmlr
      Dec 17 '14 at 11:14




      3




      3





      <time machine from the future>I find the default units of Petabytes is woefully inadequate and unhelpful. I always end up having to hit E at least once to set top in units of Exabytes.</time machine from the future>

      – Trevor Boyd Smith
      Feb 16 '17 at 15:12





      <time machine from the future>I find the default units of Petabytes is woefully inadequate and unhelpful. I always end up having to hit E at least once to set top in units of Exabytes.</time machine from the future>

      – Trevor Boyd Smith
      Feb 16 '17 at 15:12













      64














      There is a command-line option which does that:



      -M : Detect memory units
      Show memory units (k/M/G) and display floating point values in the
      memory summary.


      So it is sufficient to run top like that:



      top -M


      If -M does not work you can press E while already in top.



      From man top (procps-ng version 3.3.9):




      E :Extend-Memory-Scale in Summary Area
      With this command you can cycle through the available summary area memory scaling which ranges from KiB (kibibytes or 1,024 bytes) through EiB (exbibytes or 1,152,921,504,606,846,976 bytes).



      If you see a '+' between a displayed number and the following label, it means that top was forced to truncate some portion of that number. By raising the scaling factor, such truncation can be avoided.




      top, showing Memory units in "M"






      share|improve this answer




















      • 22





        +1 , but checked in Ubuntu , its saying not working. Any way in Ubuntu ?

        – rɑːdʒɑ
        Dec 19 '13 at 15:59












      • I have no clue, @richardparker

        – Anthony Ananich
        Dec 19 '13 at 16:32






      • 1





        Damn, you racked up a ton of karma with a simple (but good) self-answered Q&A. Nice work.

        – user1717828
        Oct 29 '15 at 15:39






      • 3





        That blur isn't blurry enough, antonio.

        – Evgeni Sergeev
        May 24 '16 at 9:19






      • 2





        Works for RHEL 6 (pressing 'E' does not as the top comment)

        – Molten Ice
        Sep 9 '16 at 10:02
















      64














      There is a command-line option which does that:



      -M : Detect memory units
      Show memory units (k/M/G) and display floating point values in the
      memory summary.


      So it is sufficient to run top like that:



      top -M


      If -M does not work you can press E while already in top.



      From man top (procps-ng version 3.3.9):




      E :Extend-Memory-Scale in Summary Area
      With this command you can cycle through the available summary area memory scaling which ranges from KiB (kibibytes or 1,024 bytes) through EiB (exbibytes or 1,152,921,504,606,846,976 bytes).



      If you see a '+' between a displayed number and the following label, it means that top was forced to truncate some portion of that number. By raising the scaling factor, such truncation can be avoided.




      top, showing Memory units in "M"






      share|improve this answer




















      • 22





        +1 , but checked in Ubuntu , its saying not working. Any way in Ubuntu ?

        – rɑːdʒɑ
        Dec 19 '13 at 15:59












      • I have no clue, @richardparker

        – Anthony Ananich
        Dec 19 '13 at 16:32






      • 1





        Damn, you racked up a ton of karma with a simple (but good) self-answered Q&A. Nice work.

        – user1717828
        Oct 29 '15 at 15:39






      • 3





        That blur isn't blurry enough, antonio.

        – Evgeni Sergeev
        May 24 '16 at 9:19






      • 2





        Works for RHEL 6 (pressing 'E' does not as the top comment)

        – Molten Ice
        Sep 9 '16 at 10:02














      64












      64








      64







      There is a command-line option which does that:



      -M : Detect memory units
      Show memory units (k/M/G) and display floating point values in the
      memory summary.


      So it is sufficient to run top like that:



      top -M


      If -M does not work you can press E while already in top.



      From man top (procps-ng version 3.3.9):




      E :Extend-Memory-Scale in Summary Area
      With this command you can cycle through the available summary area memory scaling which ranges from KiB (kibibytes or 1,024 bytes) through EiB (exbibytes or 1,152,921,504,606,846,976 bytes).



      If you see a '+' between a displayed number and the following label, it means that top was forced to truncate some portion of that number. By raising the scaling factor, such truncation can be avoided.




      top, showing Memory units in "M"






      share|improve this answer















      There is a command-line option which does that:



      -M : Detect memory units
      Show memory units (k/M/G) and display floating point values in the
      memory summary.


      So it is sufficient to run top like that:



      top -M


      If -M does not work you can press E while already in top.



      From man top (procps-ng version 3.3.9):




      E :Extend-Memory-Scale in Summary Area
      With this command you can cycle through the available summary area memory scaling which ranges from KiB (kibibytes or 1,024 bytes) through EiB (exbibytes or 1,152,921,504,606,846,976 bytes).



      If you see a '+' between a displayed number and the following label, it means that top was forced to truncate some portion of that number. By raising the scaling factor, such truncation can be avoided.




      top, showing Memory units in "M"







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Feb 10 '18 at 15:13









      Jeff Schaller

      43.2k1159138




      43.2k1159138










      answered Dec 19 '13 at 15:55









      Anthony AnanichAnthony Ananich

      3,22942241




      3,22942241







      • 22





        +1 , but checked in Ubuntu , its saying not working. Any way in Ubuntu ?

        – rɑːdʒɑ
        Dec 19 '13 at 15:59












      • I have no clue, @richardparker

        – Anthony Ananich
        Dec 19 '13 at 16:32






      • 1





        Damn, you racked up a ton of karma with a simple (but good) self-answered Q&A. Nice work.

        – user1717828
        Oct 29 '15 at 15:39






      • 3





        That blur isn't blurry enough, antonio.

        – Evgeni Sergeev
        May 24 '16 at 9:19






      • 2





        Works for RHEL 6 (pressing 'E' does not as the top comment)

        – Molten Ice
        Sep 9 '16 at 10:02













      • 22





        +1 , but checked in Ubuntu , its saying not working. Any way in Ubuntu ?

        – rɑːdʒɑ
        Dec 19 '13 at 15:59












      • I have no clue, @richardparker

        – Anthony Ananich
        Dec 19 '13 at 16:32






      • 1





        Damn, you racked up a ton of karma with a simple (but good) self-answered Q&A. Nice work.

        – user1717828
        Oct 29 '15 at 15:39






      • 3





        That blur isn't blurry enough, antonio.

        – Evgeni Sergeev
        May 24 '16 at 9:19






      • 2





        Works for RHEL 6 (pressing 'E' does not as the top comment)

        – Molten Ice
        Sep 9 '16 at 10:02








      22




      22





      +1 , but checked in Ubuntu , its saying not working. Any way in Ubuntu ?

      – rɑːdʒɑ
      Dec 19 '13 at 15:59






      +1 , but checked in Ubuntu , its saying not working. Any way in Ubuntu ?

      – rɑːdʒɑ
      Dec 19 '13 at 15:59














      I have no clue, @richardparker

      – Anthony Ananich
      Dec 19 '13 at 16:32





      I have no clue, @richardparker

      – Anthony Ananich
      Dec 19 '13 at 16:32




      1




      1





      Damn, you racked up a ton of karma with a simple (but good) self-answered Q&A. Nice work.

      – user1717828
      Oct 29 '15 at 15:39





      Damn, you racked up a ton of karma with a simple (but good) self-answered Q&A. Nice work.

      – user1717828
      Oct 29 '15 at 15:39




      3




      3





      That blur isn't blurry enough, antonio.

      – Evgeni Sergeev
      May 24 '16 at 9:19





      That blur isn't blurry enough, antonio.

      – Evgeni Sergeev
      May 24 '16 at 9:19




      2




      2





      Works for RHEL 6 (pressing 'E' does not as the top comment)

      – Molten Ice
      Sep 9 '16 at 10:02






      Works for RHEL 6 (pressing 'E' does not as the top comment)

      – Molten Ice
      Sep 9 '16 at 10:02












      43














      You can also use htop. It's much cooler than top.



      If you are using Debian or one of its derivatives, then you can install it using sudo apt-get install htop.



      htop screenshot



      Edit: Here is a screenshot with a better color scheme:



      htop screenshot with better colors






      share|improve this answer




















      • 16





        htop looks better with either a white or a black background. Your screenshot color scheme is less than optimal.

        – jlliagre
        Dec 19 '13 at 17:42






      • 1





        @jlliagre Eye of the beholder.

        – Jonathan Komar
        Aug 7 '15 at 7:07











      • @macmadness86 alternate screenshot added

        – jlliagre
        Aug 7 '15 at 7:20






      • 1





        fyi, htop comes with other color shemes which you can access by going to setup F2.

        – Miguel Mota
        Nov 28 '16 at 20:09
















      43














      You can also use htop. It's much cooler than top.



      If you are using Debian or one of its derivatives, then you can install it using sudo apt-get install htop.



      htop screenshot



      Edit: Here is a screenshot with a better color scheme:



      htop screenshot with better colors






      share|improve this answer




















      • 16





        htop looks better with either a white or a black background. Your screenshot color scheme is less than optimal.

        – jlliagre
        Dec 19 '13 at 17:42






      • 1





        @jlliagre Eye of the beholder.

        – Jonathan Komar
        Aug 7 '15 at 7:07











      • @macmadness86 alternate screenshot added

        – jlliagre
        Aug 7 '15 at 7:20






      • 1





        fyi, htop comes with other color shemes which you can access by going to setup F2.

        – Miguel Mota
        Nov 28 '16 at 20:09














      43












      43








      43







      You can also use htop. It's much cooler than top.



      If you are using Debian or one of its derivatives, then you can install it using sudo apt-get install htop.



      htop screenshot



      Edit: Here is a screenshot with a better color scheme:



      htop screenshot with better colors






      share|improve this answer















      You can also use htop. It's much cooler than top.



      If you are using Debian or one of its derivatives, then you can install it using sudo apt-get install htop.



      htop screenshot



      Edit: Here is a screenshot with a better color scheme:



      htop screenshot with better colors







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Aug 7 '15 at 7:19









      jlliagre

      47.5k784136




      47.5k784136










      answered Dec 19 '13 at 15:58









      rɑːdʒɑrɑːdʒɑ

      2,63972652




      2,63972652







      • 16





        htop looks better with either a white or a black background. Your screenshot color scheme is less than optimal.

        – jlliagre
        Dec 19 '13 at 17:42






      • 1





        @jlliagre Eye of the beholder.

        – Jonathan Komar
        Aug 7 '15 at 7:07











      • @macmadness86 alternate screenshot added

        – jlliagre
        Aug 7 '15 at 7:20






      • 1





        fyi, htop comes with other color shemes which you can access by going to setup F2.

        – Miguel Mota
        Nov 28 '16 at 20:09













      • 16





        htop looks better with either a white or a black background. Your screenshot color scheme is less than optimal.

        – jlliagre
        Dec 19 '13 at 17:42






      • 1





        @jlliagre Eye of the beholder.

        – Jonathan Komar
        Aug 7 '15 at 7:07











      • @macmadness86 alternate screenshot added

        – jlliagre
        Aug 7 '15 at 7:20






      • 1





        fyi, htop comes with other color shemes which you can access by going to setup F2.

        – Miguel Mota
        Nov 28 '16 at 20:09








      16




      16





      htop looks better with either a white or a black background. Your screenshot color scheme is less than optimal.

      – jlliagre
      Dec 19 '13 at 17:42





      htop looks better with either a white or a black background. Your screenshot color scheme is less than optimal.

      – jlliagre
      Dec 19 '13 at 17:42




      1




      1





      @jlliagre Eye of the beholder.

      – Jonathan Komar
      Aug 7 '15 at 7:07





      @jlliagre Eye of the beholder.

      – Jonathan Komar
      Aug 7 '15 at 7:07













      @macmadness86 alternate screenshot added

      – jlliagre
      Aug 7 '15 at 7:20





      @macmadness86 alternate screenshot added

      – jlliagre
      Aug 7 '15 at 7:20




      1




      1





      fyi, htop comes with other color shemes which you can access by going to setup F2.

      – Miguel Mota
      Nov 28 '16 at 20:09






      fyi, htop comes with other color shemes which you can access by going to setup F2.

      – Miguel Mota
      Nov 28 '16 at 20:09












      31














      top -M doesn't work on any of the Fedora, Debian or Ubuntu distros to my knowledge. I just tried it and it's not in the procps-ng package that provides top. There are many implementations of top so one needs to pay special attention to which they use.



      In general it's best to use free with switching to get the amount of memory free on Linux.



      procps vs. procps-ng



      You might of noticed that on CentOS 5 & 6 as well as RHEL 5 & 6 that top -M appears to work. This is because those distros ship with the original version of procps. The project was forked and there is now another project procps-ng.



      Some of the details as to why there was fork, from the Fedora Project's page.



      excerpt




      Old (legacy) procps tools had no updates for several years and that led to a massive code split caused by a local-only application of distribution specific patches, which were not merged upstream. The project became hardly maintainable since some of the newly written patches were incompatible with sources maintained by other distributors. A similar incompatibility could be noticed in the applications behavior and their command line switches. This inevitable update can be understood as an effort to unify the procps tools across all Linux distributions.




      So to be clear, the forked project, procps-ng is what Debian, Fedora, Ubuntu, and other distros are using, the legacy project, which does support top -M is still in use of several of the longer term releases that don't keep up with the latest and greatest.



      NOTE: I downloaded the latest version of procps-ng, "procps-ng version 3.3.9.1-14ef" and it too was lacking the -M switch.



      $ ./top/top -version
      procps-ng version 3.3.9.1-14ef
      Usage:
      lt-top -hv | -bcHiOSs -d secs -n max -u|U user -p pid(s) -o field -w [cols]


      free



      In running free with switches you can see the most likely reason as to why the lack of units feature is missing from procps-ng's implementation of top.



      $ free -m
      total used free shared buffers cached
      Mem: 7782 6506 1276 0 504 1726
      -/+ buffers/cache: 4274 3507
      Swap: 7823 1429 6394
      [saml@greeneggs ~]$ free -k
      total used free shared buffers cached
      Mem: 7969492 6663180 1306312 0 516948 1764780
      -/+ buffers/cache: 4381452 3588040
      Swap: 8011772 1463456 6548316


      Rounding becomes problematic, so I believe, procps's implementation avoids the issue by not offering the ability.



      htop



      Does an OK job of showing aggregate memory usage.



         ss of htop



      atop



      In my opinion a better tool for looking at memory.



         ss of atop



      nmon



      Another useful tool is nmon for looking at system performance.



         ss of nmon






      share|improve this answer




















      • 1





        top -M works for me in RHEL6

        – Anthony Ananich
        Dec 19 '13 at 21:58






      • 2





        @AnthonyAnanich - I researched this a bit more. CentOS 5.4's top version "procps version 3.2.8" has the -M switch, CentOS 5.8, also has this switch, "procps version 3.2.7". However Fedora 19 has "procps-ng version 3.3.8" which doesn't support the -M switch.

        – slm
        Dec 19 '13 at 22:07












      • @AnthonyAnanich - added details to my answer about procps vs. procps-ng.

        – slm
        Dec 19 '13 at 22:14











      • Great answer, thank you, @slm. I even do not know which of the three answers is the best. Will not award to anyone, I want let other people decide.

        – Anthony Ananich
        Jan 22 '14 at 11:11











      • @AnthonyAnanich - NP. You should consider picking one if you feel that it answers your Q 100%. Accepting an A is important since it signals to the rest of the community that passes by your Q that you as the OP felt this A answered or solved your particular issues. If other A's are outstanding they'll get UV'd as well. Not accepting one, is basically a signal that you as the OP still feel your Q hasn't bee sufficiently answered. The accepted A also gets positioned as the 1st A when ppl see your Q in the future.

        – slm
        Jan 22 '14 at 12:59
















      31














      top -M doesn't work on any of the Fedora, Debian or Ubuntu distros to my knowledge. I just tried it and it's not in the procps-ng package that provides top. There are many implementations of top so one needs to pay special attention to which they use.



      In general it's best to use free with switching to get the amount of memory free on Linux.



      procps vs. procps-ng



      You might of noticed that on CentOS 5 & 6 as well as RHEL 5 & 6 that top -M appears to work. This is because those distros ship with the original version of procps. The project was forked and there is now another project procps-ng.



      Some of the details as to why there was fork, from the Fedora Project's page.



      excerpt




      Old (legacy) procps tools had no updates for several years and that led to a massive code split caused by a local-only application of distribution specific patches, which were not merged upstream. The project became hardly maintainable since some of the newly written patches were incompatible with sources maintained by other distributors. A similar incompatibility could be noticed in the applications behavior and their command line switches. This inevitable update can be understood as an effort to unify the procps tools across all Linux distributions.




      So to be clear, the forked project, procps-ng is what Debian, Fedora, Ubuntu, and other distros are using, the legacy project, which does support top -M is still in use of several of the longer term releases that don't keep up with the latest and greatest.



      NOTE: I downloaded the latest version of procps-ng, "procps-ng version 3.3.9.1-14ef" and it too was lacking the -M switch.



      $ ./top/top -version
      procps-ng version 3.3.9.1-14ef
      Usage:
      lt-top -hv | -bcHiOSs -d secs -n max -u|U user -p pid(s) -o field -w [cols]


      free



      In running free with switches you can see the most likely reason as to why the lack of units feature is missing from procps-ng's implementation of top.



      $ free -m
      total used free shared buffers cached
      Mem: 7782 6506 1276 0 504 1726
      -/+ buffers/cache: 4274 3507
      Swap: 7823 1429 6394
      [saml@greeneggs ~]$ free -k
      total used free shared buffers cached
      Mem: 7969492 6663180 1306312 0 516948 1764780
      -/+ buffers/cache: 4381452 3588040
      Swap: 8011772 1463456 6548316


      Rounding becomes problematic, so I believe, procps's implementation avoids the issue by not offering the ability.



      htop



      Does an OK job of showing aggregate memory usage.



         ss of htop



      atop



      In my opinion a better tool for looking at memory.



         ss of atop



      nmon



      Another useful tool is nmon for looking at system performance.



         ss of nmon






      share|improve this answer




















      • 1





        top -M works for me in RHEL6

        – Anthony Ananich
        Dec 19 '13 at 21:58






      • 2





        @AnthonyAnanich - I researched this a bit more. CentOS 5.4's top version "procps version 3.2.8" has the -M switch, CentOS 5.8, also has this switch, "procps version 3.2.7". However Fedora 19 has "procps-ng version 3.3.8" which doesn't support the -M switch.

        – slm
        Dec 19 '13 at 22:07












      • @AnthonyAnanich - added details to my answer about procps vs. procps-ng.

        – slm
        Dec 19 '13 at 22:14











      • Great answer, thank you, @slm. I even do not know which of the three answers is the best. Will not award to anyone, I want let other people decide.

        – Anthony Ananich
        Jan 22 '14 at 11:11











      • @AnthonyAnanich - NP. You should consider picking one if you feel that it answers your Q 100%. Accepting an A is important since it signals to the rest of the community that passes by your Q that you as the OP felt this A answered or solved your particular issues. If other A's are outstanding they'll get UV'd as well. Not accepting one, is basically a signal that you as the OP still feel your Q hasn't bee sufficiently answered. The accepted A also gets positioned as the 1st A when ppl see your Q in the future.

        – slm
        Jan 22 '14 at 12:59














      31












      31








      31







      top -M doesn't work on any of the Fedora, Debian or Ubuntu distros to my knowledge. I just tried it and it's not in the procps-ng package that provides top. There are many implementations of top so one needs to pay special attention to which they use.



      In general it's best to use free with switching to get the amount of memory free on Linux.



      procps vs. procps-ng



      You might of noticed that on CentOS 5 & 6 as well as RHEL 5 & 6 that top -M appears to work. This is because those distros ship with the original version of procps. The project was forked and there is now another project procps-ng.



      Some of the details as to why there was fork, from the Fedora Project's page.



      excerpt




      Old (legacy) procps tools had no updates for several years and that led to a massive code split caused by a local-only application of distribution specific patches, which were not merged upstream. The project became hardly maintainable since some of the newly written patches were incompatible with sources maintained by other distributors. A similar incompatibility could be noticed in the applications behavior and their command line switches. This inevitable update can be understood as an effort to unify the procps tools across all Linux distributions.




      So to be clear, the forked project, procps-ng is what Debian, Fedora, Ubuntu, and other distros are using, the legacy project, which does support top -M is still in use of several of the longer term releases that don't keep up with the latest and greatest.



      NOTE: I downloaded the latest version of procps-ng, "procps-ng version 3.3.9.1-14ef" and it too was lacking the -M switch.



      $ ./top/top -version
      procps-ng version 3.3.9.1-14ef
      Usage:
      lt-top -hv | -bcHiOSs -d secs -n max -u|U user -p pid(s) -o field -w [cols]


      free



      In running free with switches you can see the most likely reason as to why the lack of units feature is missing from procps-ng's implementation of top.



      $ free -m
      total used free shared buffers cached
      Mem: 7782 6506 1276 0 504 1726
      -/+ buffers/cache: 4274 3507
      Swap: 7823 1429 6394
      [saml@greeneggs ~]$ free -k
      total used free shared buffers cached
      Mem: 7969492 6663180 1306312 0 516948 1764780
      -/+ buffers/cache: 4381452 3588040
      Swap: 8011772 1463456 6548316


      Rounding becomes problematic, so I believe, procps's implementation avoids the issue by not offering the ability.



      htop



      Does an OK job of showing aggregate memory usage.



         ss of htop



      atop



      In my opinion a better tool for looking at memory.



         ss of atop



      nmon



      Another useful tool is nmon for looking at system performance.



         ss of nmon






      share|improve this answer















      top -M doesn't work on any of the Fedora, Debian or Ubuntu distros to my knowledge. I just tried it and it's not in the procps-ng package that provides top. There are many implementations of top so one needs to pay special attention to which they use.



      In general it's best to use free with switching to get the amount of memory free on Linux.



      procps vs. procps-ng



      You might of noticed that on CentOS 5 & 6 as well as RHEL 5 & 6 that top -M appears to work. This is because those distros ship with the original version of procps. The project was forked and there is now another project procps-ng.



      Some of the details as to why there was fork, from the Fedora Project's page.



      excerpt




      Old (legacy) procps tools had no updates for several years and that led to a massive code split caused by a local-only application of distribution specific patches, which were not merged upstream. The project became hardly maintainable since some of the newly written patches were incompatible with sources maintained by other distributors. A similar incompatibility could be noticed in the applications behavior and their command line switches. This inevitable update can be understood as an effort to unify the procps tools across all Linux distributions.




      So to be clear, the forked project, procps-ng is what Debian, Fedora, Ubuntu, and other distros are using, the legacy project, which does support top -M is still in use of several of the longer term releases that don't keep up with the latest and greatest.



      NOTE: I downloaded the latest version of procps-ng, "procps-ng version 3.3.9.1-14ef" and it too was lacking the -M switch.



      $ ./top/top -version
      procps-ng version 3.3.9.1-14ef
      Usage:
      lt-top -hv | -bcHiOSs -d secs -n max -u|U user -p pid(s) -o field -w [cols]


      free



      In running free with switches you can see the most likely reason as to why the lack of units feature is missing from procps-ng's implementation of top.



      $ free -m
      total used free shared buffers cached
      Mem: 7782 6506 1276 0 504 1726
      -/+ buffers/cache: 4274 3507
      Swap: 7823 1429 6394
      [saml@greeneggs ~]$ free -k
      total used free shared buffers cached
      Mem: 7969492 6663180 1306312 0 516948 1764780
      -/+ buffers/cache: 4381452 3588040
      Swap: 8011772 1463456 6548316


      Rounding becomes problematic, so I believe, procps's implementation avoids the issue by not offering the ability.



      htop



      Does an OK job of showing aggregate memory usage.



         ss of htop



      atop



      In my opinion a better tool for looking at memory.



         ss of atop



      nmon



      Another useful tool is nmon for looking at system performance.



         ss of nmon







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Dec 19 '13 at 22:57

























      answered Dec 19 '13 at 18:29









      slmslm

      253k71535686




      253k71535686







      • 1





        top -M works for me in RHEL6

        – Anthony Ananich
        Dec 19 '13 at 21:58






      • 2





        @AnthonyAnanich - I researched this a bit more. CentOS 5.4's top version "procps version 3.2.8" has the -M switch, CentOS 5.8, also has this switch, "procps version 3.2.7". However Fedora 19 has "procps-ng version 3.3.8" which doesn't support the -M switch.

        – slm
        Dec 19 '13 at 22:07












      • @AnthonyAnanich - added details to my answer about procps vs. procps-ng.

        – slm
        Dec 19 '13 at 22:14











      • Great answer, thank you, @slm. I even do not know which of the three answers is the best. Will not award to anyone, I want let other people decide.

        – Anthony Ananich
        Jan 22 '14 at 11:11











      • @AnthonyAnanich - NP. You should consider picking one if you feel that it answers your Q 100%. Accepting an A is important since it signals to the rest of the community that passes by your Q that you as the OP felt this A answered or solved your particular issues. If other A's are outstanding they'll get UV'd as well. Not accepting one, is basically a signal that you as the OP still feel your Q hasn't bee sufficiently answered. The accepted A also gets positioned as the 1st A when ppl see your Q in the future.

        – slm
        Jan 22 '14 at 12:59













      • 1





        top -M works for me in RHEL6

        – Anthony Ananich
        Dec 19 '13 at 21:58






      • 2





        @AnthonyAnanich - I researched this a bit more. CentOS 5.4's top version "procps version 3.2.8" has the -M switch, CentOS 5.8, also has this switch, "procps version 3.2.7". However Fedora 19 has "procps-ng version 3.3.8" which doesn't support the -M switch.

        – slm
        Dec 19 '13 at 22:07












      • @AnthonyAnanich - added details to my answer about procps vs. procps-ng.

        – slm
        Dec 19 '13 at 22:14











      • Great answer, thank you, @slm. I even do not know which of the three answers is the best. Will not award to anyone, I want let other people decide.

        – Anthony Ananich
        Jan 22 '14 at 11:11











      • @AnthonyAnanich - NP. You should consider picking one if you feel that it answers your Q 100%. Accepting an A is important since it signals to the rest of the community that passes by your Q that you as the OP felt this A answered or solved your particular issues. If other A's are outstanding they'll get UV'd as well. Not accepting one, is basically a signal that you as the OP still feel your Q hasn't bee sufficiently answered. The accepted A also gets positioned as the 1st A when ppl see your Q in the future.

        – slm
        Jan 22 '14 at 12:59








      1




      1





      top -M works for me in RHEL6

      – Anthony Ananich
      Dec 19 '13 at 21:58





      top -M works for me in RHEL6

      – Anthony Ananich
      Dec 19 '13 at 21:58




      2




      2





      @AnthonyAnanich - I researched this a bit more. CentOS 5.4's top version "procps version 3.2.8" has the -M switch, CentOS 5.8, also has this switch, "procps version 3.2.7". However Fedora 19 has "procps-ng version 3.3.8" which doesn't support the -M switch.

      – slm
      Dec 19 '13 at 22:07






      @AnthonyAnanich - I researched this a bit more. CentOS 5.4's top version "procps version 3.2.8" has the -M switch, CentOS 5.8, also has this switch, "procps version 3.2.7". However Fedora 19 has "procps-ng version 3.3.8" which doesn't support the -M switch.

      – slm
      Dec 19 '13 at 22:07














      @AnthonyAnanich - added details to my answer about procps vs. procps-ng.

      – slm
      Dec 19 '13 at 22:14





      @AnthonyAnanich - added details to my answer about procps vs. procps-ng.

      – slm
      Dec 19 '13 at 22:14













      Great answer, thank you, @slm. I even do not know which of the three answers is the best. Will not award to anyone, I want let other people decide.

      – Anthony Ananich
      Jan 22 '14 at 11:11





      Great answer, thank you, @slm. I even do not know which of the three answers is the best. Will not award to anyone, I want let other people decide.

      – Anthony Ananich
      Jan 22 '14 at 11:11













      @AnthonyAnanich - NP. You should consider picking one if you feel that it answers your Q 100%. Accepting an A is important since it signals to the rest of the community that passes by your Q that you as the OP felt this A answered or solved your particular issues. If other A's are outstanding they'll get UV'd as well. Not accepting one, is basically a signal that you as the OP still feel your Q hasn't bee sufficiently answered. The accepted A also gets positioned as the 1st A when ppl see your Q in the future.

      – slm
      Jan 22 '14 at 12:59






      @AnthonyAnanich - NP. You should consider picking one if you feel that it answers your Q 100%. Accepting an A is important since it signals to the rest of the community that passes by your Q that you as the OP felt this A answered or solved your particular issues. If other A's are outstanding they'll get UV'd as well. Not accepting one, is basically a signal that you as the OP still feel your Q hasn't bee sufficiently answered. The accepted A also gets positioned as the 1st A when ppl see your Q in the future.

      – slm
      Jan 22 '14 at 12:59












      17














      You can press the following keys:




      • e -- Change the scaling factor on the summary display


      • Shift+e -- Change the scaling factor on the task


      • Shift+w -- Save current settings





      share|improve this answer

























      • e and shift-e are the other way round on my system at least...

        – fifaltra
        Aug 26 '16 at 9:45






      • 2





        Didn't know about Shift + w , great tip to save my config :)

        – sofly
        Mar 9 '17 at 18:27
















      17














      You can press the following keys:




      • e -- Change the scaling factor on the summary display


      • Shift+e -- Change the scaling factor on the task


      • Shift+w -- Save current settings





      share|improve this answer

























      • e and shift-e are the other way round on my system at least...

        – fifaltra
        Aug 26 '16 at 9:45






      • 2





        Didn't know about Shift + w , great tip to save my config :)

        – sofly
        Mar 9 '17 at 18:27














      17












      17








      17







      You can press the following keys:




      • e -- Change the scaling factor on the summary display


      • Shift+e -- Change the scaling factor on the task


      • Shift+w -- Save current settings





      share|improve this answer















      You can press the following keys:




      • e -- Change the scaling factor on the summary display


      • Shift+e -- Change the scaling factor on the task


      • Shift+w -- Save current settings






      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Dec 22 '15 at 20:17









      Michael Mrozek

      61.7k29192211




      61.7k29192211










      answered Dec 22 '15 at 18:52









      Gleb BelyaevGleb Belyaev

      27123




      27123












      • e and shift-e are the other way round on my system at least...

        – fifaltra
        Aug 26 '16 at 9:45






      • 2





        Didn't know about Shift + w , great tip to save my config :)

        – sofly
        Mar 9 '17 at 18:27


















      • e and shift-e are the other way round on my system at least...

        – fifaltra
        Aug 26 '16 at 9:45






      • 2





        Didn't know about Shift + w , great tip to save my config :)

        – sofly
        Mar 9 '17 at 18:27

















      e and shift-e are the other way round on my system at least...

      – fifaltra
      Aug 26 '16 at 9:45





      e and shift-e are the other way round on my system at least...

      – fifaltra
      Aug 26 '16 at 9:45




      2




      2





      Didn't know about Shift + w , great tip to save my config :)

      – sofly
      Mar 9 '17 at 18:27






      Didn't know about Shift + w , great tip to save my config :)

      – sofly
      Mar 9 '17 at 18:27












      4














      So the quick answer : depending on your linux distro, try either :



      top -M


      OR, after starting top, type capital E (then W to write the config).



      One of those should work for nearly everybody (except Solaris, of course, where you'd be lucky to have top at all).



      bonus tip : every time you start a top instance on a new install, type ExyzW to save colours and highlighting and units - what a relief!






      share|improve this answer


















      • 4





        All of this information has been posted already.

        – Scott
        Feb 9 '16 at 1:09















      4














      So the quick answer : depending on your linux distro, try either :



      top -M


      OR, after starting top, type capital E (then W to write the config).



      One of those should work for nearly everybody (except Solaris, of course, where you'd be lucky to have top at all).



      bonus tip : every time you start a top instance on a new install, type ExyzW to save colours and highlighting and units - what a relief!






      share|improve this answer


















      • 4





        All of this information has been posted already.

        – Scott
        Feb 9 '16 at 1:09













      4












      4








      4







      So the quick answer : depending on your linux distro, try either :



      top -M


      OR, after starting top, type capital E (then W to write the config).



      One of those should work for nearly everybody (except Solaris, of course, where you'd be lucky to have top at all).



      bonus tip : every time you start a top instance on a new install, type ExyzW to save colours and highlighting and units - what a relief!






      share|improve this answer













      So the quick answer : depending on your linux distro, try either :



      top -M


      OR, after starting top, type capital E (then W to write the config).



      One of those should work for nearly everybody (except Solaris, of course, where you'd be lucky to have top at all).



      bonus tip : every time you start a top instance on a new install, type ExyzW to save colours and highlighting and units - what a relief!







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Feb 9 '16 at 0:39









      andrew lorienandrew lorien

      17010




      17010







      • 4





        All of this information has been posted already.

        – Scott
        Feb 9 '16 at 1:09












      • 4





        All of this information has been posted already.

        – Scott
        Feb 9 '16 at 1:09







      4




      4





      All of this information has been posted already.

      – Scott
      Feb 9 '16 at 1:09





      All of this information has been posted already.

      – Scott
      Feb 9 '16 at 1:09











      0














      On RHEL7
      top
      shift + e or CspsLK ON. You need " E " capital alphabet.



      You will get in MiB, Gib, TiB, PiB, EiB. All these you can access.



      And also you can you htop command which should be downlaoded and installed on rpm base system.



      Thank you.
      Sagar Dalvi






      share|improve this answer



























        0














        On RHEL7
        top
        shift + e or CspsLK ON. You need " E " capital alphabet.



        You will get in MiB, Gib, TiB, PiB, EiB. All these you can access.



        And also you can you htop command which should be downlaoded and installed on rpm base system.



        Thank you.
        Sagar Dalvi






        share|improve this answer

























          0












          0








          0







          On RHEL7
          top
          shift + e or CspsLK ON. You need " E " capital alphabet.



          You will get in MiB, Gib, TiB, PiB, EiB. All these you can access.



          And also you can you htop command which should be downlaoded and installed on rpm base system.



          Thank you.
          Sagar Dalvi






          share|improve this answer













          On RHEL7
          top
          shift + e or CspsLK ON. You need " E " capital alphabet.



          You will get in MiB, Gib, TiB, PiB, EiB. All these you can access.



          And also you can you htop command which should be downlaoded and installed on rpm base system.



          Thank you.
          Sagar Dalvi







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jul 30 '17 at 11:32









          Sagar DalviSagar Dalvi

          1081210




          1081210





















              0














              On command line I want top to show memory in MB. How to do it?





              share








              New contributor




              Ari Järmälä is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.
























                0














                On command line I want top to show memory in MB. How to do it?





                share








                New contributor




                Ari Järmälä is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






















                  0












                  0








                  0







                  On command line I want top to show memory in MB. How to do it?





                  share








                  New contributor




                  Ari Järmälä is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.










                  On command line I want top to show memory in MB. How to do it?






                  share








                  New contributor




                  Ari Järmälä is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.








                  share


                  share






                  New contributor




                  Ari Järmälä is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  answered 2 mins ago









                  Ari JärmäläAri Järmälä

                  1




                  1




                  New contributor




                  Ari Järmälä is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.





                  New contributor





                  Ari Järmälä is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






                  Ari Järmälä is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Unix & Linux Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f105908%2fhow-to-display-meminfo-in-megabytes-in-top%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Mobil Contents History Mobil brands Former Mobil brands Lukoil transaction Mobil UK Mobil Australia Mobil New Zealand Mobil Greece Mobil in Japan Mobil in Canada Mobil Egypt See also References External links Navigation menuwww.mobil.com"Mobil Corporation"the original"Our Houston campus""Business & Finance: Socony-Vacuum Corp.""Popular Mechanics""Lubrite Technologies""Exxon Mobil campus 'clearly happening'""Toledo Blade - Google News Archive Search""The Lion and the Moose - How 2 Executives Pulled off the Biggest Merger Ever""ExxonMobil Press Release""Lubricants""Archived copy"the original"Mobil 1™ and Mobil Super™ motor oil and synthetic motor oil - Mobil™ Motor Oils""Mobil Delvac""Mobil Industrial website""The State of Competition in Gasoline Marketing: The Effects of Refiner Operations at Retail""Mobil Travel Guide to become Forbes Travel Guide""Hotel Rankings: Forbes Merges with Mobil"the original"Jamieson oil industry history""Mobil news""Caltex pumps for control""Watchdog blocks Caltex bid""Exxon Mobil sells service station network""Mobil Oil New Zealand Limited is New Zealand's oldest oil company, with predecessor companies having first established a presence in the country in 1896""ExxonMobil subsidiaries have a business history in New Zealand stretching back more than 120 years. We are involved in petroleum refining and distribution and the marketing of fuels, lubricants and chemical products""Archived copy"the original"Exxon Mobil to Sell Its Japanese Arm for $3.9 Billion""Gas station merger will end Esso and Mobil's long run in Japan""Esso moves to affiliate itself with PC Optimum, no longer Aeroplan, in loyalty point switch""Mobil brand of gas stations to launch in Canada after deal for 213 Loblaws-owned locations""Mobil Nears Completion of Rebranding 200 Loblaw Gas Stations""Learn about ExxonMobil's operations in Egypt""Petrol and Diesel Service Stations in Egypt - Mobil"Official websiteExxon Mobil corporate websiteMobil Industrial official websiteeeeeeeeDA04275022275790-40000 0001 0860 5061n82045453134887257134887257

                      Frič See also Navigation menuinternal link

                      Identify plant with long narrow paired leaves and reddish stems Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?What is this plant with long sharp leaves? Is it a weed?What is this 3ft high, stalky plant, with mid sized narrow leaves?What is this young shrub with opposite ovate, crenate leaves and reddish stems?What is this plant with large broad serrated leaves?Identify this upright branching weed with long leaves and reddish stemsPlease help me identify this bulbous plant with long, broad leaves and white flowersWhat is this small annual with narrow gray/green leaves and rust colored daisy-type flowers?What is this chilli plant?Does anyone know what type of chilli plant this is?Help identify this plant