memory threads config