Received: by 10.223.185.116 with SMTP id b49csp5055172wrg; Wed, 7 Mar 2018 05:46:58 -0800 (PST) X-Google-Smtp-Source: AG47ELu0lQpBJshNWNKbb595pdMmjzSp7zaU7hmUP8+bf2ir6BVNQGe50PYJdJRaCY8cd9ebVPRd X-Received: by 2002:a17:902:9686:: with SMTP id n6-v6mr12568766plp.331.1520430418822; Wed, 07 Mar 2018 05:46:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520430418; cv=none; d=google.com; s=arc-20160816; b=gEYuvGQ0sTEi+bGGPvt+aW7IRwwPLCELI2MbHLv60kO+9XD7MdFbY4THld9l2kjT7U bnJjn5HRwFr/85ssWEiUpWxpkEo8WojwnqauxVBV0ZeYiSmfIf+cZlTNzN5g58ayamnn rJnhUY2udQQFq/rRtbOe81dAewUx7+3Hij8NI3dJLfFd3ifVItuZ71HvwBnTlgNaC63x kmNlgB3Pkylx16giATsFafwP7omajAdHg+mbDH94dHLrYlml9VK4sQC/OngmRfyA6w65 nsfJTFIVxUcTkbPP13JR+04uXk57YNAMzlG912on5geF8YY1Ci6MyAcfRWCV5pND6h+7 fBLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=jE4oh2PK5uyc1T6ix1fI0ftpSHoFgtYOZWvFWz+JPyI=; b=zsZhOGAMeJU6GbKtyjiLg0xn5Pw4we2qOHGeynKKsNm5JnA7FpWtiG7ZJJ+xu0qH+u S0RMIRO7d6vVCXZ84nKFENr1Sxs9kudaMQ7X+v5prDYZoHlQmeZ4Ekstu5xhb3kZaF3e ZMQbHL/XxR4cZTMi+rTYm6drntfHSo4Sk6e/mgXj/KbXJlU4Iu25xo9OLTJIg0Hry6Vq +yuv0Zt02Vw40c51O3R/DYJ9nLiqZnTh2oazWziC8OY21FPIFAkF4l+pGffs6P1BKrXd x9TgwuQC9eoOHHqGG+dTgusy+Lo4lieds75Icfte7obxH3QGzsh4RoMiMdIN4sffAfNg aQwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=GDlNNRqv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s22si13630628pfh.340.2018.03.07.05.46.44; Wed, 07 Mar 2018 05:46:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=GDlNNRqv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754394AbeCGNos (ORCPT + 99 others); Wed, 7 Mar 2018 08:44:48 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:59042 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751150AbeCGNor (ORCPT ); Wed, 7 Mar 2018 08:44:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=jE4oh2PK5uyc1T6ix1fI0ftpSHoFgtYOZWvFWz+JPyI=; b=GDlNNRqvIDAJ8snzfexvwk/JB rD7GyJJXh5Mre5ZKWpFa+gXV24ST3M8KmIckyZv/9ASBlfLSa2IJUHNfA50kQw9dPZXbDVjctBBV4 Xj/l0ut9ejxFqooQ6O/OJqeGoj1ecVG6s/BDjPkZGgMcnGvTF/d3vDj4Ny4FCsQCwWraZJ82jSS8Z 7AQM1My8U9xnBDr89iz+Z7Gshnp7w76A/5st95U0b8jff+pIUWoeD+G5g+0J2u1HtIh5+wKhoFKwb UIYSId+O8NEYPl3wINtTjjc5z6W1MxHultaUVmJ1s7Hz4G6fA04Scz0F/DV9/DxL9S5koMaWfGb10 TgApp57lw==; Received: from willy by bombadil.infradead.org with local (Exim 4.89 #1 (Red Hat Linux)) id 1etZN8-0008WJ-2B; Wed, 07 Mar 2018 13:44:46 +0000 From: Matthew Wilcox To: linux-mm@kvack.org Cc: Matthew Wilcox , linux-kernel@vger.kernel.org Subject: [PATCH v5 0/4] Mark vmalloc and page-table pages Date: Wed, 7 Mar 2018 05:44:39 -0800 Message-Id: <20180307134443.32646-1-willy@infradead.org> X-Mailer: git-send-email 2.14.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthew Wilcox This patch set changes how we use the _mapcount field in struct page so that we can store an extra 20+ bits of information about why the page was allocated. We expose that information to userspace through /proc/kpageflags to help diagnose memory usage. It can also help debugging if we know what a page was most recently allocated for. Changes since v4: - Added Kirill's acks - Fixed spelling (Kirill) - Allow a few extra bits to be used in page_type. Matthew Wilcox (4): s390: Use _refcount for pgtables mm: Split page_type out from _mapcount mm: Mark pages allocated through vmalloc mm: Mark pages in use for page tables arch/s390/mm/pgalloc.c | 21 +++++++------ arch/tile/mm/pgtable.c | 3 ++ fs/proc/page.c | 4 +++ include/linux/mm.h | 2 ++ include/linux/mm_types.h | 13 +++++--- include/linux/page-flags.h | 57 ++++++++++++++++++++++------------ include/uapi/linux/kernel-page-flags.h | 3 +- kernel/crash_core.c | 1 + mm/page_alloc.c | 13 +++----- mm/vmalloc.c | 2 ++ scripts/tags.sh | 6 ++-- tools/vm/page-types.c | 2 ++ 12 files changed, 82 insertions(+), 45 deletions(-) -- 2.16.1