Skip to content

Switch to zram swap #245

@MilesBHuff

Description

@MilesBHuff

The system is under serious memory pressure even after fixing an overallocation in #244, as evidenced by the near-lack of page cache. The only way to really improve this situation is to increase swappiness, and that can only really happen if swap is in-memory: zram swap. (This issue supercedes #237 and #238.)

I will use the same settings I'm already successfully using elsewhere:

  • zswap: 17%, lz4, zsmalloc (a hot cache, lightly compressed)
  • zram swap: 33%, zstd-1 (a colder cache, moderately compressed)
  • swappiness: 134 (swap is now faster than storage; page cache is now valuable)
  • page-cluster: 0 (readahead on compressed RAM actually harms performance)

Metadata

Metadata

Assignees

Labels

administrationThis ticket addresses server maintenance and changes.performanceThis ticket addresses server performance.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions