Author: rfm
Date: Tue Jul 14 22:01:46 2015
New Revision: 38794

URL: http://svn.gna.org/viewcvs/gnustep?rev=38794&view=rev
Log:
set a more reasonable mewmory increment

Modified:
    libs/ec/trunk/EcProcess.h
    libs/ec/trunk/EcProcess.m

Modified: libs/ec/trunk/EcProcess.h
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/ec/trunk/EcProcess.h?rev=38794&r1=38793&r2=38794&view=diff
==============================================================================
--- libs/ec/trunk/EcProcess.h   (original)
+++ libs/ec/trunk/EcProcess.h   Tue Jul 14 22:01:46 2015
@@ -297,8 +297,8 @@
  *     current peak value) in process memory usage (adjusted by the
  *     average memory known not leaked) after which
  *     an alert is generated.<br />
- *     If this is not set (or is set to a value less than 10KB or
- *     greater than 1GB) then a value of 5MB is used.<br />
+ *     If this is not set (or is set to a value less than 100KB or
+ *     greater than 1GB) then a value of 50MB is used.<br />
  *     Setting a higher value makes memory leak detection less
  *     sensitive (but reduces unnecessary alerts).<br />
  *     If used in conjunction with EcMemoryPercentage, the greater

Modified: libs/ec/trunk/EcProcess.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/ec/trunk/EcProcess.m?rev=38794&r1=38793&r2=38794&view=diff
==============================================================================
--- libs/ec/trunk/EcProcess.m   (original)
+++ libs/ec/trunk/EcProcess.m   Tue Jul 14 22:01:46 2015
@@ -3250,7 +3250,7 @@
             }
           else if ([op caseInsensitiveCompare: @"increment"] == NSOrderedSame)
             {
-              if (val <= 10 || val > 1048576)
+              if (val <= 100 || val > 1048576)
                 {
                   [cmdDefs setCommand: nil forKey: @"MemoryIncrement"];
                   [self cmdPrintf: @"MemoryIncrement using default value.\n"];
@@ -4413,14 +4413,14 @@
       pMax = (memPeak * (100 + pct)) / 100;
 
       inc = [cmdDefs integerForKey: @"MemoryIncrement"];
-      if (inc < 10 || inc > 1048576)
+      if (inc < 100 || inc > 1048576)
         {
           /* Set the next alerting threshold from
-           * 5MB above the current peak usage,
+           * 50MB above the current peak usage,
            * ensuring that only serious increases
            * in usage will generate an alert.
            */
-          inc = 5 * 1024;
+          inc = 50 * 1024;
         }
       iMax = memPeak + (inc * 1024);
 


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to