Bug 679997

Summary: fix up /proc/$pid/smaps to not split huge pages
Product: Red Hat Enterprise Linux 6 Reporter: Qian Cai <qcai>
Component: kernelAssignee: Andrea Arcangeli <aarcange>
Status: CLOSED DUPLICATE QA Contact: Red Hat Kernel QE team <kernel-qe>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: bcao, tburke, ypu
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-24 03:33:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
0001-proc-pid-smaps-export-amount-of-anonymous-memory-in-.patch
none
0002-PATCH-1-5-pagewalk-only-split-huge-pages-when-necess.patch
none
0003-PATCH-2-5-break-out-smaps_pte_entry-from-smaps_pte_r.patch
none
0004-PATCH-3-5-pass-pte-size-argument-in-to-smaps_pte_ent.patch
none
0005-PATCH-4-5-teach-smaps_pte_range-about-THP-pmds.patch
none
0006-PATCH-5-5-have-smaps-show-transparent-huge-pages.patch none

Description Qian Cai 2011-02-24 03:24:38 UTC
Description of problem:
https://lkml.org/lkml/2011/2/9/250

Per developer:

Yes, it's good idea to include. But first I need to fix bug 674147

Comment 1 Joy Pu 2011-03-09 08:32:56 UTC
As in RHEL 6 KSM can not be shown in top SHR, KSM may also need some interface in proc fs such like this.

Comment 2 Qian Cai 2011-04-26 04:31:08 UTC
Backport the following mainline commits fixed the problem for me.
b40d4f84becd69275451baee7f0801c85eb58437
033193275b3ffcfe7f3fde7b569f3d207f6cd6a0
ae11c4d9f646064cf086e2f8cd4b3c475df7739c
3c9acc7849b1eab7ffc75e933404c5f32865d9a2
22e057c5923e60debad318cbeaee33033b110bc8
4031a219d8913da40ade5a6e5b538cc61e975cc8

Comment 3 Qian Cai 2011-04-26 04:32:16 UTC
Created attachment 494799 [details]
0001-proc-pid-smaps-export-amount-of-anonymous-memory-in-.patch

Comment 4 Qian Cai 2011-04-26 04:32:56 UTC
Created attachment 494800 [details]
0002-PATCH-1-5-pagewalk-only-split-huge-pages-when-necess.patch

Comment 5 Qian Cai 2011-04-26 04:33:16 UTC
Created attachment 494801 [details]
0003-PATCH-2-5-break-out-smaps_pte_entry-from-smaps_pte_r.patch

Comment 6 Qian Cai 2011-04-26 04:33:47 UTC
Created attachment 494802 [details]
0004-PATCH-3-5-pass-pte-size-argument-in-to-smaps_pte_ent.patch

Comment 7 Qian Cai 2011-04-26 04:34:05 UTC
Created attachment 494803 [details]
0005-PATCH-4-5-teach-smaps_pte_range-about-THP-pmds.patch

Comment 8 Qian Cai 2011-04-26 04:34:21 UTC
Created attachment 494804 [details]
0006-PATCH-5-5-have-smaps-show-transparent-huge-pages.patch

Comment 11 Qian Cai 2011-05-24 03:33:42 UTC

*** This bug has been marked as a duplicate of bug 706385 ***