Commit 3d375d7
mm: update callers to use HASH_ZERO flag
Update dcache, inode, pid, mountpoint, and mount hash tables to use
HASH_ZERO, and remove initialization after allocations. In case of
places where HASH_EARLY was used such as in __pv_init_lock_hash the
zeroed hash table was already assumed, because memblock zeroes the
memory.
CPU: SPARC M6, Memory: 7T
Before fix:
Dentry cache hash table entries: 1073741824
Inode-cache hash table entries: 536870912
Mount-cache hash table entries: 16777216
Mountpoint-cache hash table entries: 16777216
ftrace: allocating 20414 entries in 40 pages
Total time: 11.798s
After fix:
Dentry cache hash table entries: 1073741824
Inode-cache hash table entries: 536870912
Mount-cache hash table entries: 16777216
Mountpoint-cache hash table entries: 16777216
ftrace: allocating 20414 entries in 40 pages
Total time: 3.198s
CPU: Intel Xeon E5-2630, Memory: 2.2T:
Before fix:
Dentry cache hash table entries: 536870912
Inode-cache hash table entries: 268435456
Mount-cache hash table entries: 8388608
Mountpoint-cache hash table entries: 8388608
CPU: Physical Processor ID: 0
Total time: 3.245s
After fix:
Dentry cache hash table entries: 536870912
Inode-cache hash table entries: 268435456
Mount-cache hash table entries: 8388608
Mountpoint-cache hash table entries: 8388608
CPU: Physical Processor ID: 0
Total time: 3.244s
Link: http://lkml.kernel.org/r/1488432825-92126-4-git-send-email-pasha.tatashin@oracle.com
Signed-off-by: Pavel Tatashin <pasha.tatashin@oracle.com>
Reviewed-by: Babu Moger <babu.moger@oracle.com>
Cc: David Miller <davem@davemloft.net>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent 3749a8f commit 3d375d7
File tree
5 files changed
+12
-40
lines changed- fs
- kernel
- locking
5 files changed
+12
-40
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3546 | 3546 | | |
3547 | 3547 | | |
3548 | 3548 | | |
3549 | | - | |
3550 | | - | |
3551 | 3549 | | |
3552 | 3550 | | |
3553 | 3551 | | |
| |||
3559 | 3557 | | |
3560 | 3558 | | |
3561 | 3559 | | |
3562 | | - | |
| 3560 | + | |
3563 | 3561 | | |
3564 | 3562 | | |
3565 | 3563 | | |
3566 | 3564 | | |
3567 | | - | |
3568 | | - | |
3569 | | - | |
3570 | 3565 | | |
3571 | 3566 | | |
3572 | 3567 | | |
3573 | 3568 | | |
3574 | | - | |
3575 | | - | |
3576 | | - | |
| 3569 | + | |
3577 | 3570 | | |
3578 | 3571 | | |
3579 | | - | |
| 3572 | + | |
3580 | 3573 | | |
3581 | 3574 | | |
3582 | 3575 | | |
| |||
3590 | 3583 | | |
3591 | 3584 | | |
3592 | 3585 | | |
3593 | | - | |
| 3586 | + | |
3594 | 3587 | | |
3595 | 3588 | | |
3596 | 3589 | | |
3597 | 3590 | | |
3598 | | - | |
3599 | | - | |
3600 | | - | |
3601 | 3591 | | |
3602 | 3592 | | |
3603 | 3593 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1915 | 1915 | | |
1916 | 1916 | | |
1917 | 1917 | | |
1918 | | - | |
1919 | | - | |
1920 | 1918 | | |
1921 | 1919 | | |
1922 | 1920 | | |
| |||
1928 | 1926 | | |
1929 | 1927 | | |
1930 | 1928 | | |
1931 | | - | |
| 1929 | + | |
1932 | 1930 | | |
1933 | 1931 | | |
1934 | 1932 | | |
1935 | 1933 | | |
1936 | | - | |
1937 | | - | |
1938 | | - | |
1939 | 1934 | | |
1940 | 1935 | | |
1941 | 1936 | | |
1942 | 1937 | | |
1943 | | - | |
1944 | | - | |
1945 | 1938 | | |
1946 | 1939 | | |
1947 | 1940 | | |
| |||
1959 | 1952 | | |
1960 | 1953 | | |
1961 | 1954 | | |
1962 | | - | |
| 1955 | + | |
1963 | 1956 | | |
1964 | 1957 | | |
1965 | 1958 | | |
1966 | 1959 | | |
1967 | | - | |
1968 | | - | |
1969 | | - | |
1970 | 1960 | | |
1971 | 1961 | | |
1972 | 1962 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3239 | 3239 | | |
3240 | 3240 | | |
3241 | 3241 | | |
3242 | | - | |
3243 | 3242 | | |
3244 | 3243 | | |
3245 | 3244 | | |
| |||
3248 | 3247 | | |
3249 | 3248 | | |
3250 | 3249 | | |
3251 | | - | |
| 3250 | + | |
3252 | 3251 | | |
3253 | 3252 | | |
3254 | 3253 | | |
3255 | 3254 | | |
3256 | | - | |
| 3255 | + | |
3257 | 3256 | | |
3258 | 3257 | | |
3259 | 3258 | | |
3260 | 3259 | | |
3261 | 3260 | | |
3262 | | - | |
3263 | | - | |
3264 | | - | |
3265 | | - | |
3266 | | - | |
3267 | 3261 | | |
3268 | 3262 | | |
3269 | 3263 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
| 197 | + | |
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
578 | | - | |
| 578 | + | |
579 | 579 | | |
580 | 580 | | |
581 | | - | |
| 581 | + | |
582 | 582 | | |
583 | 583 | | |
584 | 584 | | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | 585 | | |
589 | 586 | | |
590 | 587 | | |
| |||
0 commit comments