Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

When I give the command 'free -g' and view the output, it says

             total       used       free     shared    buffers     cached
Mem:             1          1          0          0          0          0
-/+ buffers/cache:          1          0
Swap:            3          0          3

My swap is taking 3 GB of ram. And my system is running very slow because of this. Please let me know: how do I reduce swap using 3gb of my ram?

share|improve this question
Can some one please answer this, my system is running damm sloww – user2674154 Jan 28 '14 at 7:45
It won't help if you cry for help like this. – OrangeTux Jan 28 '14 at 7:52
can you post complete data of top or htop. – Raja Jan 28 '14 at 7:53
top - 13:46:41 up 26 min, 3 users, load average: 0.15, 0.23, 0.30 Tasks: 211 total, 1 running, 209 sleeping, 0 stopped, 1 zombie %Cpu(s): 3.6 us, 1.1 sy, 0.0 ni, 95.3 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem: 1923456 total, 1750836 used, 172620 free, 56788 buffers KiB Swap: 3993596 total, 0 used, 3993596 free, 881828 cached – user2674154 Jan 28 '14 at 8:16

1 Answer 1

Your system has only 1 GB of RAM, which is fully used. In addition, you have 3 GB of swap, which will be userd by your system once it needs to free RAM for something.

Your system probably is slow because it has to swap files from the (fast) RAM to the (slow) hard disk where your swap resides.

share|improve this answer
No my system has 4gb ram, – user2674154 Jan 28 '14 at 7:49
I am sorry I have 2gb of ram in my system, when I tried this command 'grep MemTotal /proc/meminfo' This is the output: MemTotal: 1923456 kB – user2674154 Jan 28 '14 at 7:54
Then please update your post (using the edit function) to include the output of free -h, which provides more details. The rest of the comment remains valid. – drc Jan 28 '14 at 8:24

Your Answer


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.