# git rev-parse -q --verify 4df910620bebb5cfe234af16ac8f6474b60215fd^{commit} 4df910620bebb5cfe234af16ac8f6474b60215fd already have revision, skipping fetch # git checkout -q -f -B kisskb 4df910620bebb5cfe234af16ac8f6474b60215fd # git clean -qxdf # < git log -1 # commit 4df910620bebb5cfe234af16ac8f6474b60215fd # Author: Feng Tang # Date: Wed Nov 25 13:22:21 2020 +0800 # # mm: memcg: relayout structure mem_cgroup to avoid cache interference # # 0day reported one -22.7% regression for will-it-scale page_fault2 # case [1] on a 4 sockets 144 CPU platform, and bisected to it to be # caused by Waiman's optimization (commit bd0b230fe1) of saving one # 'struct page_counter' space for 'struct mem_cgroup'. # # Initially we thought it was due to the cache alignment change introduced # by the patch, but further debug shows that it is due to some hot data # members ('vmstats_local', 'vmstats_percpu', 'vmstats') sit in 2 adjacent # cacheline (2N and 2N+1 cacheline), and when adjacent cache line prefetch # is enabled, it triggers an "extended level" of cache false sharing for # 2 adjacent cache lines. # # So exchange the 2 member blocks, while keeping mostly the original # cache alignment, which can restore and even enhance the performance, # and save 64 bytes of space for 'struct mem_cgroup' (from 2880 to 2816, # with 0day's default RHEL-8.3 kernel config) # # [1]. https://lore.kernel.org/lkml/20201102091543.GM31092@shao2-debian/ # # Fixes: bd0b230fe145 ("mm/memcg: unify swap and memsw page counters") # Reported-by: kernel test robot # Signed-off-by: Feng Tang # Acked-by: Waiman Long # Signed-off-by: Linus Torvalds # < /opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 4df910620bebb5cfe234af16ac8f6474b60215fd # < make -s -j 80 ARCH=powerpc O=/kisskb/build/linus_ppc44x_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc44x_defconfig # < make -s -j 80 ARCH=powerpc O=/kisskb/build/linus_ppc44x_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 80 ARCH=powerpc O=/kisskb/build/linus_ppc44x_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 80 ARCH=powerpc O=/kisskb/build/linus_ppc44x_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/block/genhd.c: In function 'diskstats_show': /kisskb/src/block/genhd.c:1662:1: warning: the frame size of 1160 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ /kisskb/src/lib/zstd/compress.c: In function 'ZSTD_compressBlock_doubleFast': /kisskb/src/lib/zstd/compress.c:1393:1: warning: the frame size of 1584 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ INFO: Uncompressed kernel (size 0x5fda24) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5fda24) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5fda24) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5fda24) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5fda24) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5fda24) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5fda24) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5fda24) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5fda24) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5fda24) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5fda24) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) Image Name: Linux-5.10.0-rc5-g4df910620beb Created: Fri Nov 27 05:51:13 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3068403 Bytes = 2996.49 KiB = 2.93 MiB Load Address: 00600000 Entry Point: 006014a8 Image Name: Linux-5.10.0-rc5-g4df910620beb Created: Fri Nov 27 05:51:13 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3069253 Bytes = 2997.32 KiB = 2.93 MiB Load Address: 00600000 Entry Point: 006000c4 Image Name: Linux-5.10.0-rc5-g4df910620beb Created: Fri Nov 27 05:51:13 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3069347 Bytes = 2997.41 KiB = 2.93 MiB Load Address: 00600000 Entry Point: 00601488 Image Name: Linux-5.10.0-rc5-g4df910620beb Created: Fri Nov 27 05:51:13 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3068167 Bytes = 2996.26 KiB = 2.93 MiB Load Address: 00600000 Entry Point: 006014a8 Image Name: Linux-5.10.0-rc5-g4df910620beb Created: Fri Nov 27 05:51:13 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3069141 Bytes = 2997.21 KiB = 2.93 MiB Load Address: 00600000 Entry Point: 006014a8 Image Name: Linux-5.10.0-rc5-g4df910620beb Created: Fri Nov 27 05:51:13 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3069878 Bytes = 2997.93 KiB = 2.93 MiB Load Address: 00600000 Entry Point: 006014a0 Image Name: Linux-5.10.0-rc5-g4df910620beb Created: Fri Nov 27 05:51:13 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3068269 Bytes = 2996.36 KiB = 2.93 MiB Load Address: 00600000 Entry Point: 006014b8 Image Name: Linux-5.10.0-rc5-g4df910620beb Created: Fri Nov 27 05:51:13 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3068227 Bytes = 2996.32 KiB = 2.93 MiB Load Address: 00600000 Entry Point: 00601498 Image Name: Linux-5.10.0-rc5-g4df910620beb Created: Fri Nov 27 05:51:13 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3068176 Bytes = 2996.27 KiB = 2.93 MiB Load Address: 00600000 Entry Point: 006001b8 Completed OK # rm -rf /kisskb/build/linus_ppc44x_defconfig_powerpc-gcc4.9 # Build took: 0:01:04.247954