"Andreas Kuckartz" <A.Kuckartz(a)ping.de> writes:
Jack O'Quin wrote:
What's the significance of using mlock?
It enables programs to lock memory using the mlock() and mlockall()
system calls.
What is the practical difference if mlock() and mlockall() system calls are
used?
Often it makes no difference at all. That's why it's an option. :-)
Programs like JACK ordinarily try to lock memory when running with the
--realtime option to prevent data accessed by realtime-critical code
being paged out. If that happens XRUNS will surely ensue, but it
usually doesn't because these pages tend to be accessed regularly
enough to escape the VM page replacement algorithm. But, without
mlock(), there is no guarantee.
If you decide to specify mlock=0, you should probably also specify the
`jackd -m' (--no-mlock) option.
--
joq