git: kernel - Move action_list out of vm_page, and change flags

看板DFBSD_commit作者時間15年前 (2010/09/29 07:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1CedhrGu (DFBSD_commit)