Spread the word.

Share the link on social media.

Share
  • Facebook
Have an account? Sign In Now

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Captcha Click on image to update the captcha.

Have an account? Sign In Now

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

MinexTuts Community Forum

MinexTuts Community Forum Logo MinexTuts Community Forum Logo

MinexTuts Community Forum Navigation

  • Home
  • About Us
  • Blog
  • Tools & Offers
    • Smart MX Shortener
    • Offers & Deals
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
Home/ Questions/Q 4535
MinexTuts
  • 0
MinexTutsExplainer
Asked: May 1, 20222022-05-01T19:20:07+00:00 2022-05-01T19:20:07+00:00In: Linux

How to Remove/ Delete swap Virtual Memory in Linux?

  • 0
How to Remove/ Delete swap Virtual Memory in Linux?

Swap is a virtual memory that support to RAM (Random Access Memory). Swapping virtual memory is a technique used to improve the performance of a computer.

It allows the operating system to use one physical memory location for the storage of data that is currently being used by another process. This reduces the amount of time that the computer needs to access the physical memory to find the data that is needed.

If you don’t know how to add swap memory to your Linux machine. Check this article.

How to Create Swap File in Linux Virtual Machine for Add Memory / RAM Size of VPS (VIDEO)

If you don’t want added swap space anymore, you can simply remove the swap space and reallocate to the disk storage.

First check do you have swap space, using this command to visualize it. (Current swap settings)

free -m

View the Swap mount location using this command

cat /proc/swaps

Stop Swap the swap partition. Note the partition location at the above command after that replace it. The red colored one is the swap location, replace it according to your VPS. This location is the root directory.

swapoff /swapfile

Next delete Swap partition files, using this command.

rm /swapfile

After the delete of swap files, remove startup startup items. Use this command to open startup file and edit it.

vi /etc/fstab

Follow the below example.

[email protected] ~ # free -m             // View the current Swap settings (current system settings have 1162MB of virtual memory)
              total        used        free      shared  buff/cache   available
Mem:            981         270         240           6         470         564
Swap:          1162          29        1133

[email protected] ~ # cat /proc/swaps     // View the Swap mount location (the current system is set to /swapfile in the root directory)
Filename                                Type            Size    Used    Priority
/swapfile                               file            1190340 29952   -2

[email protected] ~ # swapoff /swapfile   // Stop Swap the swap partition (note the partition location)

[email protected] ~ # rm /swapfile        // Delete Swap partition files

[email protected] ~ # vi /etc/fstab       // Remove startup startup items

  • 0 0 Answers
  • 22 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report
Leave an answer

Leave an answer
Cancel reply

Browse
Browse

Choose from here the video type.

Put Video ID here: https://www.youtube.com/watch?v=sdUUx5FdySs Ex: "sdUUx5FdySs".

Captcha Click on image to update the captcha.

Sidebar

Ask A Question

Stats

  • Questions 114
  • Answers 191
  • Posts 58
  • Users 695

Social Statistics

  • 0 Followers
  • 4 Followers
  • 1 Follower
  • 5k Subscribers

Recent posts

  • MinexTuts

    The Top 5 Stable Ways to Make Money Online in ...

    • 0 Comments
  • MinexTuts

    Make Money with NFTs | Zero to Hero (Complete Tutorial)

    • 0 Comments
  • MinexTuts

    Easy Way to Bulk Upload NFT to OpenSea (Zero Gas ...

    • 0 Comments
  • MinexTuts

    Photoshop Transparent PNG Layers for NFT Collection

    • 0 Comments
  • MinexTuts

    What is an IP Address Explained

    • 0 Comments
  • Popular
  • Answers
  • wesleyhenriques

    How can I stream multiple audio files and a static ...

    • 12 Answers
  • michaelwang0428

    How do I use an image to do the VPS ...

    • 11 Answers
  • kogoro6996

    VPS GCP not working with SNI trick

    • 5 Answers
  • MinexTuts
    MinexTuts added an answer I think you are not using correct chrome driver version.… May 24, 2022 at 8:41 am
  • MinexTuts
    MinexTuts added an answer Check this for more instructions: https://www.minextuts.com/question/how-to-assign-a-public-ip-address-to-a-running-vm-instance-oracle-cloud/ April 17, 2022 at 5:59 pm
  • MinexTuts
    MinexTuts added an answer Oracle cloud customers experience a issue with IP address. I… April 14, 2022 at 7:22 pm

Top Members

MinexTuts

MinexTuts

  • 8 Questions
  • 439 Points
Explainer
anandhusajan

anandhusajan

  • 2 Questions
  • 41 Points
Begginer
Username

Username

  • 7 Questions
  • 33 Points
Begginer

Trending Tags

aapanel azuracast ffmpeg free vps server oracle question vm vps wordpress youtube

Footer

MinexTuts Community Forum

MineXTuts is a technological questions & Answers Engine which will help you establish a community and connect with other people.

About Us

  • Meet The Team
  • Blog
  • About Us
  • Smart MX Shortener

Legal Stuff

  • Terms of Use
  • Privacy Policy
  • Cookie Policy

Help

  • Knowledge Base
  • Support

Follow

© 2021 MinexTuts. All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.