Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp150344ima; Sat, 20 Oct 2018 04:43:59 -0700 (PDT) X-Google-Smtp-Source: ACcGV6124H28yTz/ULtta7DjOqi5+oJJYSHdXicQlG6jgCzZNXA+1ur8LRHthgCL4DDHbpbFMrHZ X-Received: by 2002:a63:6086:: with SMTP id u128-v6mr13929934pgb.323.1540035839317; Sat, 20 Oct 2018 04:43:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540035839; cv=none; d=google.com; s=arc-20160816; b=IglebzAwq5Mq8kO2+5egLNTVJ7sATQ/Ru/IxDgrE/VQOzJhy1VkWjSFGB8uFEdICvY TtCjzlDjbArYeLzxeDg0gPRyoHSZR+rrPYWxttKNJzQyZeWJqxMGboGoOFhLkvUXRFPL hYsZIbK15HuvYSg08DkLYdem5rgVSh6meVdhGiTc+IWMV3YyFD0y9PosHpdidcIexcC9 lUntPd5h5L5o2D55zKbAMyWcwz2JR976g2sAnniMxEUOnHxiYTl0joB1pBJuSrKTyi0B WRpgUnfDzvXBUmyv9gbfL0jQKCYOMTn/OIhhAqKAvqqygIFTR+xjZtCwkUqlopxOlRjU o8BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :mime-version:dkim-signature; bh=Fsjs6Vx6DG41/3EUm2VSQUxGo+m9up1+YS8XV7B6P3k=; b=ailoPajAjtk5KvxQ/4OXC4zPBv0X5mnG5iXodG4dOCeczlJOBVNifu5S59AcMVsjR5 MBcUbBv+KFZz182+fMXOa2y+F9IuLuQsTss3xtjTtSkz3kt7WifsZSk6wma/OaqLbSm9 GtHggjC+Xb4MCIgdA2vfgqxz1LeERHOwBWS04tLWWAnSdtoFg0EeFkI2sG778tdACPD1 VZ7/cxoIgCqu/siurUEzsMGPOoPL8yXEtbsF6/u5QsylvPnrD6NvoUsDajS5gqAq7C+e nGB58GjVgqXSJq28ld1OgCUN73veOHdQKo5InehcmT3rDYdDwbUPmEZmECtZsgtIs3us Z+RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="EpE5Gd+/"; 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=QUARANTINE 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 e13-v6si26783340pge.0.2018.10.20.04.43.44; Sat, 20 Oct 2018 04:43:59 -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="EpE5Gd+/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727447AbeJTTwD (ORCPT + 99 others); Sat, 20 Oct 2018 15:52:03 -0400 Received: from mail-it1-f180.google.com ([209.85.166.180]:55962 "EHLO mail-it1-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727178AbeJTTwC (ORCPT ); Sat, 20 Oct 2018 15:52:02 -0400 Received: by mail-it1-f180.google.com with SMTP id c23-v6so7122614itd.5 for ; Sat, 20 Oct 2018 04:41:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Fsjs6Vx6DG41/3EUm2VSQUxGo+m9up1+YS8XV7B6P3k=; b=EpE5Gd+/rUYe7u9y0aTUj1arxvgEigKPU/G/WkRxihjeYck7+WSiZD/2wwU9i+r2fA WIu/zehQo/6vxAwNQdXggRhkxwqQIzJUEHgPFcpIIS7GapjQBLfESFpzZzfMeeR0vuum HEvdDPvLnOWwp/kbFs77kY0UXuq0uhZEHvzLwx+lflrVyFNJU4GHvGx/lNHdEqGLW226 m2zdOQWB/z3mWbH7+M8Fdgvqk/f8qjFrzQWWnmUJMwPXeBDWXZ5V3DiJzfUC1LkgkkX6 WTmKVv7W1nvChGMQR9hecAoUsutKATfSClNN6hD7X2LXNcQyz7bIzFrShl4t5Fi11VkN pY7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Fsjs6Vx6DG41/3EUm2VSQUxGo+m9up1+YS8XV7B6P3k=; b=gaEMDeHhvceE2gtxKpJvQkQ9pDksDNTRSbYsm1mdb9ffwz+O9z7ALYedBM+ZEZ9B7o zRkYQ5B11tSa9bS1siKCTzkOBm007edGFiH5sWdUIBWF+8yXo7uFSqBlLgUPO3zX0k8C R0O4VOeoEmI7gSwlCFwo0WHcPrpcemuv0P0IFadU0pzdU0XVRI2qet1HbUPxwLbaUltE Q0/Eyjl9Ci/cXyCY+T8TVcqf/nbiyFkfBWKOzPy7J8IX7qamRi4cEhCU7TpSoKQYfGu0 ECeIbWSyDRn5lRmpSuxB1OOaRoAgS1DNpxFnGleSxcNQG037ytbRksACvjES1hO3m/pA H8dw== X-Gm-Message-State: ABuFfoigfHKMqPgQmkIacOLNQfQzMz4kAWPBiWCXzvi6FVki0RPvwxOO EnYwwbPMO/j1V6+c8ZUp9oHSjSWQaOmvQqmIzxMPIco= X-Received: by 2002:a24:c6c3:: with SMTP id j186-v6mr5194633itg.105.1540035711725; Sat, 20 Oct 2018 04:41:51 -0700 (PDT) MIME-Version: 1.0 From: Spock Date: Sat, 20 Oct 2018 14:41:40 +0300 Message-ID: Subject: Memory management issue in 4.18.15 To: 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 Hello, I have a workload, which creates lots of cache pages. Before 4.18.15, the behavior was very stable: pagecache is constantly growing until it consumes all the free memory, and then kswapd is balancing it around low watermark. After 4.18.15, once in a while khugepaged is waking up and reclaims almost all the pages from pagecache, so there is always around 2G of 8G unused. THP is enabled only for madvise case and are not used. The exact change that leads to current behavior is https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-4.18.y&id=62aad93f09c1952ede86405894df1b22012fd5ab