From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7BB7E3C47A; Mon, 29 Jan 2024 04:32:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706502733; cv=none; b=SZr5c9EyMtrq7X3NcWzWK3p8fhwy+lAhf1Vm4c2mwGvs/ePYzRTxMJYJ1wbYkyISwj7rwnlFLn9DP1F/pckqhcvnq2J6/7Cti8bpQZRfP1E/tR4wJdrwCHC14O+Mxd+t6KuxzAFtZsI52R+Hsoadx81qoyHE3aYCbQpZUYmHVzg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706502733; c=relaxed/simple; bh=vnBCw+VEsZoMU7uXPkz67lpbjtbkGDarP0i7dAApyj4=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=NhBXoMBjM73xUg9IjM1tpSs8RzrpyvaUCLwDLFyesSA0HAaN+Pn5Cit6qzT5mUS2MspY0Q6biT7v1/FNtCtNAYrY749gtQOAD1dbAngqjqlKEU0zcv9d47T/7AoqiuqcQAgltrLjYBt/9qW9obQPDfZkXgBXyXYVETVMtEjzzNI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=WLe6nUl3; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="WLe6nUl3" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=H8WTJ8NBmRpbZtf94nTTt/tZUYzTLnihYXaoQXGtdRA=; b=WLe6nUl3NiNOhbZzoHeryOF0bU P5+xpXLngxxGVebSFsePFiFuI/Tje4zs+Zsk0N8ZJB99kB7M5AanK0s0NzdnlE8eRw+vuYTO7UKYw GuYzR0j2zpvVPfRPNwSJ1JNVPTbd4KlXaXcLyUpbS/AMy938NTCRo8+GPJ0oE76c4XVH6RPNdXt+I FaQFBumBWxrEMciRiP6PwVK8WLIHygrOro+u9TQHSSK0waUD4WD+doKz2NHNFX8a9pmVRw7vlEcW3 CE1Deh9g/lgotxHlH9x9TsKC402E2Ze1tzLTttiJTWI+L055MOwTe4bpnXfM80IRGtNESiLNW5uVB t24sKqEQ==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rUJJT-00000005VPu-4AB6; Mon, 29 Jan 2024 04:32:04 +0000 Date: Mon, 29 Jan 2024 04:32:03 +0000 From: Matthew Wilcox To: lsf-pc@lists.linux-foundation.org Cc: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-block@vger.kernel.org, linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org, linux-nvme@lists.infradead.org, bpf@vger.kernel.org Subject: [LSF/MM/BPF TOPIC] Reclaiming & documenting page flags Message-ID: Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Our documentation of the current page flags is ... not great. I think I can improve it for the page cache side of things; I understand the meanings of locked, writeback, uptodate, dirty, head, waiters, slab, mlocked, mappedtodisk, error, hwpoison, readahead, anon_exclusive, has_hwpoisoned, hugetlb and large_remappable. Where I'm a lot more shaky is the meaning of the more "real MM" flags, like active, referenced, lru, workingset, reserved, reclaim, swapbacked, unevictable, young, idle, swapcache, isolated, and reported. Perhaps we could have an MM session where we try to explain slowly and carefully to each other what all these flags actually mean, talk about what combinations of them make sense, how we might eliminate some of them to make more space in the flags word, and what all this looks like in a memdesc world. And maybe we can get some documentation written about it! Not trying to nerd snipe Jon into attending this session, but if he did ... [thanks to Amir for reminding me that I meant to propose this topic] From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5FD561474CD; Fri, 2 Feb 2024 16:29:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706891345; cv=none; b=KR25YcmyX34HSbuxdi4Eoh9NM69tE+RdwA0QJxHkSFOzRm5fdEwaMIuaTFQqQxZdPfncTwrIbqk3I5qN5RrfUPJNFy/uY4m0hnog0QqOoj/Vnr0u3MOruFmXC5xzFxw7Wp3CfJ504TY5yvVZJ6weA2S16C9TLEdh7jDFrdvLEXE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706891345; c=relaxed/simple; bh=yTf2N5hieH76/snamkyDPuaivV84pXMLNyFSjKDEC/w=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=Ffa6dC7eRSC/sIINOvnt0T6mVt3bjPxFJqe3r5sNvejGaFH11zmn7Z9dGrpu41XLrS834LSAyNX7W20k9m7jjmZ9R+1N+rbMYFKIk+8PifiB70FSX3RrJ+H7T0EhiKIkMytc5tBR6wNQ7omqGU4KVoXI244TBhkGQLxHs5ujI84= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=LupnOBpP; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="LupnOBpP" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=Yv89qsijhL8lE7JeRJ9pRE/QquGa9JQWLz2IsajqlBs=; b=LupnOBpPM7vOxUoL0szt/IoMn2 F66A8AOYNKkWiA5U7g6aqHrhkZQpS5bHjROLG3EPb6L3eMYFzEveKlh3osmMmSpsWTYzDrJWsscSU WRoqUj0aaThljAVKz6Zodjnx4h6FV0bN7zCia1RxICB3IglElc/83cb5NtDG4SSksdqu+1N/ryFIa 9NC5aoxlMipUHLI2BH7grBhfY88f/CH0js/1SDCgucWZo0gcD2A1jQXLtsD2yZgARPWzuR+wkqsY7 D4qsG1S9OYcqW4slm3kn5GW/RJ8z1any9KcewnC7RTupQkpkhHRwA/Tikl6BoYJ6TjXuZJGI+2QtT hWeDhWzQ==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVwPS-00000001Wnv-2KCT; Fri, 02 Feb 2024 16:28:58 +0000 Date: Fri, 2 Feb 2024 16:28:58 +0000 From: Matthew Wilcox To: lsf-pc@lists.linux-foundation.org Cc: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-block@vger.kernel.org, linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org, linux-nvme@lists.infradead.org, bpf@vger.kernel.org Subject: [LSF/MM/BPF TOPIC] Reclaiming & documenting page flags Message-ID: Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Message-ID: <20240202162858.Ls92Xc_5ujibp6MKKLacpn7ZJoRy5v-IqVIwYhM8BmI@z> LFrom willy@infradead.org Fri Feb 2 16:28:25 2024 Date: Fri, 2 Feb 2024 16:28:25 +0000 From: Matthew Wilcox To: Andy Shevchenko Cc: linux-kernel@vger.kernel.org, Andrew Morton Subject: Re: [resend, PATCH v1 1/1] logic_pio: Use RESOURCE_SIZE_MAX definition References: <20231016132611.1201402-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Mutt-References: X-Mutt-Fcc: ~/sent Status: RO Content-Length: 237 Lines: 7 On Fri, Feb 02, 2024 at 05:35:42PM +0200, Andy Shevchenko wrote: > On Mon, Oct 16, 2023 at 04:26:11PM +0300, Andy Shevchenko wrote: > > Use a predefined limit instead of hardcoding it. > > Can we apply this one? Why are you asking me?