mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Removed (almost) meaningless "object cache lookups/hits" statistic. In
our framework, these numbers will usually be nearly the same, and not because of any sort of high 'hit rate'.
This commit is contained in:
parent
e169c6670b
commit
260295f979
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7350
2 changed files with 3 additions and 7 deletions
|
@ -31,7 +31,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vmmeter.h 8.1 (Berkeley) 6/2/93
|
||||
* $Id: vmmeter.h,v 1.8 1995/02/22 18:06:49 davidg Exp $
|
||||
* $Id: vmmeter.h,v 1.9 1995/03/25 06:09:28 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef _SYS_VMMETER_H_
|
||||
|
@ -52,10 +52,9 @@ struct vmmeter {
|
|||
/*
|
||||
* Virtual memory activity.
|
||||
*/
|
||||
unsigned v_lookups; /* object cache lookups */
|
||||
unsigned v_hits; /* object cache hits */
|
||||
unsigned v_vm_faults; /* number of address memory faults */
|
||||
unsigned v_cow_faults; /* number of copy-on-writes */
|
||||
unsigned v_zfod; /* pages zero filled on demand */
|
||||
unsigned v_swapin; /* swap pager pageins */
|
||||
unsigned v_swapout; /* swap pager pageouts */
|
||||
unsigned v_swappgsin; /* swap pager pages paged in */
|
||||
|
@ -71,7 +70,6 @@ struct vmmeter {
|
|||
unsigned v_dfree; /* pages freed by daemon */
|
||||
unsigned v_pfree; /* pages freed by exiting processes */
|
||||
unsigned v_tfree; /* total pages freed */
|
||||
unsigned v_zfod; /* pages zero filled on demand */
|
||||
/*
|
||||
* Distribution of page usages.
|
||||
*/
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
* any improvements or extensions that they make and grant Carnegie the
|
||||
* rights to redistribute these changes.
|
||||
*
|
||||
* $Id: vm_object.c,v 1.38 1995/03/23 05:19:44 davidg Exp $
|
||||
* $Id: vm_object.c,v 1.39 1995/03/25 06:09:33 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -927,7 +927,6 @@ vm_object_lookup(pager)
|
|||
register vm_object_hash_entry_t entry;
|
||||
vm_object_t object;
|
||||
|
||||
cnt.v_lookups++;
|
||||
vm_object_cache_lock();
|
||||
|
||||
for (entry = vm_object_hashtable[vm_object_hash(pager)].tqh_first;
|
||||
|
@ -944,7 +943,6 @@ vm_object_lookup(pager)
|
|||
object->ref_count++;
|
||||
vm_object_unlock(object);
|
||||
vm_object_cache_unlock();
|
||||
cnt.v_hits++;
|
||||
return (object);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue