vm: move vm_cnt to __read_mostly now that it is not written to

While here whack unused locking keys for the struct.

Discussed with:		jeff
This commit is contained in:
Mateusz Guzik 2018-04-27 05:36:02 +00:00
parent a3b3bb87cc
commit 23e17f83f1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333051
2 changed files with 1 additions and 4 deletions

View File

@ -73,11 +73,8 @@ struct vmtotal {
/*
* System wide statistics counters.
* Locking:
* a - locked by atomic operations
* c - constant after initialization
* f - locked by vm_page_queue_free_mtx
* p - uses counter(9)
* q - changes are synchronized by the corresponding vm_pagequeue lock
*/
struct vmmeter {
/*

View File

@ -58,7 +58,7 @@ __FBSDID("$FreeBSD$");
#include <vm/vm_object.h>
#include <sys/sysctl.h>
struct vmmeter __exclusive_cache_line vm_cnt = {
struct vmmeter __read_mostly vm_cnt = {
.v_swtch = EARLY_COUNTER,
.v_trap = EARLY_COUNTER,
.v_syscall = EARLY_COUNTER,