All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] remove rw_page() from brd, pmem and btt
@ 2017-07-28 16:56 ` Ross Zwisler
  0 siblings, 0 replies; 54+ messages in thread
From: Ross Zwisler @ 2017-07-28 16:56 UTC (permalink / raw)
  To: Andrew Morton, linux-kernel
  Cc: Jens Axboe, Jerome Marchand, linux-nvdimm, Dave Chinner,
	Matthew Wilcox, Christoph Hellwig, Minchan Kim, Jan Kara,
	karam . lee, seungho1.park, Nitin Gupta

Dan Williams and Christoph Hellwig have recently expressed doubt about
whether the rw_page() interface made sense for synchronous memory drivers
[1][2].  It's unclear whether this interface has any performance benefit
for these drivers, but as we continue to fix bugs it is clear that it does
have a maintenance burden.  This series removes the rw_page()
implementations in brd, pmem and btt to relieve this burden.

The last existing user of the rw_page interface is the zram driver, and
according to the changelog for the patch that added zram_rw_page() that
driver does see a clear performance gain:

  I implemented the feature in zram and tested it.  Test bed was the G2, LG
  electronic mobile device, whtich has msm8974 processor and 2GB memory.

  With a memory allocation test program consuming memory, the system
  generates swap.

  Operating time of swap_write_page() was measured.

  --------------------------------------------------
  |             |   operating time   | improvement |
  |             |  (20 runs average) |             |
  --------------------------------------------------
  |with patch   |    1061.15 us      |    +2.4%    |
  --------------------------------------------------
  |without patch|    1087.35 us      |             |
  --------------------------------------------------

  Each test(with paged_io,with BIO) result set shows normal distribution
  and has equal variance.  I mean the two values are valid result to
  compare.  I can say operation with paged I/O(without BIO) is faster 2.4%
  with confidence level 95%.

These patches have passed ext4 and XFS xfstest regression testing with
a memory mode pmem driver (without DAX), with pmem + btt and with brd.

These patches apply cleanly to the current v4.13-rc2 based linux/master.

[1] https://lists.01.org/pipermail/linux-nvdimm/2017-July/011389.html
[2] https://www.mail-archive.com/linux-block@vger.kernel.org/msg11170.html

Ross Zwisler (3):
  btt: remove btt_rw_page()
  pmem: remove pmem_rw_page()
  brd: remove brd_rw_page()

 drivers/block/brd.c   | 10 ----------
 drivers/nvdimm/btt.c  | 15 ---------------
 drivers/nvdimm/pmem.c | 21 ---------------------
 3 files changed, 46 deletions(-)

-- 
2.9.4

_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm

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

end of thread, other threads:[~2017-08-07  8:23 UTC | newest]

Thread overview: 54+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-28 16:56 [PATCH 0/3] remove rw_page() from brd, pmem and btt Ross Zwisler
2017-07-28 16:56 ` Ross Zwisler
2017-07-28 16:56 ` [PATCH 1/3] btt: remove btt_rw_page() Ross Zwisler
2017-07-28 16:56   ` Ross Zwisler
2017-08-03 16:15   ` kbuild test robot
2017-08-03 16:15     ` kbuild test robot
2017-07-28 16:56 ` [PATCH 2/3] pmem: remove pmem_rw_page() Ross Zwisler
2017-07-28 16:56   ` Ross Zwisler
2017-07-28 16:56 ` [PATCH 3/3] brd: remove brd_rw_page() Ross Zwisler
2017-07-28 16:56   ` Ross Zwisler
2017-07-28 17:31 ` [PATCH 0/3] remove rw_page() from brd, pmem and btt Matthew Wilcox
2017-07-28 17:31   ` Matthew Wilcox
2017-07-28 21:21   ` Andrew Morton
2017-07-28 21:21     ` Andrew Morton
2017-07-30 22:16     ` Minchan Kim
2017-07-30 22:16       ` Minchan Kim
2017-07-30 22:38       ` Minchan Kim
2017-07-30 22:38         ` Minchan Kim
2017-07-31  7:17       ` Christoph Hellwig
2017-07-31  7:17         ` Christoph Hellwig
2017-07-31  7:36         ` Minchan Kim
2017-07-31  7:36           ` Minchan Kim
2017-07-31  7:42           ` Christoph Hellwig
2017-07-31  7:42             ` Christoph Hellwig
2017-07-31  7:44             ` Christoph Hellwig
2017-07-31  7:44               ` Christoph Hellwig
2017-08-01  6:23               ` Minchan Kim
2017-08-01  6:23                 ` Minchan Kim
2017-08-02 22:13   ` Ross Zwisler
2017-08-02 22:13     ` Ross Zwisler
2017-08-03  0:13     ` Minchan Kim
2017-08-03  0:13       ` Minchan Kim
2017-08-03  0:34       ` Dan Williams
2017-08-03  0:34         ` Dan Williams
2017-08-03  8:05       ` Christoph Hellwig
2017-08-03  8:05         ` Christoph Hellwig
2017-08-04  0:57         ` Minchan Kim
2017-08-04  0:57           ` Minchan Kim
2017-08-03 21:13       ` Ross Zwisler
2017-08-03 21:13         ` Ross Zwisler
2017-08-03 21:17         ` Jens Axboe
2017-08-03 21:17           ` Jens Axboe
2017-08-04  3:54         ` Minchan Kim
2017-08-04  3:54           ` Minchan Kim
2017-08-04  8:17           ` Minchan Kim
2017-08-04  8:17             ` Minchan Kim
2017-08-04 18:01             ` Dan Williams
2017-08-04 18:01               ` Dan Williams
2017-08-04 18:21               ` Ross Zwisler
2017-08-04 18:21                 ` Ross Zwisler
2017-08-04 18:24                 ` Dan Williams
2017-08-04 18:24                   ` Dan Williams
2017-08-07  8:23                   ` Minchan Kim
2017-08-07  8:23                     ` Minchan Kim

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.