Negative vm_stat results...
Negative vm_stat results...
- Subject: Negative vm_stat results...
- From: "William Kucharski" <email@hidden>
- Date: Thu, 13 Nov 2003 08:48:23 -0700
>
I've been evaluating a dual processor G5, working it pretty hard for
>
several weeks (2 x ~100% CPU jobs running all the time.) I just
>
noticed the following virtual memory statistics:
>
>
dberry% vm_stat
>
Mach Virtual Memory Statistics: (page size of 4096 bytes)
>
Pages free: 4799.
>
Pages active: 140469.
>
Pages inactive: 90789.
>
Pages wired down: 26087.
>
"Translation faults": -1283718751.
>
Pages copy-on-write: 599196.
>
Pages zero filled: -1293420378.
>
Pages reactivated: 1004467.
>
Pageins: 29024.
>
Pageouts: 2675.
>
Object cache: 325107 hits of 618313 lookups (52% hit rate)
No big deal here; the statistics above are captured to an "integer_t," rather
than a "natural_t," and the code that updates the statistics makes no effort to
make sure the results do not exceed INT_MAX.
So yes, it's just a 32-bit signed int that's "rolling over" into negative
values.
William Kucharski
email@hidden
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.