• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [OT] Mail hangs real-time processes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OT] Mail hangs real-time processes


  • Subject: Re: [OT] Mail hangs real-time processes
  • From: Herbie Robinson <email@hidden>
  • Date: Thu, 8 Jan 2004 16:50:26 -0500

At 10:22 AM -0800 1/7/04, Jeff Moore wrote:
If you take a page fault in any thread, the thread that services it in the kernel is higher priority than any real time thread. What you can end up with is a kind of priority inversion where some normal priority thread is causing work to be done on a very high priority thread.

One possible explanation of this situation is that opening such a large mail box is thrashing the heck out of the VM system which would prevent the HAL's IO thread in iTunes from running.

That sounds like the wrong thing for the OS to be doing. The real-time threads should have higher priority than page fault handling. Still, it's not as bad as I thought at first. The real time threads still have higher priority than the threads that are actually causing the page faults; so, once the real time threads get scheduled, the page fault rate will be cut down or even stop. In fact, on a single CPU system, the only effect will be to delay scheduling a real time thread for the amount of time it takes to queue disk I/O for one page fault (which is probably not much time). Actually, I think that the same is true for multiple CPUs with multiple real-time threads.
--
-*****************************************
** http://www.curbside-recording.com/ **
******************************************
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
References: 
 >Re: [OT] Mail hangs real-time processes (From: Jeff Moore <email@hidden>)
 >Re: [OT] Mail hangs real-time processes (From: Herbie Robinson <email@hidden>)
 >Re: [OT] Mail hangs real-time processes (From: Jeff Moore <email@hidden>)

  • Prev by Date: Re: [OT] Mail hangs real-time processes
  • Next by Date: Re: writing aiff file to disk
  • Previous by thread: Re: [OT] Mail hangs real-time processes
  • Next by thread: Re: [OT] Mail hangs real-time processes
  • Index(es):
    • Date
    • Thread