Add possibility to report failure of loading into shm, also stat
Buffer size related fixes