Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Why does top show 730MB of RAM used, but the "Task Manager" shows 190MB?

Some more information on my system:

  • Lubuntu 14.04
  • VirtualBox

Screenshots:

top in terminal

Task Manager

share|improve this question
    
Depends on how you count the memory, bytes or bits , see translatorscafe.com/cafe/units-converter/data-storage/… . And then there are the buffers See linuxatemyram.com . Your two tools are showing the same information using different measures, top is a little more detailed. You can also use free -m –  bodhi.zazen May 17 at 15:11
2  
@NGRhodes related, not duplicated. –  Braiam May 17 at 17:28

2 Answers 2

up vote 6 down vote accepted

Because it includes cache and buffers in top (you can see them as individual items to the right of the total memory).

share|improve this answer

I believe i found the answer:

To understand the process architecture of VirtualBox see The VirtualBox architecture :

Once you start a virtual machine (VM) from the GUI, you have two windows (the main window and the VM), but three processes running. Looking at your system from Task Manager (on Windows) or some system monitor (on Linux), you will see these:

  1. VirtualBox, the GUI for the main window;

  2. Another VirtualBox process that was started with the -startvm parameter, which means that its GUI process acts as a shell for a VM;

  3. VBoxSVC, the service mentioned above, which is running in the background to keep track of all the processes involved.

This was automatically started by the first GUI process.

The source with more information.

share|improve this answer
2  
Could you please clarify how this is relevant? The OP is presumably showing the top output of the guest OS, and anyway what you show has nothing to do with memory usage, only with the number of processes launched by virtualbox. –  terdon May 17 at 15:23
    
@user279450 do you mean if I install lubuntu on a real machine, those numbers will be the same? But I don't understand the relevance. –  Rahmani May 17 at 15:28
    
well, it seems i am wrong. What i thought was because you have your normal processes(windows) and you add more in virtualbox, your windows will read it's own and virtualbox has some extra in it's own environment. Maybe misthinking of me, maybe a language barrier. Thats why you are here ;) –  user279450 May 17 at 15:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.