Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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:
Embargoed:
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 ***