Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

What is frontswap?

+3
−0

I noticed that according to htop part of my swapped out memory is categorized as frontswap. What's that about?

History

0 comment threads

1 answer

+1
−0

Frontswap is a tmem interface in the kernel. The idea is to have a little faster RAM-like alternative to traditional(ly dreaded) swap. When memory pressure starts to mount, the kernel will ask frontswap before swapping a page.

Frontswap is just an interface, so it could have different backends actually storing the memory pages. A typical case would be zswap, which tries to compress the memory page (instead of letting swap write it to disk).

A little dated source: https://lwn.net/Articles/454795/

History

0 comment threads

Sign up to answer this question »