lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 11 Nov 2013 14:12:12 -0500
From:	Dan Streetman <ddstreet@...e.org>
To:	sjennings@...iantweb.net
Cc:	linux-mm@...ck.org, linux-kernel <linux-kernel@...r.kernel.org>,
	minchan@...nel.org, bob.liu@...cle.com, weijie.yang@...sung.com,
	k.kozlowski@...sung.com
Subject: mm/zswap: change to writethrough

Seth, have you (or anyone else) considered making zswap a writethrough
cache instead of writeback?  I think that it would significantly help
the case where zswap fills up and starts writing back its oldest pages
to disc - all the decompression work would be avoided since zswap
could just evict old pages and forget about them, and it seems likely
that when zswap is full that's probably the worst time to add extra
work/delay, while adding extra disc IO (presumably using dma) before
zswap is full doesn't seem to me like it would have much impact,
except in the case where zswap isn't full but there is so little free
memory that new allocs are waiting on swap-out.

Besides the additional disc IO that obviously comes with making zswap
writethrough (additional only before zswap fills up), are there any
other disadvantages?  Is it a common situation for there to be no
memory left and get_free_page actively waiting on swap-out, but before
zswap fills up?

Making it writethrough also could open up other possible improvements,
like making the compression and storage of new swap-out pages async,
so the compression doesn't delay the write out to disc.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ