Received: by 10.223.176.5 with SMTP id f5csp2441605wra; Thu, 1 Feb 2018 00:16:03 -0800 (PST) X-Google-Smtp-Source: AH8x226lLoadkEA8FNUebDR9dCyjLqKh7md6BdV4O/eW5EHXDsZqmYA5Hjl71PALACI0TZHVa7ke X-Received: by 10.98.69.209 with SMTP id n78mr36554920pfi.6.1517472963737; Thu, 01 Feb 2018 00:16:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517472963; cv=none; d=google.com; s=arc-20160816; b=NE+wncGgGYFW5loat2sJvI9RCoMEUfRfzjVN9jg/m4AvZ2wu+FsXOYxlLU/i7wEFGj d3fARLNs6zvFpMyPdV4/44LNBbxGkjvPCpIxsReMPSkvGq5s1pXZOYHCmj7EcmkFz0y0 wEIvSEAQ4r9CnHIKgvubW4KycCcLIQwf4h7MJ+mL+r0vAyGkxBlJSU6WEt8JBK4qEnqg MiYSctJv1OfoSa7isrHmTB944Eo4B5KB9umOJSjB5RJgSGYe09fT16faggFbc1iXr5Ho o39MJ2IJxcQMCe+rQatLe5BV+vYoAFkTia15dE4rOb2EfombAePMUJJLW6J6kPs6yLjE RELQ== 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:arc-authentication-results; bh=+EHR7JRnIbBIA2fC8JmcyfsJ9hESNz4I2kc+OFQ5Sbg=; b=yr/q7nnX8+NAJW+cUgaWQpVK2XbVSSnuL1OahLbQxBj02wZQ+Z+u1LQHXEUOGLhQMh g69FGxtASaeKWukkpVZy/Fo7hiyLXxQ/deDqiJzhBCz5KG1mZSPEgeF/anvxmVyy8nPw Sk1T5+l63kPeRDvPY2NxjNekg6O0j2uEM0ctLOB9P27UMTnihImENoYD8hnNdBQz3utl AwMXLGliI7wdqnReC3H9kVUiuJdcWfZ7Bu2Vg+rGihINUT2n4d93B8eqjxyGTwseTpQh Vxk4dsN12C4IA5K8W9a7Et685kl2rC+mCAd5SLIwQOiM1ZgtZ3KZE4X9hPx76L2u8n6E wing== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w61-v6si1589229plb.412.2018.02.01.00.15.49; Thu, 01 Feb 2018 00:16:03 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751812AbeBAIP0 (ORCPT + 99 others); Thu, 1 Feb 2018 03:15:26 -0500 Received: from mx2.suse.de ([195.135.220.15]:33845 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751399AbeBAIPW (ORCPT ); Thu, 1 Feb 2018 03:15:22 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 7F3B6ACB3; Thu, 1 Feb 2018 08:15:21 +0000 (UTC) Date: Thu, 1 Feb 2018 09:15:20 +0100 From: Michal Hocko To: "He, Roger" Cc: "Koenig, Christian" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" Subject: Re: [PATCH] mm/swap: add function get_total_swap_pages to expose total_swap_pages Message-ID: <20180201081520.GF21609@dhcp22.suse.cz> References: <1517214582-30880-1-git-send-email-Hongbo.He@amd.com> <20180129163114.GH21609@dhcp22.suse.cz> <20180130075553.GM21609@dhcp22.suse.cz> <9060281e-62dd-8775-2903-339ff836b436@amd.com> <20180130101823.GX21609@dhcp22.suse.cz> <7d5ce7ab-d16d-36bc-7953-e1da2db350bf@amd.com> <20180130122853.GC21609@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 01-02-18 06:13:20, He, Roger wrote: > Hi Michal: > > How about only > EXPORT_SYMBOL_GPL(total_swap_pages) ? I've already expressed that messing up with the amount of swap pages is a wrong approach. You should scale your additional buffers according the the current memory pressure. There are other users of memory on the system other than your subsystem. -- Michal Hocko SUSE Labs