Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230803
b: refs/heads/master
c: 97562cd
h: refs/heads/master
i:
  230801: b3b00d5
  230799: 566a5d3
v: v3
  • Loading branch information
Rik van Riel authored and Linus Torvalds committed Jan 14, 2011
1 parent b97f282 commit 4ee30f8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c5a73c3d55be1faadba35b41a862e036a3b12ddb
refs/heads/master: 97562cd243298acf573620c764a1037bd545c9bc
8 changes: 8 additions & 0 deletions trunk/mm/huge_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,14 @@ static int __init hugepage_init(void)
goto out;
}

/*
* By default disable transparent hugepages on smaller systems,
* where the extra memory used could hurt more than TLB overhead
* is likely to save. The admin can still enable it through /sys.
*/
if (totalram_pages < (512 << (20 - PAGE_SHIFT)))
transparent_hugepage_flags = 0;

start_khugepaged();

set_recommended_min_free_kbytes();
Expand Down

0 comments on commit 4ee30f8

Please sign in to comment.