<SOLVED> "Decrease Swap Use"

All Gurus once were Newbies
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. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
Jeremy Mendes
Level 1
Level 1
Posts: 44
Joined: Fri Nov 03, 2017 11:10 am

<SOLVED> "Decrease Swap Use"

Post by Jeremy Mendes » Mon Nov 13, 2017 1:29 am

This is the screen i get after entering password. I opted out of "something else" and let install do partition automatically. I'm not able to complete the change "vm.swappiness =10." This screen just sits there like that and does nothing. Am I denied option of "decrease swap use" because of opting out of "something else' and not setting partitions myself?
Last edited by Jeremy Mendes on Wed Nov 15, 2017 6:48 pm, edited 1 time in total.
Thank You,
Jeremy

Jeremy Mendes
Level 1
Level 1
Posts: 44
Joined: Fri Nov 03, 2017 11:10 am

Re: "Decrease swap Use"

Post by Jeremy Mendes » Mon Nov 13, 2017 1:46 am

I'm running LM 18.2 Cinnamon on 10 year old HP Pavillion dv6700 notebook. It works well.
Thank You,
Jeremy

User avatar
catweazel
Level 17
Level 17
Posts: 7748
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: "Decrease swap Use"

Post by catweazel » Mon Nov 13, 2017 1:54 am

The problem is caused by an incorrect closedown of nano. You need to find the hidden lock file /path/to/.file.swp. For example, if you are getting the error on the file /var/log/syslog then you need to find and delete the hidden file /var/log/.syslog.swp. In this example, the command would be sudo rm /var/log/.syslog.swp
¡uʍop ǝpısdn sı buıɥʇʎɹǝʌǝ os ɐıןɐɹʇsnɐ ɯoɹɟ ɯ,ı

Jeremy Mendes
Level 1
Level 1
Posts: 44
Joined: Fri Nov 03, 2017 11:10 am

Re: "Decrease swap Use"

Post by Jeremy Mendes » Mon Nov 13, 2017 2:22 am

Is this procedure is incorrect in my case? This is how I'm ending up in the screen,previously posted,after I submit password. I'm thinking,maybe,I should leave well enough alone for now. :) :) I appreciate your reply.
Thank You,
Jeremy

User avatar
Pierre
Level 17
Level 17
Posts: 7564
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: "Decrease swap Use"

Post by Pierre » Mon Nov 13, 2017 2:32 am

that would be correct, in order to modify sysctl.conf

but catweazel was also referring to /var/log/syslog to be looked at.

do try shutting down, rebooting, and then modifying sysctl.conf in order to decrease the swappiness factor.
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.

minitux
Level 5
Level 5
Posts: 860
Joined: Tue Sep 12, 2017 10:05 am

Re: "Decrease swap Use"

Post by minitux » Mon Nov 13, 2017 3:29 am

the procedure is the right one.

is not it the first time you missed writing the file name?

because that file should not be empty, and it seems to have opened an empty file.

User avatar
Pjotr
Level 20
Level 20
Posts: 10962
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: "Decrease swap Use"

Post by Pjotr » Mon Nov 13, 2017 6:04 am

Why use nano, when you can use xed?

Code: Select all

gksudo xed /etc/sysctl.conf
Tip: 10 things to do after installing Linux Mint 19 Tara
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

Hoser Rob
Level 12
Level 12
Posts: 4325
Joined: Sat Dec 15, 2012 8:57 am

Re: "Decrease swap Use"

Post by Hoser Rob » Mon Nov 13, 2017 9:08 am

Pjotr wrote:Why use nano, when you can use xed?

Code: Select all

gksudo xed /etc/sysctl.conf
I thinbk the important thing there is the use of gksudo rather than sudo ,,, it doesn't matter what editor is used. I always use leafpad myself but any will do.

But you do want to use gksudo (or kdesudo in KDE) to start GUI apps with admin priviliges. sudo doesn't work properly with GUI programs.

minitux
Level 5
Level 5
Posts: 860
Joined: Tue Sep 12, 2017 10:05 am

Re: "Decrease swap Use"

Post by minitux » Mon Nov 13, 2017 9:20 am

Nano is a cli editor and work properly with sudo.

For me is an error in the file name.

Jeremy Mendes
Level 1
Level 1
Posts: 44
Joined: Fri Nov 03, 2017 11:10 am

Re: "Decrease swap Use"

Post by Jeremy Mendes » Mon Nov 13, 2017 1:25 pm

This is what I get.now. with "gksudo xed/etc/sysctl.conf".
Thank You,
Jeremy

User avatar
JerryF
Level 10
Level 10
Posts: 3135
Joined: Mon Jun 08, 2015 1:23 pm
Location: Rhode Island, USA

Re: "Decrease swap Use"

Post by JerryF » Mon Nov 13, 2017 1:52 pm

You should now be able to edit and save the file. You have Elevated Privileges.
IF your problem has been solved, please edit your original post and add [SOLVED] to the beginning of the Subject Line. It helps other members.

User avatar
pbear
Level 5
Level 5
Posts: 596
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: "Decrease swap Use"

Post by pbear » Tue Nov 14, 2017 12:49 pm

Per Pjotr's site:
Scroll to the bottom of the text file and add your swappiness parameter to override the default. Copy/paste the following two green lines:

# Decrease swap usage to a more reasonable level
vm.swappiness=10


c. Save and close the text file. Then reboot your computer.

d. After the reboot, check the new swappiness value:
Menu - Administration - Terminal

Type (use copy/paste):
cat /proc/sys/vm/swappiness

Press Enter.

Now it should be 10.
Should work. I've done it.
Time flies like an arrow. Fruit flies like a banana.
Running Mate 18.3 64 bit (by upgrade from 18.1-2)

Jeremy Mendes
Level 1
Level 1
Posts: 44
Joined: Fri Nov 03, 2017 11:10 am

Re: "Decrease swap Use"

Post by Jeremy Mendes » Wed Nov 15, 2017 6:42 pm

Success! Thank you all for your help/input here on Linux Forums.You're awesome! This machine is running great and has been from the minute I installed LM 18.2 Cinnamon and evicted the OS provided by those other guy's. I'm never going back! :lol: :D
Thank You,
Jeremy

Jeremy Mendes
Level 1
Level 1
Posts: 44
Joined: Fri Nov 03, 2017 11:10 am

Re: <SOLVED> "Decrease Swap Use"

Post by Jeremy Mendes » Thu Nov 16, 2017 3:10 pm

This is from tutorial vid "EzeeLinux BASH Scripts Tweeks and Tricks-Freedom Penguin"

I'm not sure how this command will appear when I hit "Submit" so this is how it should be entered into "terminal"
sudo bash -c "echo 'vm.swappiness=10' >> /etc/sysctl.conf

This is supposed to take a couple of steps out of the procedure.The procedure already outlined in this thread is fine.
Thank You,
Jeremy

Post Reply

Return to “Newbie Questions”