• 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: How to know when memory pages are swapped?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to know when memory pages are swapped?


  • Subject: Re: How to know when memory pages are swapped?
  • From: Shaun Wexler <email@hidden>
  • Date: Wed, 4 May 2005 14:24:56 -0700

On May 4, 2005, at 2:04 PM, Godfrey van der Linden wrote:

Yup this is basically the solution I was going to suggest. Keep a small pool of 'wired' memory around on the end of your I/O train. I'm afraid I'm not quite sure what the correct userland APIs are but I believe you are on the right track.

You probably don't want to mlockall() in any case, but I'll guess p1003 is probably Posix 1003 spec (just a guess).

I know that paging can be an issue, especially with audio, but an audio stream should be so hot that paging doesn't really occur. Have you been able to work out what pages are missing and why they are so cold? Perhaps a more complete analysis of page utilisation will reward you better then mlocking a bunch of pages?

I wrote a paged-buffer class with selectable features such as wired, virtual-ring, shared, etc. During starting of an audio device, I first wire down and touch each page of the I/O ring buffers; when the device stops, they are unwired and/or freed. Any buffers that my audio/DSP and MIDI time-constrain threads utilize, I wire when in use. There are a few MacFOH users who only have 128 to 384 MB of RAM installed, and nobody has reported any thrashing issues.
--
Shaun Wexler
MacFOH
http://www.macfoh.com



_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >How to know when memory pages are swapped? (From: Stéphane Letz <email@hidden>)
 >Re: How to know when memory pages are swapped? (From: Godfrey van der Linden <email@hidden>)
 >Re: How to know when memory pages are swapped? (From: Stéphane Letz <email@hidden>)
 >Re: How to know when memory pages are swapped? (From: Godfrey van der Linden <email@hidden>)

  • Prev by Date: Re: writing a new GUI environment
  • Next by Date: Re: writing a new GUI environment
  • Previous by thread: Re: How to know when memory pages are swapped?
  • Next by thread: Re: How to know when memory pages are swapped?
  • Index(es):
    • Date
    • Thread