# 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 48 ARCH=powerpc O=/kisskb/build/linus_mpc83xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc83xx_defconfig # < make -s -j 48 ARCH=powerpc O=/kisskb/build/linus_mpc83xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 48 ARCH=powerpc O=/kisskb/build/linus_mpc83xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/linus_mpc83xx_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=] } ^ INFO: Uncompressed kernel (size 0x7a09ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7a09ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7a09ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7a09ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7a09ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7a09ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7902c4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7a09ac) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) Image Name: Linux-5.10.0-rc5-66654-g4df91062 Created: Fri Nov 27 05:48:37 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3570583 Bytes = 3486.90 KiB = 3.41 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.10.0-rc5-66654-g4df91062 Created: Fri Nov 27 05:48:37 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3600963 Bytes = 3516.57 KiB = 3.43 MiB Load Address: 00800000 Entry Point: 00800294 Image Name: Linux-5.10.0-rc5-66654-g4df91062 Created: Fri Nov 27 05:48:37 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3600921 Bytes = 3516.52 KiB = 3.43 MiB Load Address: 00800000 Entry Point: 00800294 Image Name: Linux-5.10.0-rc5-66654-g4df91062 Created: Fri Nov 27 05:48:37 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3601223 Bytes = 3516.82 KiB = 3.43 MiB Load Address: 00800000 Entry Point: 00800294 Image Name: Linux-5.10.0-rc5-66654-g4df91062 Created: Fri Nov 27 05:48:37 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3600682 Bytes = 3516.29 KiB = 3.43 MiB Load Address: 00800000 Entry Point: 00800294 Image Name: Linux-5.10.0-rc5-66654-g4df91062 Created: Fri Nov 27 05:48:38 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3600983 Bytes = 3516.58 KiB = 3.43 MiB Load Address: 00800000 Entry Point: 00800294 Image Name: Linux-5.10.0-rc5-66654-g4df91062 Created: Fri Nov 27 05:48:37 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3600862 Bytes = 3516.47 KiB = 3.43 MiB Load Address: 00800000 Entry Point: 00800294 Completed OK # rm -rf /kisskb/build/linus_mpc83xx_defconfig_powerpc-gcc4.9 # Build took: 0:00:57.184678