# 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 32 ARCH=powerpc O=/kisskb/build/linus_ppc6xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc6xx_defconfig # < make -s -j 32 ARCH=powerpc O=/kisskb/build/linus_ppc6xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 32 ARCH=powerpc O=/kisskb/build/linus_ppc6xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 32 ARCH=powerpc O=/kisskb/build/linus_ppc6xx_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 0xc4e040) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc4e040) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc4e040) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc4e040) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc4e040) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc4e040) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc4e040) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc4e040) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc4e040) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc4e040) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc3d958) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc3d958) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.10.0-rc5+ Created: Fri Nov 27 06:14:01 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5435883 Bytes = 5308.48 KiB = 5.18 MiB Load Address: 00d00000 Entry Point: 00d00894 Image Name: Linux-5.10.0-rc5+ Created: Fri Nov 27 06:14:01 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5432223 Bytes = 5304.91 KiB = 5.18 MiB Load Address: 00d00000 Entry Point: 00d00294 Image Name: Linux-5.10.0-rc5+ Created: Fri Nov 27 06:14:02 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5433734 Bytes = 5306.38 KiB = 5.18 MiB Load Address: 00d00000 Entry Point: 00d00294 Image Name: Linux-5.10.0-rc5+ Created: Fri Nov 27 06:14:02 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5435724 Bytes = 5308.32 KiB = 5.18 MiB Load Address: 00d00000 Entry Point: 00d00294 Image Name: Linux-5.10.0-rc5+ Created: Fri Nov 27 06:14:02 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5433107 Bytes = 5305.77 KiB = 5.18 MiB Load Address: 00d00000 Entry Point: 00d00294 Image Name: Linux-5.10.0-rc5+ Created: Fri Nov 27 06:14:02 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5433190 Bytes = 5305.85 KiB = 5.18 MiB Load Address: 00d00000 Entry Point: 00d00294 Image Name: Linux-5.10.0-rc5+ Created: Fri Nov 27 06:14:02 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5433288 Bytes = 5305.95 KiB = 5.18 MiB Load Address: 00d00000 Entry Point: 00d00294 Image Name: Linux-5.10.0-rc5+ Created: Fri Nov 27 06:14:02 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5436143 Bytes = 5308.73 KiB = 5.18 MiB Load Address: 00d00000 Entry Point: 00d00894 Image Name: Linux-5.10.0-rc5+ Created: Fri Nov 27 06:14:02 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5401680 Bytes = 5275.08 KiB = 5.15 MiB Load Address: 00000000 Entry Point: 00000000 Completed OK # rm -rf /kisskb/build/linus_ppc6xx_defconfig_powerpc-gcc4.9 # Build took: 0:03:59.783280