]> git.videolan.org Git - x264.git/commit
Transparent hugepage support
authorHenrik Gramner <henrik@gramner.com>
Mon, 8 Jul 2013 19:06:42 +0000 (12:06 -0700)
committerJason Garrett-Glaser <jason@x264.com>
Fri, 23 Aug 2013 21:04:12 +0000 (14:04 -0700)
commitb690d473359b4ac7f8e72244af67014cc41b7953
treef30e725a0cf6e3eb35ce637b7c7be0f144e6a8d4
parent0a6825c6fe9ee5d2ded73e8c43be3e6dfd6a7658
Transparent hugepage support

Combine frame and mb data mallocs into a single large malloc.
Additionally, on Linux systems with hugepage support, ask for hugepages on
large mallocs.

This gives a small performance improvement (~0.2-0.9%) on systems without
hugepage support, as well as a small memory footprint reduction.

On recent Linux kernels with hugepage support enabled (set to madvise or
always), it improves performance up to 4% at the cost of about 7-12% more
memory usage on typical settings..

It may help even more on Haswell and other recent CPUs with improved 2MB page
support in hardware.
common/common.c
common/common.h
common/frame.c
common/frame.h
common/macroblock.c
configure
encoder/encoder.c