運行cartographer提示inotify_add_watch no space left on device設備上沒有空間
這裏涉及到linux文件系統事件監控框架的概念
Inotify:高效實時的Linux文件系統事件監控框架
經查閱 解決辦法如下:
添加最大監控文件數量
一種方法就是重啓電腦,顯然這種方法不是值得推薦和令人喜歡的
另一種方法
sudo sysctl fs.inotify.max_user_watches=524288
sudo sysctl -p 生效
或者選擇 以下方法:
查看目前的最大值
To find your current limit, type this in your terminal:
$cat /proc/sys/fs/inotify/max_user_watches
增加最大值
Which is typically 8192 by default.
To increase your limit, type this:
$sudo sysctl fs.inotify.max_user_watches=16384
永久設置最大值
To permanently set this limit, type this:
$echo 16384 | sudo tee -a /proc/sys/fs/inotify/max_user_watches