From: Forrest Voight Date: Thu, 10 Jan 2013 16:04:50 +0000 (-0500) Subject: removed garbage collection before taking memory measurement, which was causing cpu... X-Git-Tag: 11.2~6 X-Git-Url: https://git.novaco.in/?p=p2pool.git;a=commitdiff_plain;h=8c9f2ca32ddaa8c130abeb1640a410af21c64870 removed garbage collection before taking memory measurement, which was causing cpu spikes --- diff --git a/p2pool/util/memory.py b/p2pool/util/memory.py index b7be340..9b50ad1 100644 --- a/p2pool/util/memory.py +++ b/p2pool/util/memory.py @@ -5,7 +5,6 @@ _scale = {'kB': 1024, 'mB': 1024*1024, 'KB': 1024, 'MB': 1024*1024} def resident(): - gc.collect() with open('/proc/%d/status' % os.getpid()) as f: v = f.read() i = v.index('VmRSS:')