LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy
User Name
Password
Puppy This forum is for the discussion of Puppy Linux.

Notices

Reply
 
Search this Thread
Old 10-11-2011, 01:11 AM   #1
starkadder
Member
 
Registered: Jun 2007
Posts: 75

Rep: Reputation: 15
Reducing swappiness value 5.2.8


Hello,
Here's another question (perhaps I should post in the newbies section).
I find that 4G of ram makes the default swappiness value of 60 too high and I usually reduce it to 10.
In other distros I add a line "vm.swappiness=10" in /etc/sysctl.conf but Puppy does not seem to have this directory.
I can find sysfs.conf, can I use this?
All advice gratefully received.
 
Old 11-22-2011, 12:33 PM   #2
jonyo
Member
 
Registered: Jun 2011
Distribution: looking at VectorLinux 6.0 Light, PCLinuxOS phoenix
Posts: 195

Rep: Reputation: Disabled
Quote:
Originally Posted by starkadder View Post
Hello,
Here's another question (perhaps I should post in the newbies section).
I find that 4G of ram makes the default swappiness value of 60 too high and I usually reduce it to 10.
i assume you're talking a 60mb swap file?

best to use a swap partition and fiddle with size depending what your setup is,

standard used to be up to a max of 2x available ram, which is pretty much irrelevant when you have 4 gigs
 
Old 11-22-2011, 02:57 PM   #3
Karl Godt
Member
 
Registered: Mar 2010
Location: Kiel , Germany
Distribution: once:SuSE6.2,Debian3.1, aurox9.2+3,Mandrake?,DSL? then:W7st,WVHB, #!8.10.02,PUPPY4.3.1 now:Macpup
Posts: 308

Rep: Reputation: 45
I have not used the sysctl command at all , and it may be not included in some Puppies .

"sysctl -a | sort d " gives over 500 lines for kernel parameter settings .

It seems that it should be possible to add something like
" root=/dev/sda1 vm.swappiness=10 " in the grub menu.lst
OR
" sysctl vm.swappiness=10 " OR " sysctl -p "
into /etc/rc.d/rc.local OR into a script in /root/Startup
with a own created /etc/sysctl.conf file as i read the manpage right .
 
Old 11-24-2011, 01:37 AM   #4
jpeters
Member
 
Registered: Mar 2009
Posts: 30

Rep: Reputation: 16
Quote:
Originally Posted by Karl Godt View Post
I have not used the sysctl command at all , and it may be not included in some Puppies .

"sysctl -a | sort d " gives over 500 lines for kernel parameter settings .

It seems that it should be possible to add something like
" root=/dev/sda1 vm.swappiness=10 " in the grub menu.lst
OR
" sysctl vm.swappiness=10 " OR " sysctl -p "
into /etc/rc.d/rc.local OR into a script in /root/Startup
with a own created /etc/sysctl.conf file as i read the manpage right .
Yeah..I use sysctl -w vm.swappiness=xx, and put it in /etc/profile.local with Swapfile Manager.

jpeps
 
Old 11-24-2011, 03:10 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,111

Rep: Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985
With 4 Gig;
- why use puppy ?
- and why would you care about the swappiness value ?.
 
Old 11-24-2011, 11:57 AM   #6
jpeters
Member
 
Registered: Mar 2009
Posts: 30

Rep: Reputation: 16
Quote:
Originally Posted by syg00 View Post
With 4 Gig;
- why use puppy ?
- and why would you care about the swappiness value ?.
1. I would use puppy on any machine, and follow it's development closely.
2. Decreasing the swappiness number inhibits usage, thus speeding up operations if you have sufficient ram. You can test it out by running multiple processes, such as videos, open office, firefox, etc.
 
Old 11-24-2011, 04:56 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,111

Rep: Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985
I know what swappiness is for - the OP stated 4 Gig RAM. With that I'd expect no swapping - especially on puppy. Hence fiddling with swappiness is pointless.
 
Old 11-25-2011, 11:45 AM   #8
jpeters
Member
 
Registered: Mar 2009
Posts: 30

Rep: Reputation: 16
Quote:
Originally Posted by syg00 View Post
I know what swappiness is for - the OP stated 4 Gig RAM. With that I'd expect no swapping - especially on puppy. Hence fiddling with swappiness is pointless.
Pointless for you. Some people are running Puppy as a recording studio, doing video editing, etc.
 
Old 11-26-2011, 01:22 AM   #9
starkadder
Member
 
Registered: Jun 2007
Posts: 75

Original Poster
Rep: Reputation: 15
I thought that this topic had quietly gone away. When I made the original post I was experimenting with using Puppy as a main distro and as a result of input from this forum I forgot about fiddling with the swappiness (There was some info on studying the way Puppy works but it seems to have been deleted).
I've now got Slacko, Pupcrypt and Legacy dotted about the place.
In reply to the post by syg00 asking why I use Puppy, it's because I like Puppy and if you think about it, a distro designed to be fast on single core PCs with low RAM will fly on a higher spec machine.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Swappiness parameter Mr. Alex Linux - Newbie 1 01-12-2011 09:32 AM
swappiness deactivated? norbert74 Linux - Kernel 7 11-23-2007 11:31 AM
Swappiness Jake_B Red Hat 1 10-21-2005 02:59 PM
Changing swappiness on SUSE-9.3 srivastava Linux - Software 2 06-05-2005 12:41 PM
Swappiness of kernel debian_dummy Debian 10 06-10-2004 03:46 PM


All times are GMT -5. The time now is 01:46 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration