add smem and valgrind example

Signed-off-by: Barry Song <21cnbao@gmail.com>