Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1695973
| From | Rik van Riel <riel@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH -mm -v3 02/12] mm, THP, swap: Support to reclaim swap space for THP swapped out |
| Date | 2017-07-25 19:50 +0200 |
| Message-ID | <u7c83-5Ol-23@gated-at.bofh.it> (permalink) |
| References | <u6DWF-v6-5@gated-at.bofh.it> <u6DWG-v6-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On Mon, 2017-07-24 at 13:18 +0800, Huang, Ying wrote: > From: Huang Ying <ying.huang@intel.com> > > The normal swap slot reclaiming can be done when the swap count > reaches SWAP_HAS_CACHE. But for the swap slot which is backing a > THP, > all swap slots backing one THP must be reclaimed together, because > the > swap slot may be used again when the THP is swapped out again later. > So the swap slots backing one THP can be reclaimed together when the > swap count for all swap slots for the THP reached SWAP_HAS_CACHE. In > the patch, the functions to check whether the swap count for all swap > slots backing one THP reached SWAP_HAS_CACHE are implemented and used > when checking whether a swap slot can be reclaimed. > > To make it easier to determine whether a swap slot is backing a THP, > a > new swap cluster flag named CLUSTER_FLAG_HUGE is added to mark a swap > cluster which is backing a THP (Transparent Huge Page). Because THP > swap in as a whole isn't supported now. After deleting the THP from > the swap cache (for example, swapping out finished), the > CLUSTER_FLAG_HUGE flag will be cleared. So that, the normal pages > inside THP can be swapped in individually. > > Signed-off-by: "Huang, Ying" <ying.huang@intel.com> > Cc: Johannes Weiner <hannes@cmpxchg.org> > Cc: Minchan Kim <minchan@kernel.org> > Cc: Hugh Dickins <hughd@google.com> > Cc: Shaohua Li <shli@kernel.org> > Cc: Rik van Riel <riel@redhat.com> > Acked-by: Rik van Riel <riel@redhat.com> -- All rights reversed
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH -mm -v3 00/12] mm, THP, swap: Delay splitting THP after swapped out "Huang, Ying" <ying.huang@intel.com> - 2017-07-24 07:20 +0200
[PATCH -mm -v3 02/12] mm, THP, swap: Support to reclaim swap space for THP swapped out "Huang, Ying" <ying.huang@intel.com> - 2017-07-24 07:20 +0200
Re: [PATCH -mm -v3 02/12] mm, THP, swap: Support to reclaim swap space for THP swapped out Rik van Riel <riel@redhat.com> - 2017-07-25 19:50 +0200
[PATCH -mm -v3 06/12] Test code to write THP to swap device as a whole "Huang, Ying" <ying.huang@intel.com> - 2017-07-24 07:20 +0200
[PATCH -mm -v3 08/12] memcg, THP, swap: Support move mem cgroup charge for THP swapped out "Huang, Ying" <ying.huang@intel.com> - 2017-07-24 07:30 +0200
[PATCH -mm -v3 07/12] mm, THP, swap: Support to split THP for THP swapped out "Huang, Ying" <ying.huang@intel.com> - 2017-07-24 07:30 +0200
[PATCH -mm -v3 09/12] memcg, THP, swap: Avoid to duplicated charge THP in swap cache "Huang, Ying" <ying.huang@intel.com> - 2017-07-24 07:30 +0200
[PATCH -mm -v3 12/12] mm, THP, swap: Add THP swapping out fallback counting "Huang, Ying" <ying.huang@intel.com> - 2017-07-24 07:30 +0200
[PATCH -mm -v3 04/12] mm, THP, swap: Don't allocate huge cluster for file backed swap device "Huang, Ying" <ying.huang@intel.com> - 2017-07-24 07:30 +0200
[PATCH -mm -v3 11/12] mm, THP, swap: Delay splitting THP after swapped out "Huang, Ying" <ying.huang@intel.com> - 2017-07-24 07:30 +0200
[PATCH -mm -v3 10/12] memcg, THP, swap: Make mem_cgroup_swapout() support THP "Huang, Ying" <ying.huang@intel.com> - 2017-07-24 07:30 +0200
csiph-web