Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1169813ybe; Thu, 5 Sep 2019 11:21:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqz8O8CRE/99YvqVbryneCaAD4dmHTPJIpbd7VXYmIEwbO90njk+Mb00Td4R8zXfD4Z+7qfr X-Received: by 2002:a17:90a:bf0a:: with SMTP id c10mr5355553pjs.78.1567707697482; Thu, 05 Sep 2019 11:21:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567707697; cv=none; d=google.com; s=arc-20160816; b=KSK8PIr8jNY5BpB3iGnwaVQhmE9PqiMDJXja00jMomSTdRJ5vBR/cAST3D8gWQzXMn wAuA9yNKHT+Tu1Vw/rQyCMjfdKXe340ZxzeTpDa85d2Gb1TTbiJxfUN1zMDo7ooaIsfA 4Rvs1ejdCKJr2Sxv6YQsbuCADEykEBc4TbWf1xDcGZhfT5+BT5TF8okRsplFeEMmYk/Z FhWvzFFXbswN0gs/2cduFFMD8Z4APCYq0i6K5p/AlMI0CeyiDqnOCs03G4wFLA1ocYzp bWrDOI0vMZwzhoCZOOBCBiKLv2Nd99og3XcLx+RJXm+VIDf5Xo2mH4sc4g6yMM7h2TQ0 ZcjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=gjCkKO17RhQ/TgHr0fZaADe4DrmxsgeZwX8P/uRrDUs=; b=DhCQnIrxSc0e5gL+SQPLqhpo5C2pGoJZ9Xtb34BlPxWWjV8gnz0zyGnPvB0XvNNiJh 9JPNoPexVgsXiS0Od2WMijOZrIwG0KCuFdcMXBm0FOU4c6buMKnFiuY9S9bUjoZMSVf5 xYjl1om0fTPGflnFkyq17bjEWxV7zbdRDVtBa15D6z15/HSismznQ6naIx1M1m2y2U6M nYejiM8qbqcO5elieCRqOCECaEnilxvMjqHQmLuLvk0k/GC8I5uLwhcH0Io9T6c11NiN W/uvxzKsm2L//IAVyF/oN8k/EACqkhmnmULsAOWzZKlrSkahH5w1BtKqU3sR/IVDmPBh SMog== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 a4si3086351pfb.10.2019.09.05.11.21.19; Thu, 05 Sep 2019 11:21:37 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387436AbfIEOnN (ORCPT + 99 others); Thu, 5 Sep 2019 10:43:13 -0400 Received: from mx2.suse.de ([195.135.220.15]:37644 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726080AbfIEOnN (ORCPT ); Thu, 5 Sep 2019 10:43:13 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id ABAC9B0BA; Thu, 5 Sep 2019 14:43:11 +0000 (UTC) Date: Thu, 5 Sep 2019 16:43:10 +0200 From: Michal Hocko To: Joel Fernandes , Steven Rostedt Cc: linux-kernel@vger.kernel.org, Tim Murray , carmenjackson@google.com, mayankgupta@google.com, dancol@google.com, rostedt@goodmis.org, minchan@kernel.org, akpm@linux-foundation.org, kernel-team@android.com, "Aneesh Kumar K.V" , Dan Williams , Jerome Glisse , linux-mm@kvack.org, Matthew Wilcox , Ralph Campbell , Vlastimil Babka Subject: Re: [PATCH v2] mm: emit tracepoint when RSS changes by threshold Message-ID: <20190905144310.GA14491@dhcp22.suse.cz> References: <20190903200905.198642-1-joel@joelfernandes.org> <20190904084508.GL3838@dhcp22.suse.cz> <20190904153258.GH240514@google.com> <20190904153759.GC3838@dhcp22.suse.cz> <20190904162808.GO240514@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190904162808.GO240514@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [Add Steven] On Wed 04-09-19 12:28:08, Joel Fernandes wrote: > On Wed, Sep 4, 2019 at 11:38 AM Michal Hocko wrote: > > > > On Wed 04-09-19 11:32:58, Joel Fernandes wrote: [...] > > > but also for reducing > > > tracing noise. Flooding the traces makes it less useful for long traces and > > > post-processing of traces. IOW, the overhead reduction is a bonus. > > > > This is not really anything special for this tracepoint though. > > Basically any tracepoint in a hot path is in the same situation and I do > > not see a point why each of them should really invent its own way to > > throttle. Maybe there is some way to do that in the tracing subsystem > > directly. > > I am not sure if there is a way to do this easily. Add to that, the fact that > you still have to call into trace events. Why call into it at all, if you can > filter in advance and have a sane filtering default? > > The bigger improvement with the threshold is the number of trace records are > almost halved by using a threshold. The number of records went from 4.6K to > 2.6K. Steven, would it be feasible to add a generic tracepoint throttling? -- Michal Hocko SUSE Labs