Re: avoiding VM page swaps for big sample buffers
Re: avoiding VM page swaps for big sample buffers
- Subject: Re: avoiding VM page swaps for big sample buffers
- From: Steve Checkoway <email@hidden>
- Date: Mon, 27 Sep 2004 09:46:56 -0700
man mlock tells me that you need
#include <sys/types.h>
#incude <sys/mman.h>
And then:
$ nm /usr/lib/libc.dylib |grep mlock
/usr/lib/libc.dylib(mlockall.So):
9005f680 T _mlockall
/usr/lib/libc.dylib(mlock.So):
9004abc0 T _mlock
So all you need is libc and those headers.
- Steve
On Sep 27, 2004, at 5:55 AM, Frank (Steim) wrote:
sounds good to me, but: I am using CodeWarrior 9, which library do I
include in my project and where do I find the proper .h file?
Frank
The unix way to do it is to use the mlock() call - on OS X
it should work as any user (not just root). Beware that if
you try to mlock() too much memory, the system will probably
become very non-responsive :)
Matt
--------------------------
Frank Baldé
software designer
Steim Foundation
http://www.steim.nl
--------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden