How to check the size of my swap files and add more if neccesary ?

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
thevenerable

How to check the size of my swap files and add more if neccesary ?

Post by thevenerable »

Hi
I installed linux dual booting with windows 10.
I did not manually allocate swap files but just pressed the easy install option
I don't know if I am using any swap files, and I don't know how to add swap files if I need to.
Please advice how to check what swap space i am currently using, and how to add more if need be.
Thanks
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: How to check the size of my swap files and add more if neccesary ?

Post by Cosmo. »

Your version of Mint and the desktop environment?

The system monitor as provided e. g with Cinnamon gives you the answer on the second tab.
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: How to check the size of my swap files and add more if neccesary ?

Post by Flemur »

thevenerable wrote:I did not manually allocate swap files but just pressed the easy install option
I don't know if I am using any swap files, and I don't know how to add swap files if I need to.
Please advice how to check what swap space i am currently using, and how to add more if need be.
Thanks
I'm pretty sure you'll have a swap partition, not a file.

Type this in a terminal:

Code: Select all

free -m
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
thevenerable

Re: How to check the size of my swap files and add more if neccesary ?

Post by thevenerable »

I'm on mint 18.2
I can't find system monitor.
But I pasted that code in to the terminal:
total used free shared buff/cache available
Mem: 7681 1972 455 162 5253 5204
Swap: 7886 0 7886

So it seems I do have swap?
Must have done it automatically

I also don;t understand why only 1972mb is used, but I only have 455mb free !?
Thanks
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: How to check the size of my swap files and add more if neccesary ?

Post by Flemur »

thevenerable wrote:I'm on mint 18.2

Code: Select all

                total        used        free      shared  buff/cache   available
Mem:           7681        1972         455         162        5253        5204
Swap:          7886           0        7886
So it seems I do have swap?
8G worth swap, same as your memory.
I also don;t understand why only 1972mb is used, but I only have 455mb free !?
Thanks
That "buff/cache" is mostly free memory - so you have about 5.2G free out of 8G. ("Available").

Memory has funny units and measurements - also check out your task-manager/monitor an compare memory there, various values, with the above, and the terminal command "top".
Last edited by Flemur on Thu Nov 23, 2017 4:42 pm, edited 2 times in total.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
User avatar
Spearmint2
Level 16
Level 16
Posts: 6900
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: How to check the size of my swap files and add more if neccesary ?

Post by Spearmint2 »

Code: Select all

swapon -s
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....
thevenerable

Re: How to check the size of my swap files and add more if neccesary ?

Post by thevenerable »

Danken

Very useful
Seems I am lucky and it installed 8gb swap for me
Locked

Return to “Beginner Questions”