+ zoned-vm-counters-basic-zvc-zoned-vm-counter-implementation-speedup-fix.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     Inline counters for single processor configurations (fix)

has been added to the -mm tree.  Its filename is

     zoned-vm-counters-basic-zvc-zoned-vm-counter-implementation-speedup-fix.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: Inline counters for single processor configurations (fix)
From: Christoph Lameter <clameter@xxxxxxx>


Hmmm..  i386/x86_64 do not convert the adds to incs like ia64.  Therefore one
can decrease memory usage even further by using atomic_inc/dec explicitly.

Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 include/linux/vmstat.h |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff -puN include/linux/vmstat.h~zoned-vm-counters-basic-zvc-zoned-vm-counter-implementation-speedup-fix include/linux/vmstat.h
--- 25/include/linux/vmstat.h~zoned-vm-counters-basic-zvc-zoned-vm-counter-implementation-speedup-fix	Tue Jun 27 15:22:40 2006
+++ 25-akpm/include/linux/vmstat.h	Tue Jun 27 15:22:40 2006
@@ -239,13 +239,15 @@ static inline void __mod_zone_page_state
 static inline void __inc_zone_page_state(struct page *page,
 			enum zone_stat_item item)
 {
-	zone_page_state_add(1, page_zone(page), item);
+	atomic_long_inc(&page_zone(page)->vm_stat[item]);
+	atomic_long_inc(&vm_stat[item]);
 }
 
 static inline void __dec_zone_page_state(struct page *page,
 			enum zone_stat_item item)
 {
-	zone_page_state_add(-1, page_zone(page), item);
+	atomic_long_dec(&page_zone(page)->vm_stat[item]);
+	atomic_long_dec(&vm_stat[item]);
 }
 
 /*
_

Patches currently in -mm which might be from clameter@xxxxxxx are

origin.patch
zoned-vm-counters-create-vmstatc-h-from-page_allocc-h.patch
zoned-vm-counters-create-vmstatc-h-from-page_allocc-h-fix-2.patch
zoned-vm-counters-basic-zvc-zoned-vm-counter-implementation.patch
zoned-vm-counters-basic-zvc-zoned-vm-counter-implementation-tidy.patch
zoned-vm-counters-basic-zvc-zoned-vm-counter-implementation-speedup.patch
zoned-vm-counters-basic-zvc-zoned-vm-counter-implementation-speedup-fix.patch
zoned-vm-counters-convert-nr_mapped-to-per-zone-counter.patch
zoned-vm-counters-conversion-of-nr_pagecache-to-per-zone-counter.patch
zoned-vm-counters-remove-nr_file_mapped-from-scan-control-structure.patch
zoned-vm-counters-remove-nr_file_mapped-from-scan-control-structure-fix.patch
zoned-vm-counters-split-nr_anon_pages-off-from-nr_file_mapped.patch
zoned-vm-counters-zone_reclaim-remove-proc-sys-vm-zone_reclaim_interval.patch
zoned-vm-counters-conversion-of-nr_slab-to-per-zone-counter.patch
zoned-vm-counters-conversion-of-nr_slab-to-per-zone-counter-fix-2.patch
zoned-vm-counters-conversion-of-nr_pagetables-to-per-zone-counter.patch
zoned-vm-counters-conversion-of-nr_dirty-to-per-zone-counter.patch
zoned-vm-counters-conversion-of-nr_writeback-to-per-zone-counter.patch
zoned-vm-counters-conversion-of-nr_unstable-to-per-zone-counter.patch
zoned-vm-counters-conversion-of-nr_bounce-to-per-zone-counter.patch
zoned-vm-counters-conversion-of-nr_bounce-to-per-zone-counter-fix-2.patch
zoned-vm-counters-remove-useless-struct-wbs.patch
use-zoned-vm-counters-for-numa-statistics-v3.patch
light-weight-event-counters-v5.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux