What is an alternative for zcache?
Clash Royale CLAN TAG#URR8PPP
I want to use a high-speed swap device or zram as "page cache", so that page data can be dropped automatically when the system is out of memory.
Apparently, zcache
has been discontinued. Is there an available alternative? If yes, which one?
bcache
doesn't seem to drop data when there's no memory available.
linux-kernel swap cache zram
add a comment |
I want to use a high-speed swap device or zram as "page cache", so that page data can be dropped automatically when the system is out of memory.
Apparently, zcache
has been discontinued. Is there an available alternative? If yes, which one?
bcache
doesn't seem to drop data when there's no memory available.
linux-kernel swap cache zram
How do you define "page cache"? Do you mean memory management scheme, a.k.a. swap? If so,bcache
has nothing to do with it.
– Adam Ryczkowski
Jun 27 '17 at 14:23
@AdamRyczkowski In computing, a page cache, sometimes also called disk cache
– illiterate
Jun 28 '17 at 7:47
You English is difficult to understand, and you seem to mix unrelated concepts, so the noise level in your question is rather high. That's why I asked for clarification.
– Adam Ryczkowski
Jun 30 '17 at 16:57
You ask about how to use swap device as "page cache". You control which swap devices the kernel should use (and their priorities) withswapon
andswapoff
commands. It doesn't matter what is the actual storage for the device, whether it is a zram, disk partition, or bcache.
– Adam Ryczkowski
Jun 30 '17 at 16:59
I'm sorry for my express way,in fact I trying find a alternative forzcache
@AdamRyczkowski thank you.
– illiterate
Jul 1 '17 at 4:49
add a comment |
I want to use a high-speed swap device or zram as "page cache", so that page data can be dropped automatically when the system is out of memory.
Apparently, zcache
has been discontinued. Is there an available alternative? If yes, which one?
bcache
doesn't seem to drop data when there's no memory available.
linux-kernel swap cache zram
I want to use a high-speed swap device or zram as "page cache", so that page data can be dropped automatically when the system is out of memory.
Apparently, zcache
has been discontinued. Is there an available alternative? If yes, which one?
bcache
doesn't seem to drop data when there's no memory available.
linux-kernel swap cache zram
linux-kernel swap cache zram
edited Jul 23 '17 at 13:19
illiterate
asked Jun 27 '17 at 8:34
illiterateilliterate
8211
8211
How do you define "page cache"? Do you mean memory management scheme, a.k.a. swap? If so,bcache
has nothing to do with it.
– Adam Ryczkowski
Jun 27 '17 at 14:23
@AdamRyczkowski In computing, a page cache, sometimes also called disk cache
– illiterate
Jun 28 '17 at 7:47
You English is difficult to understand, and you seem to mix unrelated concepts, so the noise level in your question is rather high. That's why I asked for clarification.
– Adam Ryczkowski
Jun 30 '17 at 16:57
You ask about how to use swap device as "page cache". You control which swap devices the kernel should use (and their priorities) withswapon
andswapoff
commands. It doesn't matter what is the actual storage for the device, whether it is a zram, disk partition, or bcache.
– Adam Ryczkowski
Jun 30 '17 at 16:59
I'm sorry for my express way,in fact I trying find a alternative forzcache
@AdamRyczkowski thank you.
– illiterate
Jul 1 '17 at 4:49
add a comment |
How do you define "page cache"? Do you mean memory management scheme, a.k.a. swap? If so,bcache
has nothing to do with it.
– Adam Ryczkowski
Jun 27 '17 at 14:23
@AdamRyczkowski In computing, a page cache, sometimes also called disk cache
– illiterate
Jun 28 '17 at 7:47
You English is difficult to understand, and you seem to mix unrelated concepts, so the noise level in your question is rather high. That's why I asked for clarification.
– Adam Ryczkowski
Jun 30 '17 at 16:57
You ask about how to use swap device as "page cache". You control which swap devices the kernel should use (and their priorities) withswapon
andswapoff
commands. It doesn't matter what is the actual storage for the device, whether it is a zram, disk partition, or bcache.
– Adam Ryczkowski
Jun 30 '17 at 16:59
I'm sorry for my express way,in fact I trying find a alternative forzcache
@AdamRyczkowski thank you.
– illiterate
Jul 1 '17 at 4:49
How do you define "page cache"? Do you mean memory management scheme, a.k.a. swap? If so,
bcache
has nothing to do with it.– Adam Ryczkowski
Jun 27 '17 at 14:23
How do you define "page cache"? Do you mean memory management scheme, a.k.a. swap? If so,
bcache
has nothing to do with it.– Adam Ryczkowski
Jun 27 '17 at 14:23
@AdamRyczkowski In computing, a page cache, sometimes also called disk cache
– illiterate
Jun 28 '17 at 7:47
@AdamRyczkowski In computing, a page cache, sometimes also called disk cache
– illiterate
Jun 28 '17 at 7:47
You English is difficult to understand, and you seem to mix unrelated concepts, so the noise level in your question is rather high. That's why I asked for clarification.
– Adam Ryczkowski
Jun 30 '17 at 16:57
You English is difficult to understand, and you seem to mix unrelated concepts, so the noise level in your question is rather high. That's why I asked for clarification.
– Adam Ryczkowski
Jun 30 '17 at 16:57
You ask about how to use swap device as "page cache". You control which swap devices the kernel should use (and their priorities) with
swapon
and swapoff
commands. It doesn't matter what is the actual storage for the device, whether it is a zram, disk partition, or bcache.– Adam Ryczkowski
Jun 30 '17 at 16:59
You ask about how to use swap device as "page cache". You control which swap devices the kernel should use (and their priorities) with
swapon
and swapoff
commands. It doesn't matter what is the actual storage for the device, whether it is a zram, disk partition, or bcache.– Adam Ryczkowski
Jun 30 '17 at 16:59
I'm sorry for my express way,in fact I trying find a alternative for
zcache
@AdamRyczkowski thank you.– illiterate
Jul 1 '17 at 4:49
I'm sorry for my express way,in fact I trying find a alternative for
zcache
@AdamRyczkowski thank you.– illiterate
Jul 1 '17 at 4:49
add a comment |
1 Answer
1
active
oldest
votes
Indeed zcache
appears to have been discontinued, as it was removed from kernel 3.11 for being effectively obsolete. The commit message of zcache removal reads
staging: zcache: delete it
zcache is obsolete and not used anymore, Bob Liu has rewritten it and
is submitting it for inclusion through the main -mm tree, as it should
have been done in the first place...
It appears that Bob Liu's submission never got into mainline.
Now, the way I understand it, the page cache is automatically "dropped" (cleared) in an out-of-memory scenario. zcache
actually implemented compression so it could maintain more filesystem pages (also known as "vfs cache" or "inode/dentry cache") before being dropped.
The Linux kernel has zswap today that implements compressed disk-based swapping, but doesn't compress filesystem pages.
I am not aware of a current day alternative for zcache.
Perhaps as a workaround, if you are concerned with performance degradation due to filesystem pages being freed, consider tuning vm.vfs_cache_pressure
as instructed here.
For normal workloads it's safe to just settle with zswap
.
Additional reading:
- zram vs zswap vs zcache Ultimate guide: when to use which one
- Zswap, Zram, Zcache desktop usage scenarios
- zswap (Arch Linux Wiki)
- Cleancache and Frontswap (LWN)
- The Case for Compressed Caching in Virtual Memory Systems
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f373631%2fwhat-is-an-alternative-for-zcache%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Indeed zcache
appears to have been discontinued, as it was removed from kernel 3.11 for being effectively obsolete. The commit message of zcache removal reads
staging: zcache: delete it
zcache is obsolete and not used anymore, Bob Liu has rewritten it and
is submitting it for inclusion through the main -mm tree, as it should
have been done in the first place...
It appears that Bob Liu's submission never got into mainline.
Now, the way I understand it, the page cache is automatically "dropped" (cleared) in an out-of-memory scenario. zcache
actually implemented compression so it could maintain more filesystem pages (also known as "vfs cache" or "inode/dentry cache") before being dropped.
The Linux kernel has zswap today that implements compressed disk-based swapping, but doesn't compress filesystem pages.
I am not aware of a current day alternative for zcache.
Perhaps as a workaround, if you are concerned with performance degradation due to filesystem pages being freed, consider tuning vm.vfs_cache_pressure
as instructed here.
For normal workloads it's safe to just settle with zswap
.
Additional reading:
- zram vs zswap vs zcache Ultimate guide: when to use which one
- Zswap, Zram, Zcache desktop usage scenarios
- zswap (Arch Linux Wiki)
- Cleancache and Frontswap (LWN)
- The Case for Compressed Caching in Virtual Memory Systems
add a comment |
Indeed zcache
appears to have been discontinued, as it was removed from kernel 3.11 for being effectively obsolete. The commit message of zcache removal reads
staging: zcache: delete it
zcache is obsolete and not used anymore, Bob Liu has rewritten it and
is submitting it for inclusion through the main -mm tree, as it should
have been done in the first place...
It appears that Bob Liu's submission never got into mainline.
Now, the way I understand it, the page cache is automatically "dropped" (cleared) in an out-of-memory scenario. zcache
actually implemented compression so it could maintain more filesystem pages (also known as "vfs cache" or "inode/dentry cache") before being dropped.
The Linux kernel has zswap today that implements compressed disk-based swapping, but doesn't compress filesystem pages.
I am not aware of a current day alternative for zcache.
Perhaps as a workaround, if you are concerned with performance degradation due to filesystem pages being freed, consider tuning vm.vfs_cache_pressure
as instructed here.
For normal workloads it's safe to just settle with zswap
.
Additional reading:
- zram vs zswap vs zcache Ultimate guide: when to use which one
- Zswap, Zram, Zcache desktop usage scenarios
- zswap (Arch Linux Wiki)
- Cleancache and Frontswap (LWN)
- The Case for Compressed Caching in Virtual Memory Systems
add a comment |
Indeed zcache
appears to have been discontinued, as it was removed from kernel 3.11 for being effectively obsolete. The commit message of zcache removal reads
staging: zcache: delete it
zcache is obsolete and not used anymore, Bob Liu has rewritten it and
is submitting it for inclusion through the main -mm tree, as it should
have been done in the first place...
It appears that Bob Liu's submission never got into mainline.
Now, the way I understand it, the page cache is automatically "dropped" (cleared) in an out-of-memory scenario. zcache
actually implemented compression so it could maintain more filesystem pages (also known as "vfs cache" or "inode/dentry cache") before being dropped.
The Linux kernel has zswap today that implements compressed disk-based swapping, but doesn't compress filesystem pages.
I am not aware of a current day alternative for zcache.
Perhaps as a workaround, if you are concerned with performance degradation due to filesystem pages being freed, consider tuning vm.vfs_cache_pressure
as instructed here.
For normal workloads it's safe to just settle with zswap
.
Additional reading:
- zram vs zswap vs zcache Ultimate guide: when to use which one
- Zswap, Zram, Zcache desktop usage scenarios
- zswap (Arch Linux Wiki)
- Cleancache and Frontswap (LWN)
- The Case for Compressed Caching in Virtual Memory Systems
Indeed zcache
appears to have been discontinued, as it was removed from kernel 3.11 for being effectively obsolete. The commit message of zcache removal reads
staging: zcache: delete it
zcache is obsolete and not used anymore, Bob Liu has rewritten it and
is submitting it for inclusion through the main -mm tree, as it should
have been done in the first place...
It appears that Bob Liu's submission never got into mainline.
Now, the way I understand it, the page cache is automatically "dropped" (cleared) in an out-of-memory scenario. zcache
actually implemented compression so it could maintain more filesystem pages (also known as "vfs cache" or "inode/dentry cache") before being dropped.
The Linux kernel has zswap today that implements compressed disk-based swapping, but doesn't compress filesystem pages.
I am not aware of a current day alternative for zcache.
Perhaps as a workaround, if you are concerned with performance degradation due to filesystem pages being freed, consider tuning vm.vfs_cache_pressure
as instructed here.
For normal workloads it's safe to just settle with zswap
.
Additional reading:
- zram vs zswap vs zcache Ultimate guide: when to use which one
- Zswap, Zram, Zcache desktop usage scenarios
- zswap (Arch Linux Wiki)
- Cleancache and Frontswap (LWN)
- The Case for Compressed Caching in Virtual Memory Systems
edited Jan 26 at 19:58
answered Jul 1 '17 at 5:58
Marc.2377Marc.2377
285224
285224
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f373631%2fwhat-is-an-alternative-for-zcache%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
How do you define "page cache"? Do you mean memory management scheme, a.k.a. swap? If so,
bcache
has nothing to do with it.– Adam Ryczkowski
Jun 27 '17 at 14:23
@AdamRyczkowski In computing, a page cache, sometimes also called disk cache
– illiterate
Jun 28 '17 at 7:47
You English is difficult to understand, and you seem to mix unrelated concepts, so the noise level in your question is rather high. That's why I asked for clarification.
– Adam Ryczkowski
Jun 30 '17 at 16:57
You ask about how to use swap device as "page cache". You control which swap devices the kernel should use (and their priorities) with
swapon
andswapoff
commands. It doesn't matter what is the actual storage for the device, whether it is a zram, disk partition, or bcache.– Adam Ryczkowski
Jun 30 '17 at 16:59
I'm sorry for my express way,in fact I trying find a alternative for
zcache
@AdamRyczkowski thank you.– illiterate
Jul 1 '17 at 4:49