Why swap is touched when zswap is enabled and zswap pool is not full?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
3
down vote

favorite
2












current configurations is
swappiness = 40;
zswap cache = 40



free -m command says



 total used free shared buff/cache available
Mem: 3615 1353 1232 191 1029 1806
Swap: 4095 4 4091


zswap debug info by command sudo grep -r . /sys/kernel/debug/zswap



/sys/kernel/debug/zswap/stored_pages:892
/sys/kernel/debug/zswap/pool_total_size:1220608
/sys/kernel/debug/zswap/duplicate_entry:0
/sys/kernel/debug/zswap/written_back_pages:0
/sys/kernel/debug/zswap/reject_compress_poor:0
/sys/kernel/debug/zswap/reject_kmemcache_fail:0
/sys/kernel/debug/zswap/reject_alloc_fail:0
/sys/kernel/debug/zswap/reject_reclaim_fail:0
/sys/kernel/debug/zswap/pool_limit_hit:0









share|improve this question





















  • I've just been testing and have seen the system go massively into swap without hitting the pool limit. Very odd. I've spent an hour reading the source and still can't see how this could happen...
    – Steve Dee
    Jun 17 at 22:57














up vote
3
down vote

favorite
2












current configurations is
swappiness = 40;
zswap cache = 40



free -m command says



 total used free shared buff/cache available
Mem: 3615 1353 1232 191 1029 1806
Swap: 4095 4 4091


zswap debug info by command sudo grep -r . /sys/kernel/debug/zswap



/sys/kernel/debug/zswap/stored_pages:892
/sys/kernel/debug/zswap/pool_total_size:1220608
/sys/kernel/debug/zswap/duplicate_entry:0
/sys/kernel/debug/zswap/written_back_pages:0
/sys/kernel/debug/zswap/reject_compress_poor:0
/sys/kernel/debug/zswap/reject_kmemcache_fail:0
/sys/kernel/debug/zswap/reject_alloc_fail:0
/sys/kernel/debug/zswap/reject_reclaim_fail:0
/sys/kernel/debug/zswap/pool_limit_hit:0









share|improve this question





















  • I've just been testing and have seen the system go massively into swap without hitting the pool limit. Very odd. I've spent an hour reading the source and still can't see how this could happen...
    – Steve Dee
    Jun 17 at 22:57












up vote
3
down vote

favorite
2









up vote
3
down vote

favorite
2






2





current configurations is
swappiness = 40;
zswap cache = 40



free -m command says



 total used free shared buff/cache available
Mem: 3615 1353 1232 191 1029 1806
Swap: 4095 4 4091


zswap debug info by command sudo grep -r . /sys/kernel/debug/zswap



/sys/kernel/debug/zswap/stored_pages:892
/sys/kernel/debug/zswap/pool_total_size:1220608
/sys/kernel/debug/zswap/duplicate_entry:0
/sys/kernel/debug/zswap/written_back_pages:0
/sys/kernel/debug/zswap/reject_compress_poor:0
/sys/kernel/debug/zswap/reject_kmemcache_fail:0
/sys/kernel/debug/zswap/reject_alloc_fail:0
/sys/kernel/debug/zswap/reject_reclaim_fail:0
/sys/kernel/debug/zswap/pool_limit_hit:0









share|improve this question













current configurations is
swappiness = 40;
zswap cache = 40



free -m command says



 total used free shared buff/cache available
Mem: 3615 1353 1232 191 1029 1806
Swap: 4095 4 4091


zswap debug info by command sudo grep -r . /sys/kernel/debug/zswap



/sys/kernel/debug/zswap/stored_pages:892
/sys/kernel/debug/zswap/pool_total_size:1220608
/sys/kernel/debug/zswap/duplicate_entry:0
/sys/kernel/debug/zswap/written_back_pages:0
/sys/kernel/debug/zswap/reject_compress_poor:0
/sys/kernel/debug/zswap/reject_kmemcache_fail:0
/sys/kernel/debug/zswap/reject_alloc_fail:0
/sys/kernel/debug/zswap/reject_reclaim_fail:0
/sys/kernel/debug/zswap/pool_limit_hit:0






swap






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 1 at 13:30









fxrbfg

1162




1162











  • I've just been testing and have seen the system go massively into swap without hitting the pool limit. Very odd. I've spent an hour reading the source and still can't see how this could happen...
    – Steve Dee
    Jun 17 at 22:57
















  • I've just been testing and have seen the system go massively into swap without hitting the pool limit. Very odd. I've spent an hour reading the source and still can't see how this could happen...
    – Steve Dee
    Jun 17 at 22:57















I've just been testing and have seen the system go massively into swap without hitting the pool limit. Very odd. I've spent an hour reading the source and still can't see how this could happen...
– Steve Dee
Jun 17 at 22:57




I've just been testing and have seen the system go massively into swap without hitting the pool limit. Very odd. I've spent an hour reading the source and still can't see how this could happen...
– Steve Dee
Jun 17 at 22:57















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
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',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1021058%2fwhy-swap-is-touched-when-zswap-is-enabled-and-zswap-pool-is-not-full%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1021058%2fwhy-swap-is-touched-when-zswap-is-enabled-and-zswap-pool-is-not-full%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491