Message ID | 20240821173914.2270383-1-willy@infradead.org (mailing list archive) |
---|---|
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 904A4C52D6F for <linux-mm@archiver.kernel.org>; Wed, 21 Aug 2024 17:39:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 272886B0164; Wed, 21 Aug 2024 13:39:25 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 223466B0165; Wed, 21 Aug 2024 13:39:25 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0EC9F6B0166; Wed, 21 Aug 2024 13:39:25 -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 DE3026B0164 for <linux-mm@kvack.org>; Wed, 21 Aug 2024 13:39:24 -0400 (EDT) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id A2B51A106A for <linux-mm@kvack.org>; Wed, 21 Aug 2024 17:39:24 +0000 (UTC) X-FDA: 82476964248.07.533DA0E Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf22.hostedemail.com (Postfix) with ESMTP id 2D9EEC0015 for <linux-mm@kvack.org>; Wed, 21 Aug 2024 17:39:22 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=uGE2KTY2; dmarc=none; spf=none (imf22.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724261946; a=rsa-sha256; cv=none; b=a7lLleElE3jNFQiLAJw7JhSZGc7LkEyFnMmcFjt3vD8od6oIPHHkj5ebHQbFrTZtplDYW4 b5YIN8AYcC/1EIR0KapRvB5/u/m2YNuMBqw4spKLeVFONIXKJZVsx2Wz7+auG5kwMh/JjE wnwG5gUrn14y747/JkRV8zpvgEi7d78= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=uGE2KTY2; dmarc=none; spf=none (imf22.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724261946; 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-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=gMT0ntG9weDLYA/Pb5eCE8hSB1+H6czr7dECdSn+IFg=; b=2+TR1gHuOH8m3ROsr1EjRzTyo8fXKKPwTCFK5ld2eXqDFBHM122MZYHVCZgVn+eodI9MEO CbpogGrLfPClTVCKCbugkhQwyeMga1Y6DXcIeJDfocvNGfwINeyHd7UrOSMrj9n0EWoV7L wlTFcD5iSDvqeQHKgsKMPZsKcjQo7Rs= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=gMT0ntG9weDLYA/Pb5eCE8hSB1+H6czr7dECdSn+IFg=; b=uGE2KTY2gFZ0HcUFMIVGQCmcnK 8XknWHhnIoT9WDxlCY7hq7jyE4mC7QuUv3cq2GLL7DbdVnuvqAywoW08PgUS7hcx9YrgDZBMxfvhV uBWrP2uTL9DFsvbQxb7pt0nwbJfPPP5jT/uLG4Oqdhb7FykCyzxnEX3sJxg7UDs6ZeXsRVoTBo/NJ CAMs9Ebxy6jit90Qm44/lWjH3A0vhz9pYERIdRq/OpSgOej/6xWDKjDuLjT0GrMFLh3a46NbbaLz+ sfQHwhtdmiDBJn2XdEfIGrKJnazCESO/Y+Xf0RCRg2P+YicWq/eiDzXfn7nC+0m2oMAAsL9hs7S0k p+8fxajg==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1sgpIi-00000009WdG-064S; Wed, 21 Aug 2024 17:39:16 +0000 From: "Matthew Wilcox (Oracle)" <willy@infradead.org> To: Andrew Morton <akpm@linux-foundation.org> Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>, David Hildenbrand <david@redhat.com>, Hyeonggon Yoo <42.hyeyoo@gmail.com>, linux-mm@kvack.org, Kent Overstreet <kent.overstreet@linux.dev> Subject: [PATCH 0/4] Increase the number of bits available in page_type Date: Wed, 21 Aug 2024 18:39:08 +0100 Message-ID: <20240821173914.2270383-1-willy@infradead.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Rspamd-Queue-Id: 2D9EEC0015 X-Rspamd-Server: rspam01 X-Stat-Signature: 4ydpakf9b8xuoebjdmzktwqid14ysnur X-HE-Tag: 1724261962-272094 X-HE-Meta: U2FsdGVkX1/e0fFKxEJPe7dc8EAbbWhz1Agwx8jjyGKXpIksy7+wNUBDJ6gaaiHSehj3kDmcUbJsxhBqOV+7SZA2mdbOPN2TnSsg2if/hUvvPCdDJJVhNR6UX+g+L3EMH8uK1tgZi7KS33KGfvAMesE7rTwtjH+zArq0UPKcdBhUdszhfJ16vqs6f9Ov69o14kgHZjcSZYgOhOl7SAjfMwT1n8whZF6ZA6LeLVe0HCprDh2kNFeb9Nwm0kTMGbCslSFy+5MxUauoa826yj1nUPtiV/c5v4qoRub6EnJTUuOZtFiqNAbAmqS0v0LjOTcpmfTDxAjGAQWOlNOeTlxnoxpKE/hRPIIyfYbKODVvN1/BOoMfffj0bmkrJVXi1c9oeTvemO6xMBQj+ZvCCPSxZc80+mIZip57AmqqLYBXe0TK+qLhn43V19SZvB23kvBDcitbGBCHmaZr/KAo4mTA2udg+kcLENOZOQiK0T0sZTyANafUuBdNZ0Mrbe52iDy+45+NSbyqM4RwSL9gQV1BhMFSKKLx0QnSSRD7yOJphC4HZZSpZ6ohlwVuv3C19ZwYfl1865lLt/QPcjQDeqDOAqVesLjnlJVVGjRwC+mh1+EEoqupETQOFUVRLgPpIFulw7N8m/B7maPDMFcUS5D0vFCnE3smWpWT0UdksCQL109ABSZt2oo1KmlqfBTg9qfjtGBgi/HEI36Cwf+MW4v9OsruuzZSPHKCHaXp5b7rkjRzCdzRkKmuYrmkGfEKUrNF1XUfOtc4DX8Ja2sIY8ZcaZWkQkpSSF7tEdoEtZAkqcdWxQ0JrDmJ9CybUSqY/Nk6uqOSuyphKyk+Y8X4W7HUmrXgeBRe+Tgnfo7npsJGOD7J3kllky4HOsaXeT6XKtp0tybmsE+phzbnEM9S6d1TxA5ekfvSc+jwbOd4r7OD8Fy6yM27ufZZ4jzK9EV+5Pf6YeWy394TaXkgZDM8/3Z lG7b1T4T HAyvJrbyHf9RFdphgR6Ul3OUYtCl2Ny2zJXfjc21MXO/XuzExyohbmXBxF0YBcZ8nNoeBIOJ/5u13Qp7LvseEg9t2C7Z7Pf/e54WnjBdJ4ESKkf9G3180ukTZMSm1c7pjSAwcoXp/J5cHcZ6lXLmviGGDZQhe86xcb154KcZCXS1/y+9P5ez3mqXWzfklMrvOtvVdXywZXPUtRbuiEFNhnsihM+j2c8tTh6vYeI2WJnX8pyQINvsRLfaz6yAdZvrxRklvxw+CZd2MvqJNnoUxZRxCtlNYJjK8PKsAB2BIdZBw5pA= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Increase the number of bits available in page_type
|
expand
|
On Wed, Aug 21, 2024 at 06:39:08PM GMT, Matthew Wilcox (Oracle) wrote: > Kent wants more than 16 bits in page_type, so I resurrected this old patch > and expanded it a bit. It's a bit more efficient than our current scheme > (1 4-byte insn vs 3 insns of 13 bytes total) to test a single page type. > Survives a simple smoke test, but I haven't done any specific testing > of these changes. not page_type itself, but - if we can get 24 bits for that field in struct slab, we can add the object size there and make __ksize() faster, which we can use to get actual numbers on amount of memory stranded by RCU (and faster __ksize() will no doubt be useful in other places...)