How to force the kernel to always maintain at least some page cache?
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
Is there any way to force the kernel to always maintain at least some page cache for writeback caching purposes, even when faced with memory pressure?
I have a rather special use case, where swapping to zswap is much more preferable than not having a large page cache. (I have set the relevant vm.dirty values to allow a lot of write caching)
So what I would like, is set a minimum page cache size (say 10-30% of total RAM), and if memory usage rises, instead of flushing dirty pages, the kernel should start swapping (I am using zswap, so that would just mean compressing pages, but still keeping most of them in RAM)
I have tried raising vm.swappiness to 100, and lowering vm.vfs_cache_pressure to 10, but this does not seem to have cut it.
memory swap cache virtual-memory memory-management
New contributor
add a comment |
up vote
1
down vote
favorite
Is there any way to force the kernel to always maintain at least some page cache for writeback caching purposes, even when faced with memory pressure?
I have a rather special use case, where swapping to zswap is much more preferable than not having a large page cache. (I have set the relevant vm.dirty values to allow a lot of write caching)
So what I would like, is set a minimum page cache size (say 10-30% of total RAM), and if memory usage rises, instead of flushing dirty pages, the kernel should start swapping (I am using zswap, so that would just mean compressing pages, but still keeping most of them in RAM)
I have tried raising vm.swappiness to 100, and lowering vm.vfs_cache_pressure to 10, but this does not seem to have cut it.
memory swap cache virtual-memory memory-management
New contributor
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Is there any way to force the kernel to always maintain at least some page cache for writeback caching purposes, even when faced with memory pressure?
I have a rather special use case, where swapping to zswap is much more preferable than not having a large page cache. (I have set the relevant vm.dirty values to allow a lot of write caching)
So what I would like, is set a minimum page cache size (say 10-30% of total RAM), and if memory usage rises, instead of flushing dirty pages, the kernel should start swapping (I am using zswap, so that would just mean compressing pages, but still keeping most of them in RAM)
I have tried raising vm.swappiness to 100, and lowering vm.vfs_cache_pressure to 10, but this does not seem to have cut it.
memory swap cache virtual-memory memory-management
New contributor
Is there any way to force the kernel to always maintain at least some page cache for writeback caching purposes, even when faced with memory pressure?
I have a rather special use case, where swapping to zswap is much more preferable than not having a large page cache. (I have set the relevant vm.dirty values to allow a lot of write caching)
So what I would like, is set a minimum page cache size (say 10-30% of total RAM), and if memory usage rises, instead of flushing dirty pages, the kernel should start swapping (I am using zswap, so that would just mean compressing pages, but still keeping most of them in RAM)
I have tried raising vm.swappiness to 100, and lowering vm.vfs_cache_pressure to 10, but this does not seem to have cut it.
memory swap cache virtual-memory memory-management
memory swap cache virtual-memory memory-management
New contributor
New contributor
New contributor
asked 2 days ago
uLoop
1062
1062
New contributor
New contributor
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
uLoop is a new contributor. Be nice, and check out our Code of Conduct.
uLoop is a new contributor. Be nice, and check out our Code of Conduct.
uLoop is a new contributor. Be nice, and check out our Code of Conduct.
uLoop is a new contributor. Be nice, and check out our Code of Conduct.
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%2f482003%2fhow-to-force-the-kernel-to-always-maintain-at-least-some-page-cache%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