Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751195AbdGMEad (ORCPT ); Thu, 13 Jul 2017 00:30:33 -0400 Received: from mout.gmx.net ([212.227.15.18]:61400 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751135AbdGMEab (ORCPT ); Thu, 13 Jul 2017 00:30:31 -0400 Message-ID: <1499920123.5107.29.camel@gmx.de> Subject: Re: [PATCH v3 00/10] x86: ORC unwinder (previously undwarf) From: Mike Galbraith To: Andi Kleen Cc: Josh Poimboeuf , x86@kernel.org, linux-kernel@vger.kernel.org, live-patching@vger.kernel.org, Linus Torvalds , Andy Lutomirski , Jiri Slaby , Ingo Molnar , "H. Peter Anvin" , Peter Zijlstra Date: Thu, 13 Jul 2017 06:28:43 +0200 In-Reply-To: <20170713041524.GC3044@two.firstfloor.org> References: <87wp7dmgoo.fsf@firstfloor.org> <1499914980.5107.18.camel@gmx.de> <20170713041524.GC3044@two.firstfloor.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:9sCosPMYankGS9GJktdIfTpweu+Sl5t7DamVGynviPCWkJ4iFBo vyn4X0RivshzGv2yh75JYl26MJV3s1McT6gtWkL3cJPwd+2EBg8m4A44Zl4dKiKX44joPFq idpuJTjbCwkFhRrGXlT4bri+zyfzrLwTtssGvDx/iAP/OsigMjxCtcRfWXJflcuOXjNCYZg 9W8zy/P4CzrlD4WfLV3Mw== X-UI-Out-Filterresults: notjunk:1;V01:K0:lAB7Xv+YEE0=:isgmYMQdvBKXzDvx9troAA pTr0S/max6N4Pe2nMuMTILFKMekX2Ab1b/2OzZLe26wchSirrHJ11ANWr9HnemgO0toXig9Hk 4mC0qik9/Lw4PlHqfQzsG5H/PgQI2bavIlKkiYQN3sbM+UJ0ZneAiMthOLS3/oYkzJhPubrps WdZ46bBx8dIRus0Vd8Ib1+B8BzrPlbatVZzfTvGhENfUxZy68goAs4KI960bqFEs6LiIGQ8IE qHlW93435MgiPs/49HM22NRzkDhg4abNVqvK7JgjKT4ij51/tenatHAe7rkStMz6un0DHhXVk 9C0tLxpfSGvC7qalBWHTLLXKTG8yMVNe6zdZ1v3sohSiKLUPEsek5iSAq/nQZrvpG03xH7Oqp cj06wEoFYskNGYvOtD4zsZ9bItuxxGqMTnKcyW8R6ovW0GEaLeBLFLOueTDeZDV48bdvzfhnH TZ56wlU4RNoKGAgqwekIsz7YnuDDsATCxZs+e9u617e4yqv2UDl5L78Nws8pGyIEdenj/4UZA riZIwWx4CRPjiAJ4G/8arPgqDuyevxFHNiw4WFXIWI2tLLy1swCni0CoA7x5CdszXVtm3uHdx M6MGAHvZ7v8N5jDo3ynlCxxgB/ZKN467uQbtjJlneNiytsdajSlDkMpgsUamok33rVvK2IY1z DUhs1JuIoV/OZPZlgbVHpV8I2OdjJX2Ynq6SnpGkue2KTmc+j4rYGsN100ow+HRVhAiyl2382 GnuGHgQACsUY/urcY5pNm6KS6HTTDQGYMkpArEC97s9+xpLjRCJzLSPRXwvWPkP3l7DSo4tV1 G/fk9uD Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1408 Lines: 34 On Wed, 2017-07-12 at 21:15 -0700, Andi Kleen wrote: > On Thu, Jul 13, 2017 at 05:03:00AM +0200, Mike Galbraith wrote: > > On Wed, 2017-07-12 at 15:30 -0700, Andi Kleen wrote: > > > Josh Poimboeuf writes: > > > > > > > > The ORC data format does have a few downsides compared to DWARF. The > > > > ORC unwind tables take up ~1MB more memory than DWARF eh_frame tables. > > > > > > > Can we have an option to just use dwarf instead? For people > > > who don't want to waste a MB+ to solve a problem that doesn't > > > exist (as proven by many years of opensuse kernel experience) > > > > Sure the dwarf unwinder works well for crashes, but at the price of > > demolishing ftrace/perf utility. > > You mean the unwind performance? Yeah, it hurts.. massively, has even been known to kill big boxen. > That's a valid concern, but neither ORC nor dwarf are likely > to address it. However most usages of ftrace/perf shouldn't be that > depending on unwind performance -- just lower the frequency of your > events. > > The only possible win is if the win from not using FP code is > significant enough. On the x86 side the only modern CPUs that should really > care about this are Atoms. Nope, they all care. Measure performance delta of fast/light stuff. Maybe I'm expecting too much good stuff to follow, but don't spoil it for me, I think I'm looking at a real winner :) -Mike