From patchwork Mon Apr 13 21:57:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: svc_lmoiseichuk@magicleap.com X-Patchwork-Id: 11486399 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1B6A014DD for ; Mon, 13 Apr 2020 21:58:20 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id CD24D20735 for ; Mon, 13 Apr 2020 21:58:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=magicleap.com header.i=@magicleap.com header.b="f3l7rFKU"; dkim=pass (1024-bit key) header.d=magicleap.com header.i=@magicleap.com header.b="ph7XMJp0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CD24D20735 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=magicleap.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 0043C8E0003; Mon, 13 Apr 2020 17:58:19 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id EF82A8E0001; Mon, 13 Apr 2020 17:58:18 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DBFA18E0003; Mon, 13 Apr 2020 17:58:18 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0215.hostedemail.com [216.40.44.215]) by kanga.kvack.org (Postfix) with ESMTP id C58DD8E0001 for ; Mon, 13 Apr 2020 17:58:18 -0400 (EDT) Received: from smtpin07.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 8A4AD4DCB for ; Mon, 13 Apr 2020 21:58:18 +0000 (UTC) X-FDA: 76704195876.07.alarm91_e41eede0dd2f X-Spam-Summary: 2,0,0,028b8555173e8763,d41d8cd98f00b204,svc_lmoiseichuk@magicleap.com,,RULES_HIT:41:355:379:541:800:960:973:988:989:1260:1261:1345:1437:1535:1539:1711:1714:1730:1747:1777:1792:1801:2393:2559:2562:2987:3138:3139:3140:3141:3142:3350:3865:3867:3868:3870:3871:4605:5007:6119:6261:6653:7576:7903:10004:11658:11914:12043:12048:12297:12517:12519:12679:12895:13069:13161:13229:13311:13357:14096:14181:14384:14394:14581:14721:21080:21444:21451:21627:30054:30070,0,RBL:148.163.157.123:@magicleap.com:.lbl8.mailshell.net-64.201.201.201 62.14.0.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:ft,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: alarm91_e41eede0dd2f X-Filterd-Recvd-Size: 5177 Received: from mx0a-001e9b01.pphosted.com (mx0a-001e9b01.pphosted.com [148.163.157.123]) by imf29.hostedemail.com (Postfix) with ESMTP for ; Mon, 13 Apr 2020 21:58:17 +0000 (UTC) Received: from pps.filterd (m0176108.ppops.net [127.0.0.1]) by mx0a-001e9b01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 03DLtIbG017408 for ; Mon, 13 Apr 2020 17:58:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=magicleap.com; h=from : to : cc : subject : date : message-id; s=pp09042018; bh=ULBffSSWiOkyC0UR59o7WDkKeU3p81EFjrY635dhS+U=; b=f3l7rFKUzkcoM6KQGgSHmVZAnhe+VEgmqVy8P01gzUxXpL0G+NXbe/XkGqleHPFiixKV TlG93I2LrH/G50XHWYew5i6AdBfLnn/UGJT+S7/Lcbl0RGgqvbsLgUpvSXKuLGcCD2ke EHtw38bz/CTf5A16HfMnE1dvMYM0zOjWKUgJOPtXg7CwB2j9+r8pGdRKoE92yOnLzP5d GYXNr6BxD82wIEM6k24soPhE7u0N7gfeiZHFlKr7iNBfAPt5sd/iCN595/zzxwMUI4kW ZEDycoNnI+LC+t0wIB1OgDJUrLVdQscEH5e/sv3/P5oNAvbKKeMilD4oYS1G7OmvkEn6 0g== Received: from mail-ua1-f72.google.com (mail-ua1-f72.google.com [209.85.222.72]) by mx0a-001e9b01.pphosted.com with ESMTP id 30b7xqhuh2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK) for ; Mon, 13 Apr 2020 17:58:16 -0400 Received: by mail-ua1-f72.google.com with SMTP id o17so4725358uaj.16 for ; Mon, 13 Apr 2020 14:58:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=magicleap.com; s=google; h=from:to:cc:subject:date:message-id; bh=ULBffSSWiOkyC0UR59o7WDkKeU3p81EFjrY635dhS+U=; b=ph7XMJp0u7u47D42UuMsJEZo++sq1SAbd5hRXfZm9Ps9o3lAWcIxA//cc06JvLdvwD b/E+KO4wT1LoNQEZwQriMNexQ1kyJBtVgSr+DVf7Auy4GmYerSyxUCFnVE/dNm4Sb7wy xBeHz8K1IG5SP1hfUz4D0vI77KEpmBbo6BZb4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ULBffSSWiOkyC0UR59o7WDkKeU3p81EFjrY635dhS+U=; b=CQIfpWkuSubp6loOoEdyvVGDU8QaGeXaoLxnGofbZOlyj4a+s8253PeW4ztEkhaFkE rtA59uQwK0ab0caFkZqu1eQXU6zQo0xJLsP3X+2vpMxq4xogtxOIu7xqhWaT768tZe2V Qvz1jbru8pCeA3T/OmnkCE7OJf9G4DM6txQ7NVsWEZgo52z1gu4BhB2R3P4V3Qkbqlz+ rCFdE2rW1fkxSd0MppzEfcwEhUodmGKP9z15VgLMR9hDgkHUwJ6BOs/Oq9qFxpd7ky8D /ZvhgF+118Vr+ZsAVbt9zT8JCbxWRXhTIcfnS4kxjCJBVN3kPzvADpYCbkImni7LmJMH 0j2Q== X-Gm-Message-State: AGi0Pubpr12EXwo1+NtGVcKJbPwGpOGy/gqNRCDOPBhhTpbGyu1er6oD Ton0I3qhQ7y1XXvWpoKzTxH2AfwEaDQS8PP4kU95ufTHRnnbt7qEluW0BV93fH+tZZ8AFTWbqfp 3K2TGKbxk3eI= X-Received: by 2002:a67:6a41:: with SMTP id f62mr4523376vsc.53.1586815095386; Mon, 13 Apr 2020 14:58:15 -0700 (PDT) X-Google-Smtp-Source: APiQypL8zQdCzsDsun22hrzwlsdYnH9ozrBJS0zSpjEgE8LiesK7yGn0a26frHSr7541sEDE84eu8g== X-Received: by 2002:a67:6a41:: with SMTP id f62mr4523361vsc.53.1586815095215; Mon, 13 Apr 2020 14:58:15 -0700 (PDT) Received: from mldl2169.magicleap.ds ([162.246.139.210]) by smtp.gmail.com with ESMTPSA id 20sm2988529uaj.13.2020.04.13.14.58.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Apr 2020 14:58:14 -0700 (PDT) From: svc_lmoiseichuk@magicleap.com X-Google-Original-From: lmoiseichuk@magicleap.com To: hannes@cmpxchg.org, mhocko@kernel.org, vdavydov.dev@gmail.com, tj@kernel.org, lizefan@huawei.com, cgroups@vger.kernel.org Cc: akpm@linux-foundation.org, rientjes@google.com, minchan@kernel.org, vinmenon@codeaurora.org, andriy.shevchenko@linux.intel.com, anton.vorontsov@linaro.org, penberg@kernel.org, linux-mm@kvack.org, Leonid Moiseichuk Subject: [PATCH 0/2] memcg, vmpressure: expose vmpressure controls Date: Mon, 13 Apr 2020 17:57:48 -0400 Message-Id: <20200413215750.7239-1-lmoiseichuk@magicleap.com> X-Mailer: git-send-email 2.17.1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.676 definitions=2020-04-13_11:2020-04-13,2020-04-13 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 mlxlogscore=750 malwarescore=0 spamscore=0 adultscore=0 bulkscore=0 lowpriorityscore=0 phishscore=0 priorityscore=1501 suspectscore=0 clxscore=1011 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004130160 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Leonid Moiseichuk Small tweak to populate vmpressure parameters to userspace without any built-in logic change. The vmpressure is used actively (e.g. on Android) to track mm stress. vmpressure parameters selected empiricaly quite long time ago and not always suitable for modern memory configurations. Leonid Moiseichuk (2): memcg: expose vmpressure knobs memcg, vmpressure: expose vmpressure controls .../admin-guide/cgroup-v1/memory.rst | 12 +- include/linux/vmpressure.h | 35 ++++++ mm/memcontrol.c | 113 ++++++++++++++++++ mm/vmpressure.c | 101 +++++++--------- 4 files changed, 200 insertions(+), 61 deletions(-)