Changeset View
Changeset View
Standalone View
Standalone View
sys/vm/vm_meter.c
Show First 20 Lines • Show All 252 Lines • ▼ Show 20 Lines | TAILQ_FOREACH(object, &vm_object_list, object_list) { | ||||
if (object->ref_count == 0) { | if (object->ref_count == 0) { | ||||
/* | /* | ||||
* Also skip unreferenced objects, including | * Also skip unreferenced objects, including | ||||
* vnodes representing mounted file systems. | * vnodes representing mounted file systems. | ||||
*/ | */ | ||||
continue; | continue; | ||||
} | } | ||||
if (object->ref_count == 1 && | if (object->ref_count == 1 && | ||||
(object->flags & OBJ_NOSPLIT) != 0) { | (object->flags & OBJ_ANON) == 0) { | ||||
/* | /* | ||||
* Also skip otherwise unreferenced swap | * Also skip otherwise unreferenced swap | ||||
* objects backing tmpfs vnodes, and POSIX or | * objects backing tmpfs vnodes, and POSIX or | ||||
* SysV shared memory. | * SysV shared memory. | ||||
*/ | */ | ||||
continue; | continue; | ||||
} | } | ||||
total.t_vm += object->size; | total.t_vm += object->size; | ||||
▲ Show 20 Lines • Show All 299 Lines • Show Last 20 Lines |