DragonFly commits List (threaded) for 2010-09
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: kernel - Move action_list out of vm_page, and change flags from 16->32 bits
commit 906c754ce7d9e9b435f77dba229ad08f65d2ea4a
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date: Tue Sep 28 16:16:05 2010 -0700
kernel - Move action_list out of vm_page, and change flags from 16->32 bits
* vm_page->action_list removed, saving 16 bytes per vm_page on x86_64
(8 on i386). Instead we add a flag to vm_page->flags, PG_ACTIONLIST,
and store the action registrations in a global hash table.
* Change vm_page->flags from a 16 to 32 bits, plus pad, adding 4 bytes
to the vm_page structure.
* x86_64 sizeof(struct vm_page) goes from 136 to 128, keeping in mind
that it grew from 132 to 136 with the addition of ku_pagecnt. So,
net-net, we have still managed to decrease the size of struct vm_page
by a little.
Summary of changes:
sys/kern/kern_umtx.c | 6 ++--
sys/vm/vm_page.c | 83 ++++++++++++++++++++++++++++++++++++++++++++++---
sys/vm/vm_page.h | 45 +++++++++++++++------------
sys/vm/vm_page2.h | 24 ++------------
4 files changed, 108 insertions(+), 50 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/906c754ce7d9e9b435f77dba229ad08f65d2ea4a
--
DragonFly BSD source repository
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]