Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm make free page queue filo rather than fifo.
details: https://anonhg.NetBSD.org/src/rev/1d2eb851c463
branches: trunk
changeset: 570013:1d2eb851c463
user: yamt <yamt%NetBSD.org@localhost>
date: Fri Sep 17 20:46:03 2004 +0000
description:
make free page queue filo rather than fifo.
data in pages freed more recently are more likely on cpu cache.
diffstat:
sys/uvm/uvm_page.c | 6 +++---
sys/uvm/uvm_pglist.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r 8a06814c79b4 -r 1d2eb851c463 sys/uvm/uvm_page.c
--- a/sys/uvm/uvm_page.c Fri Sep 17 19:21:03 2004 +0000
+++ b/sys/uvm/uvm_page.c Fri Sep 17 20:46:03 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_page.c,v 1.99 2004/09/01 11:53:38 yamt Exp $ */
+/* $NetBSD: uvm_page.c,v 1.100 2004/09/17 20:46:03 yamt Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.99 2004/09/01 11:53:38 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.100 2004/09/17 20:46:03 yamt Exp $");
#include "opt_uvmhist.h"
@@ -1427,7 +1427,7 @@
uvm_pagezerocheck(pg);
#endif /* DEBUG */
- TAILQ_INSERT_TAIL(pgfl, pg, pageq);
+ TAILQ_INSERT_HEAD(pgfl, pg, pageq);
uvmexp.free++;
if (iszero)
uvmexp.zeropages++;
diff -r 8a06814c79b4 -r 1d2eb851c463 sys/uvm/uvm_pglist.c
--- a/sys/uvm/uvm_pglist.c Fri Sep 17 19:21:03 2004 +0000
+++ b/sys/uvm/uvm_pglist.c Fri Sep 17 20:46:03 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_pglist.c,v 1.31 2004/03/24 07:47:33 junyoung Exp $ */
+/* $NetBSD: uvm_pglist.c,v 1.32 2004/09/17 20:46:03 yamt Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_pglist.c,v 1.31 2004/03/24 07:47:33 junyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_pglist.c,v 1.32 2004/09/17 20:46:03 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -483,7 +483,7 @@
if (iszero)
uvm_pagezerocheck(pg);
#endif /* DEBUG */
- TAILQ_INSERT_TAIL(&uvm.page_free[uvm_page_lookup_freelist(pg)].
+ TAILQ_INSERT_HEAD(&uvm.page_free[uvm_page_lookup_freelist(pg)].
pgfl_buckets[VM_PGCOLOR_BUCKET(pg)].
pgfl_queues[iszero ? PGFL_ZEROS : PGFL_UNKNOWN], pg, pageq);
uvmexp.free++;
Home |
Main Index |
Thread Index |
Old Index