<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
Jeremy Mendes
Level 1
Level 1
Posts: 13
Joined: Fri Nov 03, 2017 11:10 am

<SOLVED> "Decrease Swap Use"

Postby 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?
Attachments
Screenshot from 2017-11-13 00-12-20.png
Last edited by Jeremy Mendes on Wed Nov 15, 2017 6:48 pm, edited 1 time in total.

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

Re: "Decrease swap Use"

Postby 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.

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

Re: "Decrease swap Use"

Postby 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
If your problem is fixed, please mark your thread as [SOLVED] by editing the title of the first message in the thread.

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

Re: "Decrease swap Use"

Postby 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.
Attachments
Screenshot from 2017-11-13 01-13-48.png

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

Re: "Decrease swap Use"

Postby 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!.

User avatar
minitux
Level 5
Level 5
Posts: 581
Joined: Tue Sep 12, 2017 10:05 am

Re: "Decrease swap Use"

Postby 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.
Sorry for my English, is not my language

When you ask for support, put the output of inxi -Fxz

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

Re: "Decrease swap Use"

Postby 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 18.2 Sonya
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 9
Level 9
Posts: 2825
Joined: Sat Dec 15, 2012 8:57 am

Re: "Decrease swap Use"

Postby 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.

User avatar
minitux
Level 5
Level 5
Posts: 581
Joined: Tue Sep 12, 2017 10:05 am

Re: "Decrease swap Use"

Postby 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.
Sorry for my English, is not my language

When you ask for support, put the output of inxi -Fxz

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

Re: "Decrease swap Use"

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

This is what I get.now. with "gksudo xed/etc/sysctl.conf".
Attachments
Screenshot from 2017-11-13 12-22-06.png

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

Re: "Decrease swap Use"

Postby JerryF » Mon Nov 13, 2017 1:52 pm

You should now be able to edit and save the file. You have Elevated Privileges.
Don't forget to edit your original post and add [SOLVED] to the beginning of the Subject line if your problem has been fixed.
My main language is English. I speak very little Portuguese, and a whole lot of gibberish.

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

Re: "Decrease swap Use"

Postby 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 Mint 18.2 Mate 64 bit

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

Re: "Decrease swap Use"

Postby 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

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

Re: <SOLVED> "Decrease Swap Use"

Postby 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.


Return to “Newbie Questions”

Who is online

Users browsing this forum: Bing [Bot] and 32 guests