SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#26 2013-04-04 01:50:40

kevin_scribner
#! CrunchBanger
From: Boston, Ma USA
Registered: 2013-02-26
Posts: 103

Re: [SOLVED] some questions about "swap" and "swappiness..."

hey --

here's what free -h yields up after a while at swappiness set to 15:

anonymous@anonymous:~$ free -h
             total       used       free     shared    buffers     cached
Mem:          1.0G       929M        71M         0B        10M       547M
-/+ buffers/cache:       371M       629M
Swap:         2.0G       101M       1.9G
anonymous@anonymous:~$ 

peace --

-- khs


> while :
> do if windows sucks then mv windows /dev/null;
> apt-get install crunchbang; fi;
> done

Offline

Be excellent to each other!

#27 2013-04-04 01:54:45

kevin_scribner
#! CrunchBanger
From: Boston, Ma USA
Registered: 2013-02-26
Posts: 103

Re: [SOLVED] some questions about "swap" and "swappiness..."

hi, dura --

fear, my friend, is a terrible thing, especially when it stands to bar the way to learning new things...  so i grew a pair and:

anonymous@anonymous:~$ sudo swapoff -a
anonymous@anonymous:~$ free -h
             total       used       free     shared    buffers     cached
Mem:          1.0G       921M        79M         0B        10M       466M
-/+ buffers/cache:       444M       556M
Swap:           0B         0B         0B
anonymous@anonymous:~$ 

the sky did not fall in...  my system did not crash...

smile

peace --

-- khs

Last edited by kevin_scribner (2013-04-04 01:55:40)


> while :
> do if windows sucks then mv windows /dev/null;
> apt-get install crunchbang; fi;
> done

Offline

#28 2013-04-04 03:31:47

kiiroitori
#! CrunchBanger
From: Tokyo, Japan
Registered: 2010-12-07
Posts: 229

Re: [SOLVED] some questions about "swap" and "swappiness..."

I don't know how much costs RAM where you guys live but when I assembled my machine I bought 16GB as it was much less than the average restaurant I went just after my purchase. So swappiness=0 for me!
As for increasing swappiness to free RAM for something "useful": Preventing slow disks reads and writes is something useful.


I love #! more than my own kids. I told them and they sympathized.

Offline

#29 2013-04-04 13:03:08

CBizgreat!
#! Die Hard
Registered: 2011-07-27
Posts: 1,865

Re: [SOLVED] some questions about "swap" and "swappiness..."

Last edited by CBizgreat! (2013-06-21 16:24:26)

Offline

#30 2013-04-04 13:58:47

kevin_scribner
#! CrunchBanger
From: Boston, Ma USA
Registered: 2013-02-26
Posts: 103

Re: [SOLVED] some questions about "swap" and "swappiness..."

hey --

sadly, for me, right now, disposable income is something i can only dream about at night...  and, to make matters even worse, i'm told that this netbook, which is currently my only machine, as the Dell i initially began learning #! on got stolen just the other day, which came with 1 GB of RAM is only expandable to 2 GB... 

so, the general impression i'm getting, both here and amongst the sources i'm finding on the Intarwebz, is that unless you're running a server or a truly ancient version of Linux, neither of which is the case, for me, the default setting of 60 for swapiness is well in excess of what one needs, and degrades system performance, potentially by an order of magnitude...

resultingly, i believe it's time to permanently set my swapiness to 15 and enjoy the benefits of my research and the assistance and insights all of you have so generously proferred...  many thanks, #! people...

smile

peace --

-- khs


> while :
> do if windows sucks then mv windows /dev/null;
> apt-get install crunchbang; fi;
> done

Offline

#31 2013-04-04 17:12:53

CBizgreat!
#! Die Hard
Registered: 2011-07-27
Posts: 1,865

Re: [SOLVED] some questions about "swap" and "swappiness..."

Didn't read most of the 1st forum pg of this topic. Unfortunately did read more than I'd've liked.. much want 2 babble on ... much am not going 2 anyway. Even the most extreme gnu/nix folks I've seen say set your swap partition size to x 2 RAM on the system. Imo ... that's ridiculous ... 1.5 x RAM is old ... 2 x RAM ... Errrrr ...

Not friggin going into that mess, but let's understand what friggin setting swappiness does for everyone. The higher your swappiness ... Generally the default is 60 ... the more propensity the kernel is going 2 have for swapping stuff out to disk ... EVEN if you have plenty of RAM available. IMO = BAD THING ... esp w swappiness 60 ... you can have plenty of RAM still free and the OS will start writing crap to hdd(disk) anyway. With the default it will start writing/swapping again even when someone haz hella free RAM. IMO DON'T FRIGGIN DO THAT ... It will o course slow down and crap up your OS's performance. THERE IS NO REASON TO SWAP when plenty of RAM is still available on your PC.

Gosh darn it long story short high or low ... reduce ya dam swappiness folks. Imo yes .. it's a decent performance tweak for everybody ... if your pc's specs are so low that it needs vm.swappiness=60 ... Jebuz ... I feel sorry for that person, on my crusty 512mb ddr2 deskop still set swappiness to 10 and it made a serious/positive difference on that pc. Almost never saw the swap partition used, after adjusting swappiness. Swap partiton size on it is ... all of 650mb ... Following the 1.5 x RAm recommendation thingy. Slightly less than the 1.5 x RAM deal ...

End of this chit ... Just my 2 cents on swappiness. Blahblahblah ...

Vll!

Last edited by CBizgreat! (2013-04-04 17:35:38)

Offline

#32 2013-04-04 22:41:19

ew
#! Die Hard
Registered: 2012-09-27
Posts: 1,975

Re: [SOLVED] some questions about "swap" and "swappiness..."


- apt-mark hold account

Offline

#33 2013-04-05 12:22:41

fiernaq
Member
Registered: 2012-04-03
Posts: 18

Re: [SOLVED] some questions about "swap" and "swappiness..."

Offline

#34 2013-04-05 13:00:47

CBizgreat!
#! Die Hard
Registered: 2011-07-27
Posts: 1,865

Re: [SOLVED] some questions about "swap" and "swappiness..."

Last edited by CBizgreat! (2013-04-05 14:43:48)

Offline

#35 2013-04-05 16:36:44

kevin_scribner
#! CrunchBanger
From: Boston, Ma USA
Registered: 2013-02-26
Posts: 103

Re: [SOLVED] some questions about "swap" and "swappiness..."

hey there --

ew:  i did not construct that scenario to fit the discussion at hand...  that was me in the course of normal computing...  i was downloading a bunch of torrents, and i had the tabs in chrome open as i was researching the whole swap / swapiness thing...

your reply seemed a bit brusque, if you don't mind my saying so - my apologies if i've gotten on your nerves with the whole thing:  unintended...

peace --

-- khs


> while :
> do if windows sucks then mv windows /dev/null;
> apt-get install crunchbang; fi;
> done

Offline

#36 2013-04-05 17:30:38

kevin_scribner
#! CrunchBanger
From: Boston, Ma USA
Registered: 2013-02-26
Posts: 103

Re: [SOLVED] some questions about "swap" and "swappiness..."


> while :
> do if windows sucks then mv windows /dev/null;
> apt-get install crunchbang; fi;
> done

Offline

#37 2013-04-05 17:36:03

kevin_scribner
#! CrunchBanger
From: Boston, Ma USA
Registered: 2013-02-26
Posts: 103

Re: [SOLVED] some questions about "swap" and "swappiness..."

hello --

thanks, fiernaq, for the clearly and concisely stated explanations...  very helpful, and very much appreciated...

peace --

-- khs


> while :
> do if windows sucks then mv windows /dev/null;
> apt-get install crunchbang; fi;
> done

Offline

#38 2013-04-05 19:13:02

ew
#! Die Hard
Registered: 2012-09-27
Posts: 1,975

Re: [SOLVED] some questions about "swap" and "swappiness..."


- apt-mark hold account

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: bleh

Debian Logo