From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752406Ab1I1Atd (ORCPT ); Tue, 27 Sep 2011 20:49:33 -0400 Received: from smtp-out.google.com ([74.125.121.67]:22115 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751429Ab1I1Atb (ORCPT ); Tue, 27 Sep 2011 20:49:31 -0400 DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=dkim-signature:from:to:cc:subject:date:message-id:x-mailer:x-system-of-record; b=O1j04aCJsfm+RgkZodo+6hqMUt9zaO6XSX78v8zvDpx0Ji5sibx/KcP7jqoX0fDHk iz0uKLzCENY97k9aPK0VQ== From: Michel Lespinasse To: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , KAMEZAWA Hiroyuki , Dave Hansen , Rik van Riel , Balbir Singh , Peter Zijlstra Cc: Andrea Arcangeli , Johannes Weiner , KOSAKI Motohiro , Hugh Dickins , Michael Wolf Subject: [PATCH 0/9] V2: idle page tracking / working set estimation Date: Tue, 27 Sep 2011 17:48:58 -0700 Message-Id: <1317170947-17074-1-git-send-email-walken@google.com> X-Mailer: git-send-email 1.7.3.1 X-System-Of-Record: true Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a followup to the prior version of this patchset, which I sent out on September 16. I have addressed most of the basic feedback I got so far: - Renamed struct pr_info -> struct page_referenced_info - Config option now depends on 64BIT, as we may not have sufficient free page flags in 32-bit builds - Renamed mem -> memcg in kstaled code within memcontrol.c - Uninlined kstaled_scan_page - Replaced strict_strtoul -> kstrtoul - Report PG_stale in /proc/kpageflags - Fix accounting of THP pages. Sorry for forgeting to do this in the V1 patchset - to detail the change here, what I had to do was make sure page_referenced() reports THP pages as dirty (as they always are - the dirty bit in the pmd is currently meaningless) and update the minimalistic implementation change to count THP pages as equivalent to 512 small pages. - The ugliest parts of patch 6 (rate limit pages scanned per second) have been reworked. If the scanning thread gets delayed, it tries to catch up so as to minimize jitter. If it can't catch up, it would probably be a good idea to increase the scanning interval, but this is left up to userspace. Michel Lespinasse (9): page_referenced: replace vm_flags parameter with struct page_referenced_info kstaled: documentation and config option. kstaled: page_referenced_kstaled() and supporting infrastructure. kstaled: minimalistic implementation. kstaled: skip non-RAM regions. kstaled: rate limit pages scanned per second. kstaled: add histogram sampling functionality kstaled: add incrementally updating stale page count kstaled: export PG_stale in /proc/kpageflags Documentation/cgroups/memory.txt | 103 ++++++++- arch/x86/include/asm/page_types.h | 8 + arch/x86/kernel/e820.c | 45 ++++ fs/proc/page.c | 4 + include/linux/kernel-page-flags.h | 2 + include/linux/ksm.h | 9 +- include/linux/mmzone.h | 11 + include/linux/page-flags.h | 50 ++++ include/linux/pagemap.h | 11 +- include/linux/rmap.h | 82 ++++++- mm/Kconfig | 10 + mm/internal.h | 1 + mm/ksm.c | 15 +- mm/memcontrol.c | 479 +++++++++++++++++++++++++++++++++++++ mm/memory_hotplug.c | 6 + mm/mlock.c | 1 + mm/rmap.c | 138 ++++++----- mm/swap.c | 1 + mm/vmscan.c | 20 +- 19 files changed, 899 insertions(+), 97 deletions(-) -- 1.7.3.1