[PD-dev] new filer objects & posix memlock

Tim Blechmann TimBlechmann at gmx.net
Fri Oct 29 17:45:43 CEST 2004


hi miller ...

i'm curious about the new filer objects ... there is no denormal
protection ... are you sure, they are denormal safe?

also here is a patch to force the os not to overcommit memory (see man
mlockall):

--- s_inter.c   28 Oct 2004 09:09:39 -0000      1.1.1.2
+++ s_inter.c   29 Oct 2004 15:41:00 -0000
@@ -267,6 +267,13 @@
 #endif
 
 #ifdef _POSIX_MEMLOCK
+       /* tb: force memlock to physical memory { */
+       struct rlimit mlock_limit;
+       mlock_limit.rlim_cur=0;
+       mlock_limit.rlim_max=0;
+       setrlimit(RLIMIT_MEMLOCK,&mlock_limit);
+       /* } tb */
+
     if (mlockall(MCL_FUTURE) != -1) 
         fprintf(stderr, "memory locking enabled.\n");
 #endif

cheers ... tim

-- 
mailto:TimBlechmann at gmx.de    ICQ: 96771783
http://www.mokabar.tk

After one look at this planet any visitor from outer space 
would say "I want to see the manager."
				      William S. Burroughs




More information about the Pd-dev mailing list