Skip to content
Commit 55c4478a authored by Xiaoyi Chen's avatar Xiaoyi Chen Committed by Rafael J. Wysocki
Browse files

PM: hibernate: Batch hibernate and resume IO requests



Hibernate and resume process submits individual IO requests for each page
of the data, so use blk_plug to improve the batching of these requests.

Testing this change with hibernate and resumes consistently shows merging
of the IO requests and more than an order of magnitude improvement in
hibernate and resume speed is observed.

One hibernate and resume cycle for 16GB RAM out of 32GB in use takes
around 21 minutes before the change, and 1 minutes after the change on
a system with limited storage IOPS.

Signed-off-by: default avatarXiaoyi Chen <cxiaoyi@amazon.com>
Co-Developed-by: default avatarAnchal Agarwal <anchalag@amazon.com>
Signed-off-by: default avatarAnchal Agarwal <anchalag@amazon.com>
[ rjw: Subject and changelog edits, white space damage fixes ]
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent ba4f184e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment