Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1459022
| From | "Huang\, Ying" <ying.huang@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC 00/11] THP swap: Delay splitting THP during swapping out |
| Date | 2016-08-09 19:30 +0200 |
| Message-ID | <s4j0K-2ah-33@gated-at.bofh.it> (permalink) |
| References | <s4iel-1Aq-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi, All, "Huang, Ying" <ying.huang@intel.com> writes: > From: Huang Ying <ying.huang@intel.com> > > This patchset is based on 8/4 head of mmotm/master. > > This is the first step for Transparent Huge Page (THP) swap support. > The plan is to delaying splitting THP step by step and avoid splitting > THP finally during THP swapping out and swapping in. > > The advantages of THP swap support are: > > - Batch swap operations for THP to reduce lock acquiring/releasing, > including allocating/freeing swap space, adding/deleting to/from swap > cache, and writing/reading swap space, etc. > > - THP swap space read/write will be 2M sequence IO. It is particularly > helpful for swap read, which usually are 4k random IO. > > - It will help memory fragmentation, especially when THP is heavily used > by the applications. 2M continuous pages will be free up after THP > swapping out. > > As the first step, in this patchset, the splitting huge page is > delayed from almost the first step of swapping out to after allocating > the swap space for THP and adding the THP into swap cache. This will > reduce lock acquiring/releasing for locks used for swap space and swap > cache management. For this patchset posting, In general, I want to check the basic design with memory management subsystem maintainers and developers. For [RFC 01/11] swap: Add swap_cluster_list, it is a cleanup patch. And I think it should be useful independently. I am not very confident about the memcg part, that is [RFC 03/11] mm, memcg: Add swap_cgroup_iter iterator [RFC 04/11] mm, memcg: Support to charge/uncharge multiple swap entries Please help me to check it. Best Regards, Huang, Ying
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[RFC 00/11] THP swap: Delay splitting THP during swapping out "Huang, Ying" <ying.huang@intel.com> - 2016-08-09 18:40 +0200 [RFC 09/11] mm, THP: Add can_split_huge_page() "Huang, Ying" <ying.huang@intel.com> - 2016-08-09 18:40 +0200 [RFC 08/11] mm, THP, swap: Support to add/delete THP to/from swap cache "Huang, Ying" <ying.huang@intel.com> - 2016-08-09 18:40 +0200 [RFC 11/11] mm, THP, swap: Delay splitting THP during swap out "Huang, Ying" <ying.huang@intel.com> - 2016-08-09 18:40 +0200 [RFC 04/11] mm, memcg: Support to charge/uncharge multiple swap entries "Huang, Ying" <ying.huang@intel.com> - 2016-08-09 18:50 +0200 [RFC 02/11] swap: Change SWAPFILE_CLUSTER to 512 "Huang, Ying" <ying.huang@intel.com> - 2016-08-09 18:50 +0200 [RFC 03/11] mm, memcg: Add swap_cgroup_iter iterator "Huang, Ying" <ying.huang@intel.com> - 2016-08-09 18:50 +0200 [RFC 01/11] swap: Add swap_cluster_list "Huang, Ying" <ying.huang@intel.com> - 2016-08-09 18:50 +0200 [RFC 06/11] mm, THP, swap: Add get_huge_swap_page() "Huang, Ying" <ying.huang@intel.com> - 2016-08-09 18:50 +0200 [RFC 05/11] mm, THP, swap: Add swap cluster allocate/free functions "Huang, Ying" <ying.huang@intel.com> - 2016-08-09 18:50 +0200 Re: [RFC 00/11] THP swap: Delay splitting THP during swapping out "Huang\, Ying" <ying.huang@intel.com> - 2016-08-09 19:30 +0200
csiph-web