[140642] trunk/base/src/pextlib1.0/tracelib.c

cal at macports.org cal at macports.org
Mon Sep 28 14:24:05 PDT 2015


Revision: 140642
          https://trac.macports.org/changeset/140642
Author:   cal at macports.org
Date:     2015-09-28 14:24:05 -0700 (Mon, 28 Sep 2015)
Log Message:
-----------
base: tracelib: reduce kevent batch size

We don't need to process up to 1024 requests at the same time.
Increasing this number increases memory usage and the risk of file
descriptor exhaustion. Reducing it just causes more iterations of the
kevent loop.

Modified Paths:
--------------
    trunk/base/src/pextlib1.0/tracelib.c

Modified: trunk/base/src/pextlib1.0/tracelib.c
===================================================================
--- trunk/base/src/pextlib1.0/tracelib.c	2015-09-28 21:22:19 UTC (rev 140641)
+++ trunk/base/src/pextlib1.0/tracelib.c	2015-09-28 21:24:05 UTC (rev 140642)
@@ -268,7 +268,7 @@
 }
 #endif /* defined(HAVE_PEERPID_LIST) */
 
-#define MAX_SOCKETS (1024)
+#define MAX_SOCKETS (64)
 #define BUFSIZE     (4096)
 
 /**
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150928/1b9a6167/attachment.html>


More information about the macports-changes mailing list