From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0CB6EB64D9 for ; Thu, 6 Jul 2023 14:27:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3331C6B0072; Thu, 6 Jul 2023 10:27:43 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2E2846B0074; Thu, 6 Jul 2023 10:27:43 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 183F58D0001; Thu, 6 Jul 2023 10:27:43 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 091F16B0072 for ; Thu, 6 Jul 2023 10:27:43 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 9FA6F1A06E9 for ; Thu, 6 Jul 2023 14:27:42 +0000 (UTC) X-FDA: 80981415564.17.06A3417 Received: from mail.itouring.de (mail.itouring.de [85.10.202.141]) by imf06.hostedemail.com (Postfix) with ESMTP id B7CF6180021 for ; Thu, 6 Jul 2023 14:27:39 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=applied-asynchrony.com; spf=pass (imf06.hostedemail.com: domain of holger@applied-asynchrony.com designates 85.10.202.141 as permitted sender) smtp.mailfrom=holger@applied-asynchrony.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1688653660; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FjeOSNbZ39XRaV4Nh0mZYymToA4qgvSCU7hGs0koNzU=; b=zBPfwIMNfT77ZIKZXtMjdkiewUNVxuMAWOBQoggwMvyme+UlVL8OzVAGcbM3aiw3iBy8ye 2BbZbHL6E5RktqP7DKS0/yyJtY2jY6jjht+uKiZ5f1j8ND6p4seaV2ecgszjbr+HQC4wST YPVtJRyFDWL5Wi3HdD/4neUaaPPKdIg= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=applied-asynchrony.com; spf=pass (imf06.hostedemail.com: domain of holger@applied-asynchrony.com designates 85.10.202.141 as permitted sender) smtp.mailfrom=holger@applied-asynchrony.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1688653660; a=rsa-sha256; cv=none; b=xLtGtvaSVeiMEZnuHqeltXBse7Eau6Hrg3Y/eZu9Q4lPyka6cQpxUJwy9tArF8Q+C7RY1m Y9i1RfOwkOup9co2qklu7TbIyOMCA1zmb/vuIY8gh1pF9ZWiP4Sjj0/jHA9tMo2iCa6D0G wTiSvzOkeAJ/nqW5EL+y6flLVW64ZQg= Received: from tux.applied-asynchrony.com (p5ddd7b2c.dip0.t-ipconnect.de [93.221.123.44]) by mail.itouring.de (Postfix) with ESMTPSA id 861AF3C80; Thu, 6 Jul 2023 16:27:37 +0200 (CEST) Received: from [192.168.100.221] (hho.applied-asynchrony.com [192.168.100.221]) by tux.applied-asynchrony.com (Postfix) with ESMTP id 4D7EFF01600; Thu, 6 Jul 2023 16:27:37 +0200 (CEST) Subject: Re: [PATCH v4 29/33] x86/mm: try VMA lock-based page fault handling first To: Suren Baghdasaryan Cc: Jiri Slaby , akpm@linux-foundation.org, michel@lespinasse.org, jglisse@google.com, mhocko@suse.com, vbabka@suse.cz, hannes@cmpxchg.org, mgorman@techsingularity.net, dave@stgolabs.net, willy@infradead.org, liam.howlett@oracle.com, peterz@infradead.org, ldufour@linux.ibm.com, paulmck@kernel.org, mingo@redhat.com, will@kernel.org, luto@kernel.org, songliubraving@fb.com, peterx@redhat.com, david@redhat.com, dhowells@redhat.com, hughd@google.com, bigeasy@linutronix.de, kent.overstreet@linux.dev, punit.agrawal@bytedance.com, lstoakes@gmail.com, peterjung1337@gmail.com, rientjes@google.com, chriscli@google.com, axelrasmussen@google.com, joelaf@google.com, minchan@google.com, rppt@kernel.org, jannh@google.com, shakeelb@google.com, tatashin@google.com, edumazet@google.com, gthelen@google.com, linux-mm References: <20230227173632.3292573-1-surenb@google.com> <20230227173632.3292573-30-surenb@google.com> <9a8d788c-b8ba-1b8a-fd79-0e25b1b60bed@kernel.org> <2f150512-e460-a9ae-65db-39dc54fe99d6@kernel.org> <04e701fc-2fd8-c4db-73d9-c86d4103641b@applied-asynchrony.com> From: =?UTF-8?Q?Holger_Hoffst=c3=a4tte?= Organization: Applied Asynchrony, Inc. Message-ID: <63dfddae-732c-5efe-648b-6ea622f2e64d@applied-asynchrony.com> Date: Thu, 6 Jul 2023 16:27:37 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: B7CF6180021 X-Stat-Signature: m94oaecj5ktmizk9t81af6uzt1yhncej X-HE-Tag: 1688653659-209155 X-HE-Meta: U2FsdGVkX18GC1bcK1bH8tfAxP+HMUJis3y7/orKHd01NvTr1TsViehKvr5gnyhw8KAzPIfKz5+kh6qEHPPnPWkWwnaOLn5zsFaFu6hX5GjEMcTK2+4DQ1Io3SNXgpYFf1oZd2PbGwZ60l/1/R5SFl5zz0ahHT14EeGxYcGhWgNgEokKZfXF7zMibEqg+vsUc5uMOwGI8OHEoF4D2vjcgA1vN7X/BEO+EMQjD5yd3TUWKjioQaT1lbFTMd35srNpnROKN34aYjuHoPPa6tPyhdOfpADGvWLyrTBvjNJ8hb7Fq59tHvwdm6n4E04UwyP7UOGn8zz2b6BcZ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1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 2023-07-06 00:55, Suren Baghdasaryan wrote: > On Wed, Jul 5, 2023 at 3:37 PM Holger Hoffstätte > wrote: >>> Jiri, Holger, would you be able to try >>> https://lore.kernel.org/all/20230705171213.2843068-2-surenb@google.com/ >>> and see if your issues still exist? >> >> Just in time! Not 2 minutes ago I finished rebuilding 6.4.2 + the last version of >> your patches on a second machine (old Intel Sandy Bridge workstation) to be my >> crash test dummy. I removed the BROKEN dependency in mm/Kconfig, manually set >> PER_VMA_LOCK=y and ... it seems to work?! Boots fine, Firefox seems to work >> (but no exhaustive tests yet). I will also rerun a few reboot laps, just to >> exercise this a bit harder and see if something comes up. >> >> Tomorrow I'll also try again on my Zen2 Thinkpad and will report back. >> >> Fingers crossed! > > Thanks! This is promising. Indeed it was, and still is. :) This morning I wrangled 6.4.2 + v4 of the patches into all my machines, enabled PER_VMA_LOCK=y, removed BROKEN and so far everything has been humming along just fine. One machine has been compiling for several hours without issue. My Zen2 thinkpad - which was previously really unhappy with enabled PER_VMA_LOCK - has booted a few times without hiccup, and Firefox has been happily roaming the interwebs for several hours as well. \o/ cheers Holger