create memdev_select