lkml.org 
[lkml]   [2016]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
SubjectHow you tested this patch(8c7f010)
From
hi, Karam:
I back ported "zram: implement rw_page operation of zram"(8c7f010)
to linux3.10 on Spreadtrum tshark board.
I test this patch with following code:
mm/page_io.c | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/mm/page_io.c b/mm/page_io.c
index 4e1c1c8..1556fc4 100644
--- a/mm/page_io.c
+++ b/mm/page_io.c
@@ -232,6 +232,7 @@ bad_bmap:
int swap_writepage(struct page *page, struct writeback_control *wbc)
{
int ret = 0;
+ ktime_t stime, etime;

if (try_to_free_swap(page)) {
unlock_page(page);
@@ -243,7 +244,12 @@ int swap_writepage(struct page *page, struct
writeback_control *wbc)
end_page_writeback(page);
goto out;
}
+ stime = ktime_get();
ret = __swap_writepage(page, wbc, end_swap_bio_write);
+ etime = ktime_get();
+
+ pr_err("zhizhou.tian: execute swap time with page_io : %lld nsec.\n",
+ etime.tv64 - stime.tv64);
out:
return ret;
}
But I am not sure the result means something.
Can you share your method?
thanks;)

\
 
 \ /
  Last update: 2016-01-27 09:21    [W:0.062 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site