0

Hello there i have 4 gigabyte of ram installed in my system but only 1.5 gigabyte is used and other ram sapace is in the form of swap space. But i want to use those also. Is it possible?

             total        used        free      shared  buff/cache  available
Mem:           3847        1547         104         231        2194        1810
Swap:          2047         156        1891

I am new to UBANTU so i have this doubt.Please help

2 Answers2

2

Your memory is being fully utilized.

If you look at:

             total        used        free      shared  buff/cache  available
Mem:           3847        1547         104         231        2194        1810

note the columns shared and buff/cache... this is currently unused memory that is used for file and disk buffers/cache.

This line:

Swap:          2047         156        1891

indicates that swap is also being used. Swap is used by the system to store recently unused active memory pages. Swap is not RAM space.

heynnema
  • 70,711
0

Note that there is a difference between RAM and swap. Swap Space is Linux is nothing but a Virtual Memory composed of Hard Disk space used as Main Memory. In case, if RAM is not sufficient to handle the processes, this swap memory will be used.

Modern computers, nowadays, may not need Swap space at all, as we got to get at least 4GB RAM which is enough to handle most of the tasks. But Earlier days (15 years ago), the RAM would be usually a maximum of 1GB, so Swap space play a role in computing.

Memory will be used depending on the type of application. If you use text editor such as gedit, it will use less RAM. But instead of it you use chrome, it will use a lot of memory.

Tejas Lotlikar
  • 2,945
  • 5
  • 17
  • 26