Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1222705rdb; Fri, 16 Feb 2024 08:47:15 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWRLhpj6rQC1Jl2T0J7BpW6S9ka9fDIC8HWqLDZcmsM7HJajodxpE5l+BGkLegL9/kOgwDbhz96GyhGzdkGfjmamURe1hDKq6+cN43vzA== X-Google-Smtp-Source: AGHT+IFGyUzcHSyFC1nZukxcNfEnGRttBbDzzO4Iiw2ZAx2EDTSra21SuIFrzBgySu+3TiOdF23U X-Received: by 2002:a17:906:22d4:b0:a3d:d141:4249 with SMTP id q20-20020a17090622d400b00a3dd1414249mr2063414eja.0.1708102035666; Fri, 16 Feb 2024 08:47:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708102035; cv=pass; d=google.com; s=arc-20160816; b=eWRvb/rANdyOwKdgPc85wCHHdtyaeFzBC/lCKTvsxaDHNMIeQ6erzgUAb/oFgXRfkz N6qPfb2CcvDTO/fTgQx9p/stfQ5FtUXalO+66PiQZ73K+BBSbXwqpJc+1SQZ56aJcMsO TI/KjUHiG28PuktlGF7wXfCdZyAXyMdkAdE5RMDrQ3s6cOjF3oClIqQsfIFQWetkaD7s 5kVVnjNO3o2LHijewrV4pooZrB0KunaF6QFFWN/cQjrZEPLqCb9abAQW3/jHPsRuOAAC 99G+DQEt9/MAI/yZh8MdgDW3O5HYGFdcoyfrOppRPkb0mgDNaRBkl2StfKrCZlFbbZJg 1DmQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=/5/86K2Z1hDqoZIqP7XxaxYaiR6tJyE2BrZYnn5TkeE=; fh=4RLfEXEHlQW+FP5AqCsQdOpjER7p26RvvT2k1hVZQU0=; b=Tjl0Rld6KgynFP+X022MfDvnu8Dh7dCX+u8fVLQOqrU2/9UWwBDdtoaYqKsWwuzvZK cLVXi3GIKBwailBHbn2S/9lYsgcoEqBuqR1dI7YsyolKhsAljUTB5rBtviMjI33VSk4p WUs+khI+WOxWcYuzBYXqa+KMPIXfHua1LYACO80TlBmXxmzQyAF/blPUzWjttw/zPFGr WyxViL6K0dH0DIAKU8khP7pavqIyltrKLEJA6TjwnXfcn2um70lrmnRXQujpYPKVCFZS b6bYW6e+s55ne/z706nBUfp/UDH+Lv5PI2Duens5dmblZbZ+Z+zEJVyQtGXOHiot+TO+ Dy+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=OyzLVMnD; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-68979-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68979-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y2-20020a17090629c200b00a3deb649c11si82911eje.581.2024.02.16.08.47.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 08:47:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68979-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=OyzLVMnD; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-68979-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68979-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5A0091F23396 for ; Fri, 16 Feb 2024 16:47:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BEEC3130E2B; Fri, 16 Feb 2024 16:47:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="OyzLVMnD" Received: from mail-yb1-f182.google.com (mail-yb1-f182.google.com [209.85.219.182]) (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 5E57678B58 for ; Fri, 16 Feb 2024 16:46:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708102020; cv=none; b=t9T9BiZDZXZwzJ2HVL0IGkrWUoAuYmILhZwX9DO/+sdMn3Q72m482ruwiDkP6+KLR/5tffzQRu8CK3tLhOpGOcmfOJWziHt9utoPKGpAbq4SQ2+gnMCbRS7N74n5IT3Dxtzr4vN9y1uan45YXCIHLshotuSJnpG/2BJUI5fkwPA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708102020; c=relaxed/simple; bh=/5/86K2Z1hDqoZIqP7XxaxYaiR6tJyE2BrZYnn5TkeE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=P6MVONZNMTNLbeetHd7SMk7asAHta2HXgbqPtCyscZ8vMIYkBDuhplzMCmruHYj9d5zOiu0RoqLGnl8eKAbkzTHsIu4qr4f9F+0pONhh9EYybVbD1IvIAMdlgabtRuLcKn6l76LwLTOpSWGubhzUjPwL8xyEJTyoWCV0RcGp4n8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=OyzLVMnD; arc=none smtp.client-ip=209.85.219.182 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=google.com Received: by mail-yb1-f182.google.com with SMTP id 3f1490d57ef6-db4364ecd6aso962164276.2 for ; Fri, 16 Feb 2024 08:46:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1708102018; x=1708706818; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=/5/86K2Z1hDqoZIqP7XxaxYaiR6tJyE2BrZYnn5TkeE=; b=OyzLVMnDCE6jz4Q+qffCh6Gh4iWQJtQHHBHNJHFU9nOqqh5XY5J548bB3HMg+pqoZE wj46/z6t6lXNQh9dj8V54j9KaGAle7I+Y7tvVVaN6koEplIwc3/Xx1nySgpkoEb5Im2/ DE5Vow6Od+e2urKCrffkKdJ5Qtu6IHsfBCg3S167TZSkhQfQDYF0KCEfttJy2vZkewdA 4L29cUOQiSv+Ytc+NB/3Xy4sXBCAz40WEeqswQISFsbw4tgpeCiG9Q89YvDZYkg3VQdq VWlbGw4TJ/ibTkC5oEnw2jWyVxhd5z9qKbWOk/VDIZStfJ9x4gQwDNeyxUREYQ+UlLVT hwDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708102018; x=1708706818; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/5/86K2Z1hDqoZIqP7XxaxYaiR6tJyE2BrZYnn5TkeE=; b=wCwlnk3NgHGsXzJL/NCax+hVWC0kBapDPB//XbyNo/RNQip/465lxy8+voYbVLVg3x lQEHGkbaNhvFyyK5De1M3taa5YlC5o2J6avX8j1uv/HwHiVe1izUqjeh6JUY9Xny4c7b xplqVpkoelrfu/sZm/vcUtsQZHglAMjYUEhhxJyMXYKpBm+981JiBty+KxX8ub4bdHMu xPPp0PCxxExisNLMXtvG3XDdUb/1nBa9vWhl6ulK5WtF0szEKsInY/57TjIdnQ2k2qmI ji21M9/u6i08mF7EdmkCEAhE8W6f++k5nbARWw0B0g+LwvlKhl8mWRY9zf2f53m3L1tA 8KfA== X-Forwarded-Encrypted: i=1; AJvYcCW3hWyGRSO7wigteZZ4poVVGGtw1V1O2ToknrcxXzEleNUBIowJ8dTipLBqqpP0vkE+iOt3YydDAPdcV/JaOXra7bN3KoYfi6qlPZHa X-Gm-Message-State: AOJu0YzewHxsqZiG6qheRIV5mkbNGdK5jzwE4RJjOviQ84MQrLycu+Fd re+jSiPeuFqXlBPM25JX7w3zYB2YTDj/7w9aYZFtDZ2U+5zsUk4lIe4w/Fe5lTgXP58bc8Z6Mw5 y328zDifqjAsXXaBR28efjLRSJGIHfp8b3ZsZ X-Received: by 2002:a25:ae44:0:b0:dcc:6894:4ad4 with SMTP id g4-20020a25ae44000000b00dcc68944ad4mr5406936ybe.56.1708102018033; Fri, 16 Feb 2024 08:46:58 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240212213922.783301-1-surenb@google.com> <20240212213922.783301-19-surenb@google.com> <2e26bdf7-a793-4386-bcc1-5b1c7a0405b3@suse.cz> In-Reply-To: <2e26bdf7-a793-4386-bcc1-5b1c7a0405b3@suse.cz> From: Suren Baghdasaryan Date: Fri, 16 Feb 2024 08:46:47 -0800 Message-ID: Subject: Re: [PATCH v3 18/35] mm: create new codetag references during page splitting To: Vlastimil Babka Cc: akpm@linux-foundation.org, kent.overstreet@linux.dev, mhocko@suse.com, hannes@cmpxchg.org, roman.gushchin@linux.dev, mgorman@suse.de, dave@stgolabs.net, willy@infradead.org, liam.howlett@oracle.com, corbet@lwn.net, void@manifault.com, peterz@infradead.org, juri.lelli@redhat.com, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, peterx@redhat.com, david@redhat.com, axboe@kernel.dk, mcgrof@kernel.org, masahiroy@kernel.org, nathan@kernel.org, dennis@kernel.org, tj@kernel.org, muchun.song@linux.dev, rppt@kernel.org, paulmck@kernel.org, pasha.tatashin@soleen.com, yosryahmed@google.com, yuzhao@google.com, dhowells@redhat.com, hughd@google.com, andreyknvl@gmail.com, keescook@chromium.org, ndesaulniers@google.com, vvvvvv@google.com, gregkh@linuxfoundation.org, ebiggers@google.com, ytcoode@gmail.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, bristot@redhat.com, vschneid@redhat.com, cl@linux.com, penberg@kernel.org, iamjoonsoo.kim@lge.com, 42.hyeyoo@gmail.com, glider@google.com, elver@google.com, dvyukov@google.com, shakeelb@google.com, songmuchun@bytedance.com, jbaron@akamai.com, rientjes@google.com, minchan@google.com, kaleshsingh@google.com, kernel-team@android.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux.dev, linux-arch@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-modules@vger.kernel.org, kasan-dev@googlegroups.com, cgroups@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Feb 16, 2024 at 6:33=E2=80=AFAM Vlastimil Babka wr= ote: > > On 2/12/24 22:39, Suren Baghdasaryan wrote: > > When a high-order page is split into smaller ones, each newly split > > page should get its codetag. The original codetag is reused for these > > pages but it's recorded as 0-byte allocation because original codetag > > already accounts for the original high-order allocated page. > > Wouldn't it be possible to adjust the original's accounted size and > redistribute to the split pages for more accuracy? I can't recall why I didn't do it that way but I'll try to change and see if something non-obvious comes up. Thanks! >