forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'akpm' (Andrew's patch-bomb)
Merge Andrew's second set of patches: - MM - a few random fixes - a couple of RTC leftovers * emailed patches from Andrew Morton <[email protected]>: (120 commits) rtc/rtc-88pm80x: remove unneed devm_kfree rtc/rtc-88pm80x: assign ret only when rtc_register_driver fails mm: hugetlbfs: close race during teardown of hugetlbfs shared page tables tmpfs: distribute interleave better across nodes mm: remove redundant initialization mm: warn if pg_data_t isn't initialized with zero mips: zero out pg_data_t when it's allocated memcg: gix memory accounting scalability in shrink_page_list mm/sparse: remove index_init_lock mm/sparse: more checks on mem_section number mm/sparse: optimize sparse_index_alloc memcg: add mem_cgroup_from_css() helper memcg: further prevent OOM with too many dirty pages memcg: prevent OOM with too many dirty pages mm: mmu_notifier: fix freed page still mapped in secondary MMU mm: memcg: only check anon swapin page charges for swap cache mm: memcg: only check swap cache pages for repeated charging mm: memcg: split swapin charge function into private and public part mm: memcg: remove needless !mm fixup to init_mm when charging mm: memcg: remove unneeded shmem charge type ...
- Loading branch information
Showing
131 changed files
with
3,174 additions
and
1,060 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
What: /proc/sys/vm/nr_pdflush_threads | ||
Date: June 2012 | ||
Contact: Wanpeng Li <[email protected]> | ||
Description: Since pdflush is replaced by per-BDI flusher, the interface of old pdflush | ||
exported in /proc/sys/vm/ should be removed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
HugeTLB Controller | ||
------------------- | ||
|
||
The HugeTLB controller allows to limit the HugeTLB usage per control group and | ||
enforces the controller limit during page fault. Since HugeTLB doesn't | ||
support page reclaim, enforcing the limit at page fault time implies that, | ||
the application will get SIGBUS signal if it tries to access HugeTLB pages | ||
beyond its limit. This requires the application to know beforehand how much | ||
HugeTLB pages it would require for its use. | ||
|
||
HugeTLB controller can be created by first mounting the cgroup filesystem. | ||
|
||
# mount -t cgroup -o hugetlb none /sys/fs/cgroup | ||
|
||
With the above step, the initial or the parent HugeTLB group becomes | ||
visible at /sys/fs/cgroup. At bootup, this group includes all the tasks in | ||
the system. /sys/fs/cgroup/tasks lists the tasks in this cgroup. | ||
|
||
New groups can be created under the parent group /sys/fs/cgroup. | ||
|
||
# cd /sys/fs/cgroup | ||
# mkdir g1 | ||
# echo $$ > g1/tasks | ||
|
||
The above steps create a new group g1 and move the current shell | ||
process (bash) into it. | ||
|
||
Brief summary of control files | ||
|
||
hugetlb.<hugepagesize>.limit_in_bytes # set/show limit of "hugepagesize" hugetlb usage | ||
hugetlb.<hugepagesize>.max_usage_in_bytes # show max "hugepagesize" hugetlb usage recorded | ||
hugetlb.<hugepagesize>.usage_in_bytes # show current res_counter usage for "hugepagesize" hugetlb | ||
hugetlb.<hugepagesize>.failcnt # show the number of allocation failure due to HugeTLB limit | ||
|
||
For a system supporting two hugepage size (16M and 16G) the control | ||
files include: | ||
|
||
hugetlb.16GB.limit_in_bytes | ||
hugetlb.16GB.max_usage_in_bytes | ||
hugetlb.16GB.usage_in_bytes | ||
hugetlb.16GB.failcnt | ||
hugetlb.16MB.limit_in_bytes | ||
hugetlb.16MB.max_usage_in_bytes | ||
hugetlb.16MB.usage_in_bytes | ||
hugetlb.16MB.failcnt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,14 @@ Who: Jim Cromie <[email protected]>, Jason Baron <[email protected]> | |
|
||
--------------------------- | ||
|
||
What: /proc/sys/vm/nr_pdflush_threads | ||
When: 2012 | ||
Why: Since pdflush is deprecated, the interface exported in /proc/sys/vm/ | ||
should be removed. | ||
Who: Wanpeng Li <[email protected]> | ||
|
||
--------------------------- | ||
|
||
What: CONFIG_APM_CPU_IDLE, and its ability to call APM BIOS in idle | ||
When: 2012 | ||
Why: This optional sub-feature of APM is of dubious reliability, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.