Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1771515ybn; Wed, 2 Oct 2019 23:26:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4ABd7nIQl0NNDBlvGmxKYNcHAxIQ0vjFoh+iFelRaZZn6L6Rtx+0e4mIdonTqEuRxluna X-Received: by 2002:a50:99da:: with SMTP id n26mr7773626edb.293.1570083981928; Wed, 02 Oct 2019 23:26:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570083981; cv=none; d=google.com; s=arc-20160816; b=j9JucPwRU9lFAsK39HAkGS+HfE60mYG+pQrCQQs+crMR4DwQHlmQsQ8s50V4kJW57g 4m8utH0C6ywYrMOe+sIFKuNkdfoY8VOHmj2SkNwHk/XfjKn9E+HSOE5GBDasJt+nac/z 0cqlxiI2ci653pvyxHGQVRtK23LYGz6RkihoG6EAcvMlPe8OWgZxpWtSpmH3MiD1jnok d+25HyH/pb6xNTnU1LbQiFOHiaaXgqVXziycoQDoZ9gnzWF4SvCXLXNjKrTghlyxn/7q vALnK6Z/9j2fvxKAtNcZaNCirataUhjRxPXINvZoKMA3kX7Hfht02WfHLKey9EgvR7Wn yt6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=aNoYXtoLSgcXq5+qVJ/Oy+yR5wsoWbv3Dshm+QK4FYk=; b=CcibKIPbtTVZtfbpHWea4XktdIHfizc/keXbViMJ/CwHOmFM1a8XEZlVbBuGUDkw6i u4XGVX5fsD5Njxgk4UCx5Pglfjhnt1Uklg2GfpD5BAwymytyUJ/6DL0/CTjIC/mTlFwj Q8vdZGMy/FmqK1eAxjzKzXkKrbxvh9IhnA9kOfUT/wTdAFnQ3eyGg+Bp6pnHaG4EME2V b+jhbWOQAHcndazcUhdICjGAEIjhEov9ATsZnc+JENwzX/aMajGmbzHcLLcTXQR2ZPut wERyiVgt9jahDcQQYk8gM13YUyyOOGttZsYMV0/uw1PgJ3+/XkB7LAHcYb1Zb4OELOgz xiPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="p/g7tnZe"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f47si903618ede.263.2019.10.02.23.25.58; Wed, 02 Oct 2019 23:26:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="p/g7tnZe"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727938AbfJCFwg (ORCPT + 99 others); Thu, 3 Oct 2019 01:52:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:45882 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725999AbfJCFwg (ORCPT ); Thu, 3 Oct 2019 01:52:36 -0400 Received: from devnote2 (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CBDAD21D81; Thu, 3 Oct 2019 05:52:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570081955; bh=PMscm+0DA539pxL/O1xC58O5vmGdw+fjyf0hSC501JA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=p/g7tnZel4tqLj0Fvhp44zo//DejCr9pc+aN5RlVl1GEc8HmPxnbxdEwtTyGEmdMx 9Gt5n+KUpDs9XNEnnBT+uBNfh4PNrukZ49LLkStS0okjmYFVdQWlZKAB3sUh1fZ4+G N1HzrzsoLSdU48rnWApHoVPvID4oegB2EADzJCyc= Date: Thu, 3 Oct 2019 14:52:30 +0900 From: Masami Hiramatsu To: Daniel Bristot de Oliveira Cc: Peter Zijlstra , linux-kernel@vger.kernel.org, x86@kernel.org, Nadav Amit , Andy Lutomirski , Dave Hansen , Song Liu , Masami Hiramatsu , Steven Rostedt Subject: Re: [PATCH 3/3] x86/ftrace: Use text_poke() Message-Id: <20191003145230.fe8314d8575c2f88b16322e8@kernel.org> In-Reply-To: References: <20190827180622.159326993@infradead.org> <20190827181147.166658077@infradead.org> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2 Oct 2019 18:35:26 +0200 Daniel Bristot de Oliveira wrote: > ftrace was already batching the updates, for instance, causing 3 IPIs to enable > all functions. The text_poke() batching also works. But because of the limited > buffer [ see the reply to the patch 2/3 ], it is flushing the buffer during the > operation, causing more IPIs than the previous code. Using the 5.4-rc1 in a VM, > when enabling the function tracer, I see 250+ intermediate text_poke_finish() > because of a full buffer... Would you have any performance numbers of the previous code and applying this? Thank you, -- Masami Hiramatsu