Thread (26 messages) 26 messages, 5 authors, 2011-02-20

Re: [PATCH 5/5] have smaps show transparent huge pages

From: Dave Hansen <hidden>
Date: 2011-02-10 15:02:12
Also in: lkml

On Thu, 2011-02-10 at 11:20 +0000, Mel Gorman wrote:
quoted
@@ -394,6 +395,7 @@ static int smaps_pte_range(pmd_t *pmd, u
                      spin_lock(&walk->mm->page_table_lock);
              } else {
                      smaps_pte_entry(*(pte_t *)pmd, addr, HPAGE_SIZE, walk);
+                     mss->anonymous_thp += HPAGE_SIZE;
I should have thought of this for the previous patch but should this be
HPAGE_PMD_SIZE instead of HPAGE_SIZE? Right now, they are the same value
but they are not the same thing.
Probably.  There's also a nice BUG() in HPAGE_PMD_SIZE if the THP config
option is off, which is an added bonus.

-- Dave

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help