Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Translation faults and object cache

Translation faults and object cache
Thread Tools
Fresh-Faced Recruit
Join Date: May 2003
Status: Offline
Reply With Quote
May 23, 2003, 12:07 PM
 
When I run 'vm_stat' on either of my machines (G3Pismo/500, TiBook/800), I see a large number of "translation faults" and my object cache reports a very low "hit rate" -- 4% or 6%. Is there a problem or is this typical? A quick search of these archives would indicate that many other people are getting hit rates significantly above 50%.

Any information would be splendid - thanks
/jjjj
     
Senior User
Join Date: May 2001
Location: Massachusetts, USA
Status: Offline
Reply With Quote
May 24, 2003, 03:13 AM
 
If a translation fault is the same or similar to a page fault, which I suspect it is, then you are right in thinking that a cache hit rate that low is not typical. A large number of page faults is not a problem -- a page fault isn't an error, it just means that the virtual memory system needed a page of memory that wasn't already in physical RAM. It's bad only because it means you need to page memory in from disk, which takes awhile. The object cache, assuming it's the same thing I'm familiar with, is a list of page-frame mappings that allows the system to quickly reload a page that it recently paged out without referring to the page table (don't worry if that seems obscure -- it is). My current hit rate is something like 88%, but I've just been browsing the Web for the past half hour and not opening many different programs or (presumably) calling too many different functions. So the best answer I can give is that none of that is a problem in and of itself, although if your cache hit rate never goes above 50% even when you're just putzing around in Safari or something, that could be a signal that something's amiss -- try running top and take a look at your load averages and free memory; if something's hogging your processor in the background every couple minutes, it could theoretically cause the sort of low hit rate you're seeing (though I'd be surprised if that was the case). Above all though, the object cache is just an optimization mechanism in the virtual memory system, so if you haven't noticed your system slowing down or your hard drive churning, and especially if your pageins and pageouts in top aren't unnaturally high (you can check what "unnaturally high" means through another couple searches of the forum; just remember those numbers are cumulative, so if your computer's been up for three months they're likely to be big numbers), you're probably fine. If you're not noticing a slowdown, chances are everything's purring along just as it should be in general.
     
Dedicated MacNNer
Join Date: Dec 2001
Location: Promised Land
Status: Offline
Reply With Quote
May 25, 2003, 08:46 AM
 
"Tranlations Faults" is just the number of times the vm_fault() routine has been called.

From the kernel code:

* Routine: vm_fault
* Purpose:
* Handle page faults, including pseudo-faults
* used to change the wiring status of pages.

So this routine will be called for page ins, page outs, and any operation that changes flags for the page (such as mmap, or one of the mach vm_ routines).

IOW, don't worry about this number. It basically means nothing.
G5 2.5 DP/2GB RAM/NVidia 6800 Ultra
PowerBook Al 1Ghz/768MB RAM
6gb Blue iPod Mini
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 05:59 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2