[CalendarServer-changes] [5856] CalendarServer/branches/users/wsanchez/deployment/twistedcaldav

source_changes at macosforge.org source_changes at macosforge.org
Wed Jul 7 13:35:12 PDT 2010


Revision: 5856
          http://trac.macosforge.org/projects/calendarserver/changeset/5856
Author:   glyph at apple.com
Date:     2010-07-07 13:35:12 -0700 (Wed, 07 Jul 2010)
Log Message:
-----------
renice master to be higher priority than the children, to improve dispatching performance

Modified Paths:
--------------
    CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/cluster.py
    CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/tap.py

Modified: CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/cluster.py
===================================================================
--- CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/cluster.py	2010-07-07 18:02:45 UTC (rev 5855)
+++ CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/cluster.py	2010-07-07 20:35:12 UTC (rev 5856)
@@ -20,7 +20,10 @@
 import socket
 import time
 import signal
+import ctypes
 
+nice = ctypes.CDLL('libc.dylib').nice
+
 from twisted.runner import procmon
 from twisted.application import internet, service
 from twisted.internet import reactor, process
@@ -365,6 +368,7 @@
 
 def makeService_Combined(self, options):
 
+    nice(-1)
 
     # Refresh directory information on behalf of the child processes
     directoryClass = namedClass(config.DirectoryService["type"])

Modified: CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/tap.py
===================================================================
--- CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/tap.py	2010-07-07 18:02:45 UTC (rev 5855)
+++ CalendarServer/branches/users/wsanchez/deployment/twistedcaldav/tap.py	2010-07-07 20:35:12 UTC (rev 5856)
@@ -18,7 +18,10 @@
 import stat
 import socket
 import signal
+import ctypes
 
+nice = ctypes.CDLL('libc.dylib').nice
+
 from zope.interface import implements
 
 from twisted.internet import reactor
@@ -526,6 +529,7 @@
 
 
     def makeService_Slave(self, options):
+        nice(1)
         #
         # Change default log level to "info" as its useful to have
         # that during startup
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100707/b4e3fe08/attachment.html>


More information about the calendarserver-changes mailing list