Received: by 10.213.65.68 with SMTP id h4csp464272imn; Fri, 23 Mar 2018 08:20:29 -0700 (PDT) X-Google-Smtp-Source: AG47ELvxABCclx6dmKquDd5zJ2ZxZA4oyxSpgV/oJYSnRP3SkME4WAQuPSyrElfivkrLUI/t69WU X-Received: by 10.99.124.14 with SMTP id x14mr21209856pgc.290.1521818429378; Fri, 23 Mar 2018 08:20:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521818429; cv=none; d=google.com; s=arc-20160816; b=oZES6/MqizgUzlffZVJDJk8hZyxpAESmdRoD5TLi8Oc6cDA1l5rMLaSAljNcvpDZsv sM3EoI3uZT801lg4DM75C+xiggZkKZN2uWwXmsWm9vpuRaw6JhnKNu4VRRpLAnRkdfDV gtbe2T0yxgfeVZwmWCk70Q8iOEVDd/uLhr2FqM7uhKAZRPDvCobTsv9vTbzMc8nPdWf7 23+dByw7K6s42rgeOBcpGBtFmslGUGm9o+TWpNBlelu9nJpUk1Gu6oyELRnGSaSoxoVp lFlL7YXdvY2rwkGlGH7BMc/1zL4aIFtg2TZ4qR8EL6M0TMpDzlDtpNVxutPCJk0o1B1W Z+Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=dguDMQXgyEkH3kg2eP/LnWBI5i4DkBPtD47I6Wf6m28=; b=S6K9RNbk0I78EhCByMIqcuFkZrolGpH6Ba3jEG5FiGrxpoGFEKWMYaiPR7z5vpapXD Ro04iZC5oakGDwgXq4mTV4wODeqDGWEVIpPWGf6Q0Vz/pxAzsbi2iQ8RJUI2QhfM8j/D vkmuQyMrGGcm/+iOjyGEjN9BIVPUZgTCD1xpEUmgo8RQ3y8/aAT9wVz2wNo5y0YdkrQh Wi1jfemfSpqVgsWWuUPUVCBwumKWR7PqLLIvPQjk7YtMHyVzxaa/XLZFDekUtPuHECvf yOFDL2egMEaSJoSa+QJGmwecr+o3nbnGngC94AD2lDYxbnZWqKYNZmCO7CjBagfr/QgW sNIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=E91aOyTH; 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=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u11si6711289pfh.197.2018.03.23.08.20.13; Fri, 23 Mar 2018 08:20:29 -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=@virtuozzo.com header.s=selector1 header.b=E91aOyTH; 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=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751828AbeCWPTI (ORCPT + 99 others); Fri, 23 Mar 2018 11:19:08 -0400 Received: from mail-db5eur01on0135.outbound.protection.outlook.com ([104.47.2.135]:55266 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751479AbeCWPTG (ORCPT ); Fri, 23 Mar 2018 11:19:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=dguDMQXgyEkH3kg2eP/LnWBI5i4DkBPtD47I6Wf6m28=; b=E91aOyTHBwWhohU23AAH0yYrbaFTvkJhWRm2hgykoAgu2zNQ0fFJp2C2qSlKm9CT7Qx9MvmiDGexlboPkSPgCEvJDbgWMYEh6Hx3RFtESSArGjlDNF3hMt0zRcOQo2iqAnrsSbitO3UoBRfsVnK0uThVc16CkUeCRdbsmNNRfYo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=aryabinin@virtuozzo.com; Received: from [172.16.25.12] (195.214.232.6) by AM6PR08MB3254.eurprd08.prod.outlook.com (2603:10a6:209:47::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.609.10; Fri, 23 Mar 2018 15:19:03 +0000 Subject: Re: [PATCH] mm, vmscan, tracing: Use pointer to reclaim_stat struct in trace event To: Andrew Morton , Steven Rostedt Cc: LKML , linux-mm@kvack.org, Michal Hocko , Mel Gorman , Vlastimil Babka , Linus Torvalds , Alexei Starovoitov References: <20180322121003.4177af15@gandalf.local.home> <20180322141022.f02476e1f76338ab9cecf62e@linux-foundation.org> From: Andrey Ryabinin Message-ID: Date: Fri, 23 Mar 2018 18:19:48 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180322141022.f02476e1f76338ab9cecf62e@linux-foundation.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: HE1PR07CA0023.eurprd07.prod.outlook.com (2603:10a6:7:67::33) To AM6PR08MB3254.eurprd08.prod.outlook.com (2603:10a6:209:47::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f65146cf-cac6-4237-4e4f-08d590d16992 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:AM6PR08MB3254; X-Micros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kBIv3jf5db5CzY6WZNPqXDVylRof8o0TBVSK5wLkT5+iE62CZpTnD6jfXksf5uhn69p/X26+a9nPdhTBf4mzLzVl0Z9ai+YknlzflWWb4O+c2j4mhQFfY6VFUwZMFsnu7bEMJ2lIbTpxZGGdo9trHBhADZKN112Ec0FnNT/v1/INXBwRe/MQ1NutcF/Cnibpg0qZJjXqVWwKMQqYtyN+hj1mPf2hHssYCSL4aE7pGdVWjR/W7rJN8+gP1a+dE0p3uHMG9N6wXW/pZxW4xNlA+73RwPes+9jmzjZCA8FKHSGMuUd4J53+iY38/SaidfSq1h4sUejlM8xORh/iP3LEfb7bAQ+eZrMB37o1e+sErxd8PFbgvHjec;4:gJAk+uMOCpUSIZvY0YF7uqSw3rcQ/2VdzqSr7n/pmzyaRbHsdP0nuy1WsGK/+yMgvciqErm5rP0L7/RE1KiQrewBvBOLI+OuKPMO9QVU8FpA529TCjzocK3tA5LZeFxMHZWh4f0KsG3w25Ba3vwUe24f626QUZ/lEaqcugsfDAZqqeeauN265iiJ29+nro0rEHEn3eOUstkUlFmYRyCQQRpHIUoPOEW9jwBE4LvOaTa/1DsyTPqLHLiR8FwoIOeLS3G7dlCylh+HQYlSxgKdTEHGkdjn29oSUhYB7rXa+ssR0UWDw2zlarnmclaqf+1g X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(788757137089); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231221)(944501327)(52105095)(10201501046)(3002001)(6041310)(20161123560045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011);SRVR:AM6PR08MB3254;BCL:0;PCL:0;RULEID:;SRVR:AM6PR08MB3254; X-Forefront-PRVS: 0620CADDF3 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6049001)(39380400002)(396003)(39850400004)(366004)(376002)(346002)(189003)(199004)(2906002)(8936002)(81166006)(5660300001)(31696002)(31686004)(6486002)(81156014)(64126003)(50466002)(229853002)(53936002)(58126008)(110136005)(6246003)(52116002)(8676002)(11346002)(65826007)(54906003)(68736007)(2486003)(59450400001)(47776003)(52146003)(6666003)(23676004)(106356001)(77096007)(65956001)(7736002)(65806001)(97736004)(16526019)(66066001)(16576012)(4326008)(186003)(76176011)(105586002)(53546011)(6116002)(3846002)(230700001)(25786009)(386003)(36756003)(446003)(316002)(55236004)(26005)(305945005)(478600001)(86362001);DIR:OUT;SFP:1102;SCL:1;SRVR:AM6PR08MB3254;H:[172.16.25.12];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTZQUjA4TUIzMjU0OzIzOlI4b1Y4Vk1MUit6TTE3OGpsU3FwaUM3Tlox?= =?utf-8?B?MWVpUXE4aHNjQlg5UmFSVEx2WXlsWnpBQ2pqUDRqMTkwNmsxazRnWUZKK1dl?= =?utf-8?B?QU1IQ05zWUtsV2FUVE1ZWUkrdTZXaDFHdVhBWGIyYit2U0ZuOW5jdWcrSCs5?= =?utf-8?B?eXBWVWJCYlBCSjNuZk9vWExOakQ1L2NUWVgxZjRmVjhVczV3SVFHZmNHWHV6?= =?utf-8?B?Qm5pYS9GendMNExzUmt0Q0crdHluQndXSmNDaXQ1WEI2WmJCa2RoQzczWEJS?= =?utf-8?B?bFg5WkJueFVtaGhDMGFpaDBDMHg5VGRiZGpKcVpVbGlncHp6NlN1eUVBNksx?= =?utf-8?B?RTBDbW5vcEt1ck5pSWc5TlkzYVpPMHFSV0FpVGpxSFYzTGtkQVpBMDVtQ1Ro?= =?utf-8?B?OXpJVElkL2xpK2NKcGF6bzdHbWQwSGdZN3dRVHRYSmo0emlHbEVaVnVxTkk1?= =?utf-8?B?R0xDQ3QwY1FSU2xtTStiSVlBSTdndkw3R3JYZWxG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oZ5VtXURd9KiVLXzpkVzDOsC0I8id3PbuKU= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Mar 2018 15:19:03.0147 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f65146cf-cac6-4237-4e4f-08d590d16992 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB3254 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/23/2018 12:10 AM, Andrew Morton wrote: > On Thu, 22 Mar 2018 12:10:03 -0400 Steven Rostedt wrote: > >> >> The trace event trace_mm_vmscan_lru_shrink_inactive() currently has 12 >> parameters! Seven of them are from the reclaim_stat structure. This >> structure is currently local to mm/vmscan.c. By moving it to the global >> vmstat.h header, we can also reference it from the vmscan tracepoints. In >> moving it, it brings down the overhead of passing so many arguments to the >> trace event. In the future, we may limit the number of arguments that a >> trace event may pass (ideally just 6, but more realistically it may be 8). > > Unfortunately this is not a good time. Andrey's "mm/vmscan: replace > mm_vmscan_lru_shrink_inactive with shrink_page_list tracepoint" mucks > with this code quite a lot and that patch's series is undergoing review > at present, with a few issues yet unresolved. I slightly reworked my patch series, so that patch "mm/vmscan: replace mm_vmscan_lru_shrink_inactive with shrink_page_list tracepoint" is not needed anymore. Replacing that tracepoint with less informative shrink_page_list probably isn't a very good idea anyway. So Steven's patch applies *almost* cleanly on top of my v2, nothing that 3-way merge can't handle: # git am -3 mm-vmscan-tracing-Use-pointer-to-reclaim_stat-struct.patch Applying: mm, vmscan, tracing: Use pointer to reclaim_stat struct in trace event Using index info to reconstruct a base tree... M include/trace/events/vmscan.h M mm/vmscan.c Falling back to patching base and 3-way merge... Auto-merging mm/vmscan.c Auto-merging include/trace/events/vmscan.h