linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/1] zram: Allow rw_page when page isn't written back.
@ 2022-08-08 16:50 Brian Geffon
  2022-08-08 16:50 ` [RFC PATCH 1/1] " Brian Geffon
  0 siblings, 1 reply; 4+ messages in thread
From: Brian Geffon @ 2022-08-08 16:50 UTC (permalink / raw)
  To: Andrew Morton, Minchan Kim
  Cc: Nitin Gupta, Sergey Senozhatsky, linux-kernel, Suleiman Souhlal,
	linux-mm, Brian Geffon

Today when a zram device has a backing device we change the ops to
a new set which does not expose a rw_page method. This prevents the
upper layers from trying to issue a synchronous rw. This has the
downside that we penalize every rw even when it could possibly
still be performed as a synchronous rw.

This is just a proposal and I wanted to get feedback if people
felt this was worthwhile.

The motivation comes from what Minchan noted in the original
change which introduced the synchronous behavior that it enhanches
swap-in performance by about 45% [1]. So it'd be great if we could
still get this benefit while using writeback.

1. https://lore.kernel.org/all/1505886205-9671-5-git-send-email-minchan@kernel.org/

Brian Geffon (1):
  zram: Allow rw_page when page isn't written back.

 drivers/block/zram/zram_drv.c | 65 +++++++++++++++++++++--------------
 drivers/block/zram/zram_drv.h |  1 +
 2 files changed, 41 insertions(+), 25 deletions(-)

-- 
2.37.1.559.g78731f0fdb-goog



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-08-10 19:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-08 16:50 [RFC PATCH 0/1] zram: Allow rw_page when page isn't written back Brian Geffon
2022-08-08 16:50 ` [RFC PATCH 1/1] " Brian Geffon
2022-08-09  1:38   ` Sergey Senozhatsky
2022-08-10 19:18     ` Brian Geffon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox