On Tuesday 17 August 2004 19.01, davidrclark@... wrote:
> A little more on the root lockup problem: It appears that there is a
> conflict between the fglrx (ATI Radeon DRI, for example) drivers and
> mlockall(2) calls in BOTH jackd and muse. Some may feel that the drivers
> are at fault. I disagree. Quoting from the IRIX man page on realtime(5):
The mlockall should fail, gracefully, so something is definitely wrong.
> " Memory Locking
> A real-time application can avoid the overhead of page fault
> processing under IRIX by locking ranges of its text and data into memory.
> The POSIX mlockall(3c) system call can be used to lock down a process's
> entire virtual address space. Since it is not always desirable to lock
> down the entire virtual address space, IRIX provides the following system
> calls to lock and unlock a specified range of addresses in memory:
> mpin(2)/munpin(2) and mlock(3c)/munlock(3c).
> From http://www.mcsr.olemiss.edu/cgi-bin/man-cgi?realtime+5
> Note the obvious "Since it is not always desirable to lock down the
> **entire virtual address space**...." With large apps, this is almost
> certainly true. With apps like jackd which can have large clients, this is
> true once again. Those who don't experience problems may in the future.
It is true that we should avoid locking more memory than necessary, and this
is definitely happening. Still it should not lock up... but fixing this issue
might take care of it anyway.
I know that Paul Davis had a patch laying around that added this behaviour for
jackd. I will ask him about it.
Thanks for testing and bringing this up.
> All I can say is "Good luck!" Oh, and if you're having problems with
> muse, try commenting out mlockall(...) in muse/thread.cpp:188. Works
> for me. Yes, there may be page faults that cause either muse of jackd
> to stop working. That's better than creating a race condition like
> I've seen, hosing X, heating up the CPU, and hard rebooting with possible
> file system damage.
> SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
> 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
> Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
> Lmuse-user mailing list