Aaron Krohn

Added warning message for machines with too few cores;

... ... @@ -140,6 +140,15 @@ def main():
# Core count
ncpus = cpu_count()
if ncpus < 4:
sys.stderr.write("""
WARNING: This system does not have enough CPUs to utilize the benefits
of a parallelized directory walk. The system's built-in tools
would likely be as fast or faster for this process if it will
even run at all. Some systems have been found to hang.
""")
time.sleep(15)
sys.stderr.write('Process starting...')
# Keep track of our running processes
procs = []
... ...
... ... @@ -197,6 +197,16 @@ def main():
# Don't recurse
break
if ncpus < 4:
sys.stderr.write("""
WARNING: This system does not have enough CPUs to utilize the benefits
of a parallelized directory walk. The system's built-in tools
would likely be as fast or faster for this process if it will
even run at all. Some systems have been found to hang.
""")
time.sleep(10)
sys.stderr.write('Process starting...')
# Distribute CPUs
n_writers = 1
n_statters = (ncpus - n_writers) / 2
... ...