From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f73.google.com (mail-pj1-f73.google.com [209.85.216.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0926BEDE for ; Tue, 31 Dec 2024 04:35:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735619746; cv=none; b=NMEx/HKb+h+y/qLf2OQSCYFKayGac6NYNMgtAttbBtfHrSe333cMZ5RjxI7UN15Npy2eE2LTN/4fLxYob1tgLCZZfmvK2NsriwiODTbCE3spMLCttPZVjC6BEkk7oq9s57EVe1U3pKplJUsQfqS1RkA67jccIBmVNpYlvXLRk3s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735619746; c=relaxed/simple; bh=kdG0cpNC8PG4G+56GMHBiH2O1yA4xIemO2+QepgIczM=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=ttFYBpJKkBGD/q/LOQwBYb+WJDkAl8LRpjlzdVYNVfOuSHivLOMK32UeKZw+71K9cm0q7d30dTUhMuZiZPKPpGwPTkhT9tz30Ea+kYUG+4keguHz513BxsEwzk1s/t+s3Al+l575NSEtNrBdqOhRrO+JVjBM56mI86KmMUf/NuU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--yuzhao.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=vbt03PUo; arc=none smtp.client-ip=209.85.216.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--yuzhao.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="vbt03PUo" Received: by mail-pj1-f73.google.com with SMTP id 98e67ed59e1d1-2ef91d5c863so13415823a91.2 for ; Mon, 30 Dec 2024 20:35:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1735619744; x=1736224544; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=ecuY/Hw7C4K7W6o4BvA/hjrdWJOX8V8p6rJ1OHpdMAE=; b=vbt03PUoybKCNYRkJU730/56tt4qks+3p9ELGQfV0SJqzRe8Z/InUC3edthVzPEiB6 m1wmIuIr4d8Ml1WDrRQurtQ/3eNPlnpzEjyGcoBZhHQY4rNISmC60hnUeihdhCBDF8FS Z5sWgEVyWYEqf9i+XSIcA4koKSmvFRUfrxNLrElJaMHsEXBhSaw15WwZQzP5iNE7Jx8/ cQhnhOEAsTnEqMKjeP+lhB5aGme59AOcPGr+wxAQ6XjRuQPOjfd5k6g1ur6800onb0cy zbkJfUfq/4VyRqMhDAfVQa9LOixjv+MvYzwO6SOyAZodmahvyT6mHsDqAQ2orjiei9Vp XXMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735619744; x=1736224544; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ecuY/Hw7C4K7W6o4BvA/hjrdWJOX8V8p6rJ1OHpdMAE=; b=VUxYcmBPnjZFCYKzffFI0K8jafzit9Ov1p3Hk+F/QXpaybVojoNP4qAfSlVp2nLIdS Z7r1iXCuXoCg/9esKbNrkBF9+jVIoXlrwfaviM8aDAHVnn90tGIUR+/qemyORSq/nVG9 F2s0De3xu6L6IsmiG0ByJl3nCqd5Lk8gs1/wTT1ZHkVEvlsLLxvvqRTVdpor42vs7IFp +mit2+q+NIbYuCA88ca6kPodHEPyuK0vJl+rbeKmL32zm3epX0l1qn9fJfiWOg6a16+s fphhQzRWbL2DiqEBoqJmtMkjO7fPA8iT7WVAugoTjvBLQMTLcQsVp8UG0pDnh1NGPHR1 ZvWg== X-Forwarded-Encrypted: i=1; AJvYcCUaEAMN6MOu1v8916w0RS9mwkxWlmOd1q/DjUpgADKdsQhl1Fq90b4E6KsNzGTgSImxkVnQEmq9tLa3sy0=@vger.kernel.org X-Gm-Message-State: AOJu0Yy6QnosI4sdeJgbYUUQNthLi42eN+ILmMShWAJWvQ9HCQVVMICL 5Led7vLivKcmvR9w+lDwXIPiSHA+JBNHMtkK9U+S8XpUfj0g3LE5FB3mlp4DQMp0Fz6m5cN2CHX kPQ== X-Google-Smtp-Source: AGHT+IE+6c7bwL1/eEGrUc5ZmNW2IaaxbIL0TH8SHChKNZBSg0mMqDqiMho/5ammNjRKDuD1jtg3aF5Chmo= X-Received: from pjbsc9.prod.google.com ([2002:a17:90b:5109:b0:2e0:aba3:662a]) (user=yuzhao job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90a:e18f:b0:2ee:aa28:79aa with SMTP id 98e67ed59e1d1-2f452dfcd7fmr52855174a91.6.1735619744314; Mon, 30 Dec 2024 20:35:44 -0800 (PST) Date: Mon, 30 Dec 2024 21:35:31 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.47.1.613.gc27f4b7a9f-goog Message-ID: <20241231043538.4075764-1-yuzhao@google.com> Subject: [PATCH mm-unstable v4 0/7] mm/mglru: performance optimizations From: Yu Zhao To: Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Yu Zhao Content-Type: text/plain; charset="UTF-8" This series improves performance for some previously reported test cases. Most of the code changes gathered here has been floating on the mailing list [1][2]. They are now properly organized and have gone through various benchmarks on client and server devices, including Android, FIO, memcached, multiple VMs and MongoDB. In addition to the syzbot regressions fixed in v2 [3] and v3 [4], this version fixes two more regressions: one reported by Oliver Sang [5] and the other by Barry Song. [1] https://lore.kernel.org/CAOUHufahuWcKf5f1Sg3emnqX+cODuR=2TQo7T4Gr-QYLujn4RA@mail.gmail.com/ [2] https://lore.kernel.org/CAOUHufawNerxqLm7L9Yywp3HJFiYVrYO26ePUb1jH-qxNGWzyA@mail.gmail.com/ [3] https://lore.kernel.org/67294349.050a0220.701a.0010.GAE@google.com/ [4] https://lore.kernel.org/67549eca.050a0220.2477f.001b.GAE@google.com/ [5] https://lore.kernel.org/202412231601.f1eb8f84-lkp@intel.com/ Yu Zhao (7): mm/mglru: clean up workingset mm/mglru: optimize deactivation mm/mglru: rework aging feedback mm/mglru: rework type selection mm/mglru: rework refault detection mm/mglru: rework workingset protection mm/mglru: fix PTE-mapped large folios include/linux/mm_inline.h | 88 ++++--- include/linux/mmzone.h | 99 +++++--- mm/swap.c | 70 ++++-- mm/vmscan.c | 515 +++++++++++++++++++------------------- mm/workingset.c | 67 +++-- 5 files changed, 445 insertions(+), 394 deletions(-) -- 2.47.1.613.gc27f4b7a9f-goog