Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1678627ybi; Sat, 1 Jun 2019 02:28:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwMJKaOSCBkG1qpruVmwEclPtPpGl1JfQCTQdNRhZcCNwZ9O3JQ7yFXLPzV5hiRdlk9/SZ X-Received: by 2002:a17:90a:8902:: with SMTP id u2mr14509282pjn.96.1559381300479; Sat, 01 Jun 2019 02:28:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559381300; cv=none; d=google.com; s=arc-20160816; b=ubFei1lFRSWrkYosNdgik9ED0AIcl6gocgkXraM3rIC0MASablYNed7T8mi+4kuEy6 M6izc7rNnL7C/uphxvxW5HxW4HlSf5B7qvYTPQfYAudapY3iw7gDsBAo3VnZM6yVw9k2 p1gndw7+3WYQGRbTONn2DRqBvkdATvjGBbw2Z4vapPQgPC7Z2nbYHn6iexYcCGkCcSE3 qWYgh74B6PT6QfoIW+bTL9EvJICzQTnLuiGNZTPb8BwYPSay3Tp83yneAEq/OxftK1pa NpPu1FfKVZ8zK7UvsS0Qklz+BjrLYCp6o4K5O6wStT+yC6olCcfSXuEMmnqA5emlSMiE SCdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version; bh=5pig1BG4oJSSsD1C0av7TVjNBX6rPyyXl3xcxS2azLw=; b=FT7VX8fLrzJGFm3leausDau8gpXLeIkvTqZ2NdNwbxVRNApKGHhoMkuM5Bdo+PoaGc lJ1hzgyC5f94bZBhicPcl5Ll0HSB9wPAPiZfbfqK6E9P00xRK+FqGnGikkbMyGNKbpsS seksg4RbG+23mYWtS2GRPrXWh6p55ZRcG+nMQZ2eYC3qs3YUSXY2E9lQU+93ZR+Yd9XN XfBuVGWG2LEvSn3bJdjPkGB/OzyJ7hysvaAnnJbpNElE4Ey2Y8Qsp3g5mAPWZuv67bAy +crVKX9ANHrJfVOUGeJ0o+EelGq/5jv/vJbDHiqwmXjgVfvfzygoyGVxVV3wOyu9PblD ZyrQ== 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 b36si9193811pla.353.2019.06.01.02.28.05; Sat, 01 Jun 2019 02:28:20 -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; 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 S1727278AbfFAJ0w convert rfc822-to-8bit (ORCPT + 99 others); Sat, 1 Jun 2019 05:26:52 -0400 Received: from mail.fireflyinternet.com ([109.228.58.192]:53427 "EHLO fireflyinternet.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727158AbfFAJ0u (ORCPT ); Sat, 1 Jun 2019 05:26:50 -0400 X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=78.156.65.138; Received: from localhost (unverified [78.156.65.138]) by fireflyinternet.com (Firefly Internet (M1)) with ESMTP (TLS) id 16757666-1500050 for multiple; Sat, 01 Jun 2019 10:26:25 +0100 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT To: Andrew Morton , Matthew Wilcox , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org From: Chris Wilson In-Reply-To: <20190307153051.18815-1-willy@infradead.org> Cc: Matthew Wilcox , "Kirill A. Shutemov" , Hugh Dickins , Jan Kara , Song Liu References: <20190307153051.18815-1-willy@infradead.org> Message-ID: <155938118174.22493.11599751119608173366@skylake-alporthouse-com> User-Agent: alot/0.6 Subject: Re: [PATCH v4] page cache: Store only head pages in i_pages Date: Sat, 01 Jun 2019 10:26:21 +0100 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Matthew Wilcox (2019-03-07 15:30:51) > Transparent Huge Pages are currently stored in i_pages as pointers to > consecutive subpages. This patch changes that to storing consecutive > pointers to the head page in preparation for storing huge pages more > efficiently in i_pages. > > Large parts of this are "inspired" by Kirill's patch > https://lore.kernel.org/lkml/20170126115819.58875-2-kirill.shutemov@linux.intel.com/ > > Signed-off-by: Matthew Wilcox > Acked-by: Jan Kara > Reviewed-by: Kirill Shutemov > Reviewed-and-tested-by: Song Liu > Tested-by: William Kucharski > Reviewed-by: William Kucharski I've bisected some new softlockups under THP mempressure to this patch. They are all rcu stalls that look similar to: [ 242.645276] rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: [ 242.645293] rcu: Tasks blocked on level-0 rcu_node (CPUs 0-3): P828 [ 242.645301] (detected by 1, t=5252 jiffies, g=55501, q=221) [ 242.645307] gem_syslatency R running task 0 828 815 0x00004000 [ 242.645315] Call Trace: [ 242.645326] ? __schedule+0x1a0/0x440 [ 242.645332] ? preempt_schedule_irq+0x27/0x50 [ 242.645337] ? apic_timer_interrupt+0xa/0x20 [ 242.645342] ? xas_load+0x3c/0x80 [ 242.645347] ? xas_load+0x8/0x80 [ 242.645353] ? find_get_entry+0x4f/0x130 [ 242.645358] ? pagecache_get_page+0x2b/0x210 [ 242.645364] ? lookup_swap_cache+0x42/0x100 [ 242.645371] ? do_swap_page+0x6f/0x600 [ 242.645375] ? unmap_region+0xc2/0xe0 [ 242.645380] ? __handle_mm_fault+0x7a9/0xfa0 [ 242.645385] ? handle_mm_fault+0xc2/0x1c0 [ 242.645393] ? __do_page_fault+0x198/0x410 [ 242.645399] ? page_fault+0x5/0x20 [ 242.645404] ? page_fault+0x1b/0x20 Any suggestions as to what information you might want? -Chris