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

 Clash Royale CLAN TAG#URR8PPP
Clash 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
swap
add a comment |Â
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
swap
 
 
 
 
 
 
 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
 
 
 
add a comment |Â
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
swap
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
swap
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
 
 
 
add a comment |Â
 
 
 
 
 
 
 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
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
 
draft saved
draft discarded
 
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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
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