per-cpu pte_chain freelists
Subsystems (3)
Seems to do a little better than per-zone.
Cheers,
Bill
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas:
# ChangeSet 1.423 -> 1.424 # mm/rmap.c 1.7 -> 1.8
# include/linux/mmzone.h 1.11 -> 1.12
# mm/page_alloc.c 1.47 -> 1.48
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/05/21 [email protected] 1.424
# per-cpu pte_chain freelists # -------------------------------------------- # diff --minimal -Nru a/include/linux/mmzone.h b/include/linux/mmzone.h --- a/include/linux/mmzone.h Tue May 21 15:55:48 2002 +++ b/include/linux/mmzone.h Tue May 21 15:55:48 2002 @@ -29,6 +29,11 @@
#define MAX_CHUNKS_PER_NODE 8
+struct pte_chain_freelist {
+ unsigned long count;
+ struct pte_chain *list;
+};
+
/*
* On machines where it is needed (eg PCs) we divide physical memory
* into multiple physical zones. On a PC we have 3 zones:
@@ -56,8 +61,8 @@
struct list_head inactive_dirty_list;
struct list_head inactive_clean_list;
free_area_t free_area[MAX_ORDER];
- spinlock_t pte_chain_freelist_lock;
- struct pte_chain *pte_chain_freelist;
+
+ struct pte_chain_freelist pte_chain_freelists[NR_CPUS];
/*
* wait_table -- the array holding the hash table
mm/page_alloc.c +4 -2
@@ -908,11 +908,13 @@ zone->inactive_clean_pages =0 ; zone->inactive_dirty_pages =0 ; zone->need_balance =0 ; - zone->pte_chain_freelist =NULL ;INIT_LIST_HEAD (&zone->active_list);INIT_LIST_HEAD (&zone->inactive_dirty_list);INIT_LIST_HEAD (&zone->inactive_clean_list); -spin_lock_init (&zone->pte_chain_freelist_lock); +for (i =0 ; i <NR_CPUS ; ++i) { + zone->pte_chain_freelists[i].count =0 ; + zone->pte_chain_freelists[i].list =NULL ; + }if (!size)continue ;
mm/rmap.c +58 -26
145 lines not on this page · raw message
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/