| From: Baolin Wang <baolin.wang@linux.alibaba.com> |
| Subject: mm-shmem-add-mthp-counters-for-anonymous-shmem-fix |
| Date: Thu, 13 Jun 2024 09:08:37 +0800 |
| |
| update Documentation/admin-guide/mm/transhuge.rst |
| |
| Link: https://lkml.kernel.org/r/d86e2e7f-4141-432b-b2ba-c6691f36ef0b@linux.alibaba.com |
| Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com> |
| Cc: Barry Song <v-songbaohua@oppo.com> |
| Cc: Daniel Gomez <da.gomez@samsung.com> |
| Cc: David Hildenbrand <david@redhat.com> |
| Cc: "Huang, Ying" <ying.huang@intel.com> |
| Cc: Hugh Dickins <hughd@google.com> |
| Cc: Kefeng Wang <wangkefeng.wang@huawei.com> |
| Cc: Lance Yang <ioworker0@gmail.com> |
| Cc: Pankaj Raghav <p.raghav@samsung.com> |
| Cc: Ryan Roberts <ryan.roberts@arm.com> |
| Cc: Yang Shi <shy828301@gmail.com> |
| Cc: Zi Yan <ziy@nvidia.com> |
| Signed-off-by: Andrew Morton <akpm@linux-foundation.org> |
| --- |
| |
| Documentation/admin-guide/mm/transhuge.rst | 13 +++++++++++++ |
| 1 file changed, 13 insertions(+) |
| |
| --- a/Documentation/admin-guide/mm/transhuge.rst~mm-shmem-add-mthp-counters-for-anonymous-shmem-fix |
| +++ a/Documentation/admin-guide/mm/transhuge.rst |
| @@ -501,6 +501,19 @@ swpout_fallback |
| Usually because failed to allocate some continuous swap space |
| for the huge page. |
| |
| +file_alloc |
| + is incremented every time a file huge page is successfully |
| + allocated. |
| + |
| +file_fallback |
| + is incremented if a file huge page is attempted to be allocated |
| + but fails and instead falls back to using small pages. |
| + |
| +file_fallback_charge |
| + is incremented if a file huge page cannot be charged and instead |
| + falls back to using small pages even though the allocation was |
| + successful. |
| + |
| As the system ages, allocating huge pages may be expensive as the |
| system uses memory compaction to copy data around memory to free a |
| huge page for use. There are some counters in ``/proc/vmstat`` to help |
| _ |