Repository navigation
ENH: mark that large allocations can use huge pages - #11957
Merged
Merged
Conversation
juliantaylor
force-pushed
the
hugepages
branch
2 times, most recently
from
September 15, 2018 10:07
df91046 to
7c62a9c
Compare
Member
|
@juliantaylor Could you add an entry to the release notes under |
replace path seperators with underscore
juliantaylor
force-pushed
the
hugepages
branch
from
September 20, 2018 16:19
7c62a9c to
016bfd5
Compare
Contributor
Author
|
done |
juliantaylor
force-pushed
the
hugepages
branch
from
September 20, 2018 16:42
016bfd5 to
7bef51a
Compare
On distributions with /sys/kernel/mm/transparent_hugepage/enabled set to
madvise we do not automatically get our memory backed by huge pages.
Explicitly madvise these regions so they can use larger pages.
This improves performance of the common large array allocation/free
cycle in numpy as page fault overhead is reduced.
asv continuous -E virtualenv:3.6 --bench bench_io.Copy HEAD^ HEAD
2.64±0.3ms 1.99±0.06ms 0.75 bench_io.Copy.time_memcpy_large_out_of_place('float32')
5.51±0.2ms 3.74±0.3ms 0.68 bench_io.Copy.time_memcpy_large_out_of_place('float64')
4.76±0.02μs 3.02±0.04μs 0.63 bench_io.Copy.time_cont_assign('float32')
5.55±0.1ms 3.31±0.1ms 0.60 bench_io.Copy.time_memcpy_large_out_of_place('complex64')
11.3±0.2ms 6.26±0.2ms 0.56 bench_io.Copy.time_memcpy_large_out_of_place('complex128')
Closes numpygh-11919
juliantaylor
force-pushed
the
hugepages
branch
from
September 20, 2018 16:42
7bef51a to
7180479
Compare
Member
|
Thanks Julian. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On distributions with
/sys/kernel/mm/transparent_hugepage/enabledset tomadvise we do not automatically get our memory backed by huge pages.
Explicitly madvise these regions so they can use larger pages.
This improves performance of the common large array allocation/free
cycle in numpy as page fault overhead is reduced.
Closes gh-11919