• 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: Stéphane Letz <email@hidden>
  • Date: Wed, 4 May 2005 22:15:44 +0200


Le 4 mai 05, à 22:06, Godfrey van der Linden a écrit :

No. We have been asked for this functionality quite a number of times but there really is no good way for the kernel to notify and heat up code in a client app when it chooses to page out some data.

I have to ask, what are you trying to achieve? There is usually someway of achieving a very similar effect.

Cheers

Godfrey

On 05/04/2005, at 12:12 , Stéphane Letz wrote:

Hi,

In there any way for an application to be "notified" when one of the memory pages it uses is swapped on the disk? Is there a way to install an handler for "page-out" event?



I need to avoid page to be swapped because they are accessed in a real-time audio thread. I finally found that mlock/munlock functions are available for user space code. Is this correct?


from the #include <Kernel/sys/mman.h>

__BEGIN_DECLS
#ifdef _P1003_1B_VISIBLE
int	mlockall __P((int));
int	munlockall __P((void));
#endif /* _P1003_1B_VISIBLE */
int	mlock __P((const void *, size_t));
#ifndef _MMAP_DECLARED
#define	_MMAP_DECLARED
void *	mmap __P((void *, size_t, int, int, int, off_t));
#endif

What is this _P1003_1B_VISIBLE defined for actually? is this for kernel code only?

Thanks

Regards

Stephane Letz
_______________________________________________
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


  • Follow-Ups:
    • Re: How to know when memory pages are swapped?
      • From: Godfrey van der Linden <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>)

  • Prev by Date: Re: How to know when memory pages are swapped?
  • Next by Date: 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