Skip to content

SPDK cleanup steps when crashed

Zeyuan Hu edited this page Apr 18, 2019 · 1 revision

The following are steps you may want to try before restarting the physical server(!):

$ ps aux | grep cargo
$ kill -15  {pid}
$ kill -9 {pid}  // if the previous command doesn’t work
$ cd /dev/hugepages
$ sudo rm -rf *
$ cat /proc/meminfo |grep HugePages  // usually this should clean up the resources
$ cd spdk
$ sudo scripts/setup.sh reset
$ sudo lsof /dev/hugepages/  // this gives a list of pid that uses device /dev/hugepages (i.e. pid2)
$ sudo kill -9  {pid2} //  kill them 
Clone this wiki locally