From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751157AbcHREMT (ORCPT ); Thu, 18 Aug 2016 00:12:19 -0400 Received: from mx2.suse.de ([195.135.220.15]:53856 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750720AbcHREMS (ORCPT ); Thu, 18 Aug 2016 00:12:18 -0400 Date: Thu, 18 Aug 2016 06:11:39 +0200 From: Borislav Petkov To: "Huang, Ying" Cc: "H. Peter Anvin" , Denys Vlasenko , Peter Zijlstra , Brian Gerst , LKML , Andy Lutomirski , lkp@01.org, Thomas Gleixner , Linus Torvalds , Ingo Molnar , Ville =?utf-8?B?U3lyasOkbMOk?= Subject: Re: [LKP] [lkp] [x86/hweight] 65ea11ec6a: will-it-scale.per_process_ops 9.3% improvement Message-ID: <20160818041139.GA22101@nazgul.tnic> References: <20160816142642.GA24206@yexl-desktop> <9FF32F53-5EF8-40D4-B696-A30FDF7201E1@zytor.com> <20160816171635.GA10542@nazgul.tnic> <796A2A72-06B7-4B3D-AA38-DF558FC75857@zytor.com> <20160817054605.GA6728@nazgul.tnic> <87r39n58sv.fsf@yhuang-mobile.sh.intel.com> <20160818034513.GA21415@nazgul.tnic> <877fbespek.fsf@yhuang-mobile.sh.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <877fbespek.fsf@yhuang-mobile.sh.intel.com> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 17, 2016 at 08:54:11PM -0700, Huang, Ying wrote: > flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic > popcnt tsc_deadline_timer aes xsave avx lahf_lm tpr_shadow vnmi flexpriority ept vpid xsaveopt dtherm ida arat pln pts ^^^^^^ There it is. So if there's no bug, alternatives should replace all "call __sw_hweightXX" calls with POPCNT. So you shouldn't be even calling these functions and hitting that path. Can you boot the kernel with "debug-alternative" and put that dmesg somewhere along with vmlinux for me to stare at? Privately is fine too. I'd like to make sure the alternatives application actually happens. Thanks. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --