Bug 679997 - fix up /proc/$pid/smaps to not split huge pages
Summary: fix up /proc/$pid/smaps to not split huge pages
Keywords:
Status: CLOSED DUPLICATE of bug 706385
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: kernel
Version: 6.1
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Andrea Arcangeli
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-24 03:24 UTC by Qian Cai
Modified: 2013-01-09 23:35 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-24 03:33:42 UTC
Target Upstream Version:


Attachments (Terms of Use)
0001-proc-pid-smaps-export-amount-of-anonymous-memory-in-.patch (1.99 KB, patch)
2011-04-26 04:32 UTC, Qian Cai
no flags Details | Diff
0002-PATCH-1-5-pagewalk-only-split-huge-pages-when-necess.patch (4.00 KB, patch)
2011-04-26 04:32 UTC, Qian Cai
no flags Details | Diff
0003-PATCH-2-5-break-out-smaps_pte_entry-from-smaps_pte_r.patch (3.16 KB, patch)
2011-04-26 04:33 UTC, Qian Cai
no flags Details | Diff
0004-PATCH-3-5-pass-pte-size-argument-in-to-smaps_pte_ent.patch (2.34 KB, patch)
2011-04-26 04:33 UTC, Qian Cai
no flags Details | Diff
0005-PATCH-4-5-teach-smaps_pte_range-about-THP-pmds.patch (2.34 KB, patch)
2011-04-26 04:34 UTC, Qian Cai
no flags Details | Diff
0006-PATCH-5-5-have-smaps-show-transparent-huge-pages.patch (1.40 KB, patch)
2011-04-26 04:34 UTC, Qian Cai
no flags Details | Diff

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


Note You need to log in before you can comment on or make changes to this bug.