Swappiness

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
Bogomips
Full of knowledge
Full of knowledge
Posts: 2563
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: Swappiness

Post#1 by Bogomips » 16 May 2017, 12:09

Welcome to Porteus.
One way is with Boot Parameter (cheatcode) cliexec=echo~0>/proc/sys/vm/swappiness :unknown:

Afterthought. If there is neither swap partition, nor swap file nor zram available, then swapping is not possible anyway. :twisted:
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

burdi01
Black ninja
Black ninja
Posts: 68
Joined: 18 Aug 2013, 12:09
Distribution: Slackware, Xubuntu
Location: The Netherlands

Re: Swappiness

Post#2 by burdi01 » 17 May 2017, 09:35

if it would be possible to crack open the relevant core file using another distro and change the value using leafpad!
Yes you can even with this distro. You "only" have to know which file in which core file you have to change 1) as well as the CLI commands 2) to unpack the core file and to repack it afterwards.
So I would recommend using the cheatcode.

Or alternatively you could try to change the type of the swap partition. E.g. via GParted > select partition > Format to. If successful you could delete that partition afterwards -- if applicable that is.

1) Depending on the file in question leafpad may not be the tool to do so.
2) For as far as I am aware there is no GUI tool to do so.

Bogomips
Full of knowledge
Full of knowledge
Posts: 2563
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: Swappiness

Post#3 by Bogomips » 17 May 2017, 13:37

Small Swap Partition

Run as Superuser

Code: Select all

dd if=/dev/zero of=/dev/<destination swap partition>
;)
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

Post Reply