You are not logged in.

#1 2018-02-09 14:05:20

sakishrist
Member
Registered: 2012-03-04
Posts: 42

Preemptive swapping

Hi *,

Is there a way to make the swappiness trigger without being low on memory?

I want to swap out parts of the memory that have not been used in a while before I reach the situation where I'm out of memory.

Even better, it would be great if the kernel could just copy those parts to the swap, and keep them in memory, as the ram is not depleted yet, but when it comes the time where no memory is available, it just removes pages from the RAM, and they are already in the swap. So not a huge slow down would be observed like when normal swapping occurs.

Thanks for the wisdom!

Cheers!

----------------------

EDIT: A quick search for "preemptive pagefile" reveals that the M$ OS appears to have such a feature.

Last edited by sakishrist (2018-02-09 14:10:14)

Offline

#2 2018-02-09 14:12:18

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,534
Website

Re: Preemptive swapping


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2018-02-09 14:23:19

sakishrist
Member
Registered: 2012-03-04
Posts: 42

Re: Preemptive swapping

I do not understand which part of that wiki page relates to "preemptive".

I currently have swappiness to 100 and the swap is completely empty.

$ free -m
              total        used        free      shared  buff/cache   available
Mem:           7874        5345         332         269        2196        1854
Swap:          8287           0        8287

VFS cache pressure and Zswap seem to be completely unrelated to what I'm asking.

Offline

#4 2018-02-09 15:07:38

seth
Member
Registered: 2012-09-03
Posts: 51,317

Re: Preemptive swapping

https://bbs.archlinux.org/viewtopic.php?id=231265

I suggest you describe your actual problem because, no offense, but your initial posting is complete nonsense.

Offline

Board footer

Powered by FluxBB