setting the shared memory size to the previous result