Added settings.IDMAPPER_CACHE_MAXSIZE and a new default global script to check if the cache should be flushed. Tested with dummyrunner to maintain the memory usage at a much more stable level.

This commit is contained in:
Griatch 2014-05-18 21:17:10 +02:00
parent f2c75bd0f6
commit 4e14f46d54
2 changed files with 15 additions and 8 deletions

View file

@ -54,7 +54,7 @@ if __name__ == "__main__":
fig = pp.figure()
ax1 = fig.add_subplot(111)
ax1.set_title("Memory usage (200 bots, auto-flush at RMEM ~ 200MB)")
ax1.set_title("200 bots, ~400 obj/min, IDMAPPER_CACHE_MAXSIZE=200")
ax1.set_xlabel("Time (mins)")
ax1.set_ylabel("Memory usage (MB)")
ax1.plot(secs, rmem, "r", label="RMEM", lw=2)