Received: by 10.223.164.221 with SMTP id h29csp286876wrb; Wed, 25 Oct 2017 20:54:12 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TLbqXAwB6KZSTWrFYcLa+qxY9T6rkalzXB20LEcBVdnK7t4PPvkqQL8c5a80rBxFz2uVlY X-Received: by 10.98.80.21 with SMTP id e21mr4125131pfb.208.1508990052112; Wed, 25 Oct 2017 20:54:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508990052; cv=none; d=google.com; s=arc-20160816; b=h5dsuchtUAIpoveK8gkJfHYxUIlgiGmcXir611EHLcJY2k8jpOfF7nK4dLFH3MFqBf t6j5eaqn0pQxZAEQoBXMpa0kph3mxJFdXNlhf6QNaP2xTZXoYcFLxH3yRrYjyClObGw0 YT0aXCZd2dfUV2UE03oSeaL0NisO5d4mmiEOQUaJwRkblM6tVTALkO0TIySn3fdo2Fzj hqIi6Nu4OaJPXbK8iMQq3sIGt++AXVUHNfUmUC2l4qYOUHfDT4QBp6aOXtbJh9Wadq3H 2NXLw2wq7j+8x9c7iMuyeCEEtLlKGxpp++XmiLj4eCrJPai+OCPYLGmiagEX2MeL/3J5 f/yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=4P1f+nljiMEkfpYA7DgVlYNaTQppkx5yWsbpCU9OIBw=; b=SGmBauNUONiIozSUdyBh0gJrHPMh1VErfQPGiEXPo1FJHuxORKSh2/dhbRVw8paN+U Dva7zIOq/3hRvLbWh9qYyVFvmWa5H7y3qqcJguGxVQnFhTg9G1yAHZNZV71Sw0HL+EAw sJFcGP4ZSvMewoub3aUweIu/9pZQM7HjZOT379R83kKIdi4ZxPHhhlpi/afXvQyB4gkv Hq+PeTLNpptP2886PDHF4EGhJsRcw85KzhyNzz++Fx0iaj3Xp4aGb49HbMRjBi2ZyaDA cFdZsjHCD+f9BWSWQ3alVVpDvNsrBSMclsFWSE2gDJ12SZeD8wznI+g0sTljIVX8VPO6 s6sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QF2N9Pge; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l75si2749901pga.538.2017.10.25.20.53.55; Wed, 25 Oct 2017 20:54:12 -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=@gmail.com header.s=20161025 header.b=QF2N9Pge; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752058AbdJZDxa (ORCPT + 99 others); Wed, 25 Oct 2017 23:53:30 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:51856 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751943AbdJZDx2 (ORCPT ); Wed, 25 Oct 2017 23:53:28 -0400 Received: by mail-wr0-f195.google.com with SMTP id j15so1839870wre.8 for ; Wed, 25 Oct 2017 20:53:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=4P1f+nljiMEkfpYA7DgVlYNaTQppkx5yWsbpCU9OIBw=; b=QF2N9PgeqjoFPFlF+7cAHWRU2mAETRG9Pb1DTmlFrdpP2rJ822pQ28wkJWuR303M4r vGF9k+sq0LCnCkR9QBs5FRbSWVQ92UKelWRV9hiTVXQscRp9mlJf58C2g/t/+zNGx61o LtoX1G61y68s9vmf88OLW62+NZh5caqvhhndjo48C0/Gu2ela7iiFnIwm1B55QcHUvM+ z6gJxpqHWnG8LAng/C1S7m3n5H/AIDE6/X1Qe+9lDxE9yjbzbhh481PWpI1R5DQ9fN2z LZDYCcfdcGydn+GV0EzqfyBcVAZEKP4b1WN+hhFbB3I3wvtANG6PoZmlKyoB3ztJzmSf n+Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=4P1f+nljiMEkfpYA7DgVlYNaTQppkx5yWsbpCU9OIBw=; b=OSuQ0R0jmnIvUTuyjLkUZwBVflKiJYUTAfI45+FrR200OzOf+QPc1VIa48WJ5UdVde LsWfLtiUk+zPXVsKX/1Vg+cgEbAckfqkUUcZPgGnljPj34AiPDUKjdi/TKZgMXVhnb6C KbKfUmEYYmHJWwGBdDeKHjP+O6EqzCAxuata6+yJdDJqcJXsJCXuEODQ6+tb/GgkvdCM j2t5fT2fbfs9fMdnK91UP6F7jp30cFznKQsTHjbxwlNZ2sroLkDOlLmkWFJEF+UNJBOP yOP/yTzOFWIN2O0wLEk0HObCJeBwaZxNBgoiYigSxddIqgXDZKFMSIo+LCIeZIMPSAjf AeUA== X-Gm-Message-State: AMCzsaVfgjfxoTRYibE1QE+QWNhij8l8CpZVC2M3LtjWv5Wn9G4Dv1DG X3T758E6doSKdGub+23k62xmPBsW8yVjLqalP0U= X-Received: by 10.223.163.208 with SMTP id m16mr4424424wrb.63.1508990007135; Wed, 25 Oct 2017 20:53:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.68.212 with HTTP; Wed, 25 Oct 2017 20:53:26 -0700 (PDT) In-Reply-To: References: <150543458765.3781.10192373650821598320@takondra-t460s> <20170915143619.2ifgex2jxck2xt5u@dhcp22.suse.cz> <150549651001.4512.15084374619358055097@takondra-t460s> <20170918163434.GA11236@cmpxchg.org> From: vinayak menon Date: Thu, 26 Oct 2017 09:23:26 +0530 Message-ID: Subject: Re: Detecting page cache trashing state To: "Ruslan Ruslichenko -X (rruslich - GLOBALLOGIC INC at Cisco)" Cc: Johannes Weiner , Taras Kondratiuk , Michal Hocko , "linux-mm@kvack.org" , xe-linux-external@cisco.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 28, 2017 at 9:19 PM, Ruslan Ruslichenko -X (rruslich - GLOBALLOGIC INC at Cisco) wrote: > Hi Johannes, > > Hopefully I was able to rebase the patch on top v4.9.26 (latest supported > version by us right now) > and test a bit. > The overall idea definitely looks promising, although I have one question on > usage. > Will it be able to account the time which processes spend on handling major > page faults > (including fs and iowait time) of refaulting page? > > As we have one big application which code space occupies big amount of place > in page cache, > when the system under heavy memory usage will reclaim some of it, the > application will > start constantly thrashing. Since it code is placed on squashfs it spends > whole CPU time > decompressing the pages and seem memdelay counters are not detecting this > situation. > Here are some counters to indicate this: > > 19:02:44 CPU %user %nice %system %iowait %steal %idle > 19:02:45 all 0.00 0.00 100.00 0.00 0.00 0.00 > > 19:02:44 pgpgin/s pgpgout/s fault/s majflt/s pgfree/s pgscank/s > pgscand/s pgsteal/s %vmeff > 19:02:45 15284.00 0.00 428.00 352.00 19990.00 0.00 0.00 > 15802.00 0.00 > > And as nobody actively allocating memory anymore looks like memdelay > counters are not > actively incremented: > > [:~]$ cat /proc/memdelay > 268035776 > 6.13 5.43 3.58 > 1.90 1.89 1.26 > > Just in case, I have attached the v4.9.26 rebased patched. > Looks like this 4.9 version does not contain the accounting in lock_page. From 1582253104323692310@xxx Wed Oct 25 17:55:47 +0000 2017 X-GM-THRID: 1578563211273176438 X-Gmail-Labels: Inbox,Category Forums