SliTaz SliTaz Forum

You are not logged in.

#1 2015-04-12 20:03:40

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

How to modify temporarily the swappiness parameter?

Hi,

I try to improved the performances of my Acer (256 MB). I read in the Ubuntu documentation (https://help.ubuntu.com/community/SwapFaq#What_is_swappiness_and_how_do_I_change_it.3F) I can change the swappiness.

In a first time I'd like to do a temporary change but[c] # sysctl vm.swappiness=50[/c] returns [c]sysctl: error: 'vm.swappiness=50' is an unknown key[/c]. And yet [c]cat /proc/sys/vm/swappiness[/c] answers [c]60[/c]

why I cannot change the value temporarily?

Offline

#2 2015-04-12 21:07:35

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: How to modify temporarily the swappiness parameter?

[c]# systemctl -w vm.swappiness=50[/c]

[c]sysctl -help[/c]

Offline

#3 2015-04-12 21:09:00

az_ua
Moderator
Registered: 2014-05-02
Posts: 284

Re: How to modify temporarily the swappiness parameter?

[c]# cat /proc/sys/vm/swappiness
60
#  echo 50 > /proc/sys/vm/swappiness
# cat /proc/sys/vm/swappiness
50[/c]
> try to improved the performances

[c]tazpkg -gi linux-zram[/c]  fastest compared with any hdd swap

set size

http://tazpanel:82/index.cgi?file=/etc/compcache.conf&action=edit

# startd compcache

Offline

#4 2015-04-18 19:14:18

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: How to modify temporarily the swappiness parameter?

@mojo,

I was persuaded I have try it too but certainly not (or I made a typo?) because it works now.

@az_ua

I didn't believe I can use zram with only 256 MB RAM. I was wrong!

Without changing the default size (126 MB), that's really better.

Thank you to both of you.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.016 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]