update shared memory buffer ring