update monitor add Ncpu support
add test