Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1735393lql; Wed, 13 Mar 2024 06:58:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVZI8VJwGAn5zNkk2OnA+CsIxJFKMckbYqx5fr6QAm/p617HIMvJ2b0nhhXKHOPUXL57nIsGL7wJajbbmS+SfBDbNcbfPBAenknAEz5Mw== X-Google-Smtp-Source: AGHT+IHLanZEh2hfZ5G7BmiRSmGxzE34mcsK4EjGtYlvwGLX304N7skPjU33AA3kINsKqV4ft4GC X-Received: by 2002:a2e:9946:0:b0:2d3:fa45:be65 with SMTP id r6-20020a2e9946000000b002d3fa45be65mr8147834ljj.50.1710338337804; Wed, 13 Mar 2024 06:58:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710338337; cv=pass; d=google.com; s=arc-20160816; b=TST92mY7z2ns5MbMOEdpw9bzegngb3bhnuKilcF+k2t2AM8VJPryTD2lem878ULJYF 5+a1fV/s1JZcMsBhZ1QUFhTnI+CUDS0VNDB/dZpVL0nhOKy2OuolJHkNigb/UN/08nRY WaMmC581wAYDWQnPJf5tddMxG4fCz7OX6cq2w47dhlJT++Fxg1Z9OdjvX9Gj4BeALVHe 9/q+J818L82fbhE5TcPXc0gg6zbu17z7hNKkVB7en+CdocD2Gy4yaOA+6IVfs4DjCK0g TTOgiFwpwHt4kWxbq4Bjd7NzCCOVvTAlxzzftf/IRU5+f+r3q2z8Fa3EaUX3xYAwzfw1 ugew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature :dkim-signature:dkim-signature:dkim-signature; bh=TpodtcSm7Y+i7tvMHn/lmmFNHmbivL/zCj7us76Dghg=; fh=Q5QK3mEHpiSw50+k3en+vN00KR+pxr1dxz1JLzJfHmQ=; b=fCX84arXVF+BQtgB9yTHvaBX6n0zquT3ERYRr1RTdxwHa6V9RqaXN1Wjxmt6xlZwqx BTuDpFbkISgAmNQsB7zsDfujNjHF4wEpERC8Wb/OIZXt3gfWphty102LxC+rqb68NTw2 XGjJ10G9oYUVjf+5lYWf0FZnnQ9BI8NV+W/Hwy+vukKIy13lNjzxUeRduK1KqbVjEdj3 h1mGArS5GLA+WUMmkzXi1LjrcGTi7MASmdr0kViol8sxwEqAVY+KsyxaYlT4mq4NWuAt qmoYRuj8Ko6fWRq0+htyX/HwVMla2KAS/p13+j3Z2iUUHCvQOac6Lo/nfFul48biP6iw RusQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=EXHDhthA; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=KRdmYukr; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=+EHiFIIa; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-101573-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101573-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b14-20020a0564021f0e00b005688a57e287si417163edb.472.2024.03.13.06.58.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 06:58:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101573-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=@suse.cz header.s=susede2_rsa header.b=EXHDhthA; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=KRdmYukr; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=+EHiFIIa; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-101573-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101573-linux.lists.archive=gmail.com@vger.kernel.org" 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 58D9E1F24A93 for ; Wed, 13 Mar 2024 13:58:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA53B4503F; Wed, 13 Mar 2024 13:58:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="EXHDhthA"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="v2DZR+Pn"; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="KRdmYukr"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="+EHiFIIa" Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (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 F2FB541A80; Wed, 13 Mar 2024 13:58:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710338321; cv=none; b=QrVmd1vYUi+YgOXN0drleWa0wS4VNB1CJcpvqMgN3g4w3ATehEsTCH1QdUa6SZfrWakLu6uMDFaVfaFroJOv9VJbBsJ65EwxVUJAYvMp2k3GFWtULG0BBqv1ZKn9MoNVjrm/FMa3ijuOoSWXH9kKyI67WoCc60mE6Af3Iqa7SGQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710338321; c=relaxed/simple; bh=Z3KhrC/EIoz1PvYW1+d/mVEz0BhSAC14Uol/lITTdSg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Fo0foCtcM5itQCCiORRwpIcPPMVU3E+VB9+7FUInaOOQePnDZBwupXu3grx0tQ2w4GgRsQLwlSa/HmXPfbrQ+mcoUDKu7LfAK4J7FZK2Cs3zhuF/0cfUO3s0SLB/X9JCuSAOJr7isPiotGqZN4S+x6Ye1Ktxr2BCygHMf2i0DYE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz; spf=pass smtp.mailfrom=suse.cz; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=EXHDhthA; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=v2DZR+Pn; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=KRdmYukr; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=+EHiFIIa; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.cz Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 4BE9B1F7A5; Wed, 13 Mar 2024 13:58:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1710338318; h=from:from:reply-to: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=TpodtcSm7Y+i7tvMHn/lmmFNHmbivL/zCj7us76Dghg=; b=EXHDhthAOdTF/4FiRpRhjSsn/UE0TiNFcqw0j9akuMcppPb7qHAgmMTT2HD+bDZY5wPm34 62sdPpIfJC6heEh9NE+cs2NhmRyMq0PQNOuESvdoT3S46/KMLFA9BooHU/nno+blqr7BuH 1uAERRy2p2lLFM9Zh3YvpxwT3G2AFS8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1710338318; h=from:from:reply-to: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=TpodtcSm7Y+i7tvMHn/lmmFNHmbivL/zCj7us76Dghg=; b=v2DZR+Pn7qXslcaUG1+J/su73lDW9lBtfhgb4rSZhUB7VQhNUaGlniU4AdmxS5p40pzH6M VmSwv1UMhZEniOCA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1710338316; h=from:from:reply-to: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=TpodtcSm7Y+i7tvMHn/lmmFNHmbivL/zCj7us76Dghg=; b=KRdmYukr4SWjt2WXSOz3A1xvV873TgzgS0CFzsS9B9hVTWEDp9Jd97iqsbwPgqFsw9xA0Z CD6vP5+Ix+Vyz98ZBr28pJVWq7/LDHlHFzQI5uO24AA98ul0nrXa6Uze/o/CGMTVbRxdHa 93nVw97wMt31ZvvUvUg2QoEpr5svL3Q= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1710338316; h=from:from:reply-to: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=TpodtcSm7Y+i7tvMHn/lmmFNHmbivL/zCj7us76Dghg=; b=+EHiFIIayv4RJr/ipvCSGM2nc+YOipoKwBxBfaaHATdoE/s0MyUg0I5cdZJkbkFoy5aCXR 5OgSulYDclpmrFAQ== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id A23021397F; Wed, 13 Mar 2024 13:58:35 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id aqbWJgux8WUXVwAAD6G6ig (envelope-from ); Wed, 13 Mar 2024 13:58:35 +0000 Message-ID: <6dbd1faa-16ec-4058-b01c-98f25053303e@suse.cz> Date: Wed, 13 Mar 2024 14:59:16 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 06/37] mm: introduce slabobj_ext to support slab object extensions Content-Language: en-US To: Suren Baghdasaryan , akpm@linux-foundation.org Cc: 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, penguin-kernel@i-love.sakura.ne.jp, 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, jhubbard@nvidia.com, 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, aliceryhl@google.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 References: <20240306182440.2003814-1-surenb@google.com> <20240306182440.2003814-7-surenb@google.com> From: Vlastimil Babka In-Reply-To: <20240306182440.2003814-7-surenb@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Authentication-Results: smtp-out2.suse.de; none X-Spam-Level: X-Spam-Score: -2.77 X-Spamd-Result: default: False [-2.77 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; XM_UA_NO_VERSION(0.01)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; BAYES_HAM(-2.98)[99.92%]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCPT_COUNT_GT_50(0.00)[76]; DBL_BLOCKED_OPENRESOLVER(0.00)[soleen.com:email,suse.cz:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_CC(0.00)[linux.dev,suse.com,cmpxchg.org,suse.de,stgolabs.net,infradead.org,oracle.com,i-love.sakura.ne.jp,lwn.net,manifault.com,redhat.com,arm.com,kernel.org,arndb.de,linutronix.de,linux.intel.com,kernel.dk,nvidia.com,soleen.com,google.com,gmail.com,chromium.org,linuxfoundation.org,linaro.org,goodmis.org,linux.com,lge.com,bytedance.com,akamai.com,android.com,vger.kernel.org,lists.linux.dev,kvack.org,googlegroups.com]; RCVD_TLS_ALL(0.00)[]; SUSPICIOUS_RECIPS(1.50)[] X-Spam-Flag: NO On 3/6/24 19:24, Suren Baghdasaryan wrote: > Currently slab pages can store only vectors of obj_cgroup pointers in > page->memcg_data. Introduce slabobj_ext structure to allow more data > to be stored for each slab object. Wrap obj_cgroup into slabobj_ext > to support current functionality while allowing to extend slabobj_ext > in the future. > > Signed-off-by: Suren Baghdasaryan > Reviewed-by: Pasha Tatashin Reviewed-by: Vlastimil Babka