Tookmund / Swapspace

A fork of Jeroen T. Vermeulen's excellent dynamic swap space manager
GNU General Public License v2.0
128 stars 12 forks source link

Improve Eviction Policy #1

Open Tookmund opened 9 years ago

Tookmund commented 9 years ago

(Copied from http://pqxx.org/development/swapspace/ticket/11)

Work on the algorithm that chooses which swapfile to deallocate first. Current algorithm picks largest active swapfile that doesn't bring it below the target state.

Other options might be:

wmertens commented 4 years ago

I think minimal swapback makes most sense, especially if you always allocate in e.g. 500MB chunks.

I actually don't understand why the swapfiles are dynamically sized, is there a benefit to that?

Tookmund commented 4 years ago

Quoting from docs/comparison:

There's one twist to other swap managers: swapspace adapts the sizes of the swap files it creates. The Linux kernel may limit the total number of swap files, but as you need more, the daemon will create larger and larger ones. That way, creating your first swap file only takes a few seconds and won't slow down your system much. As you need more virtual memory, it will start to take longer but also give you more space--so it happens less often.

rubo77 commented 4 years ago

The tickets are in the archive: https://web.archive.org/web/20160915022004/http://pqxx.org/development/swapspace/report/3