[mirrorbrain-commits] r7781 - /trunk/docs/installation/source.rst

From: <poeml_at_mirrorbrain.org>
Date: Fri, 28 Aug 2009 02:16:35 -0000
Author: poeml
Date: Fri Aug 28 04:16:34 2009
New Revision: 7781

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=7781&view=rev
Log:
mirrorprobe / docs: 
- document a scenario where the mirrorprobe could fail on machines with little
  memories and many mirrors to check. 
  
  This issue started to occur on a machine with 512M of RAM when the number of
  probed mirrors reached 100. ulimit -s was 8192 there. The stack trace was:

     File "/usr/bin/mirrorprobe", line 324, in <module>
       main()
     File "/usr/bin/mirrorprobe", line 259, in main
       t.start()
     File "/usr/lib/python2.6/threading.py", line 471, in start
       _start_new_thread(self.__bootstrap, ())
  thread.error: can't start new thread

  The fix is to document how to use ulimit -s to allow starting enough threads again.

Modified:
    trunk/docs/installation/source.rst

Modified: trunk/docs/installation/source.rst
URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/docs/installation/source.rst?rev=7781&r1=7780&r2=7781&view=diff
==============================================================================
--- trunk/docs/installation/source.rst (original)
+++ trunk/docs/installation/source.rst Fri Aug 28 04:16:34 2009
@@ -272,9 +272,15 @@
     
   * mirror surveillance needs to be configured. Put this into /etc/crontab::
 
-      -* * * * *                mirrorbrain   mirrorprobe -t 20 &>/dev/null
-
-    Likewise, configure scanning::
+      -* * * * *                mirrorbrain   mirrorprobe -t 20 
+
+    if the server has little memory, but there are many mirrors to probe, the
+    mirrorprobe might start more threads than allowed by the OS per default. To fix this, 
+    use ulimit::
+
+      -* * * * *                mirrorbrain   ulimit -s unlimited; mirrorprobe -t 20
+
+    configure mirror scanning::
 
       44 0,4,8,12,16,20 * * *   mirrorbrain   mb scan -j 3 -a
 




_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on Fri Aug 28 2009 - 02:16:36 GMT

This archive was generated by hypermail 2.2.0 : Fri Aug 28 2009 - 02:45:14 GMT