본문 바로가기

일상

Synology NAS DS211+ CPU 100% 문제


자료를 집어넣고 나니까 자동적으로 Photostation 이나 DLNA 등 때문인지 ffmpeg 나 convert를 미친듯이 해댄다. 찾다보니 CPU 100% 가 2주 3주 계속된다는 얘기가 있는데,
나는 쓰지도 않을 기능 때문에 뭔가가 계속 CPU process 를 잡아먹는 것 뿐만 아니라 해상도 썸네일을 저장하려고 디스크 용량까지 추가로먹는다는게 꺼림칙해서 찾아보니 아래와 같은 글이 있네.

나는
S66synoindexd.sh stop
S88synomkflvd.sh stop
S77synomkthumbd.sh stop

및 상기 command에 대해 chmod -x 를 수행해줬다.

그리고 root로 로그인해서 (관리자 그룹의 계정이 아니라, 진정 "root" 님)
killall -9 ffmpeg 해주니까 이제 좀 CPU 사용량이 인간적으로변했다.


 

Turn off media indexers to free up CPU & Memory

When I logged in to see what was eating up my NAS' resources, I saw a lot of processes running that I don't need such as thumbnail generators and media indexers (ffmpeg & convert).
They were endlessly consuming 100% CPU, leaving nothing for my other tasks.

Any currently available NAS is a terrible media streamer. And that's ok, just get yourself an AC Ryan ($80) or Boxee Box ($250) to do that instead and dedicate your NAS to less tasks.

In my case that meant killing off all these wannabe media processes that are eating up your poor handheld CPU with 128MB RAM (every MB we'll save from this point forward counts to faster download speeds :)

So if you don't use the Photo/Media/iTunes station and would like more power for other tasks, consider turning off indexers:

1) Turn off all services in the bottom configuration panel (iTunes, everything except Download Station, unless you're going to use SABnzbd for this)

2) Login as root via SSH and stop all indexing:

/usr/syno/etc/rc.d/S??synoindexd.sh stop
/usr/syno/etc/rc.d/S??synomkflvd.sh stop
/usr/syno/etc/rc.d/S??synomkthumbd.sh stop
killall -9 convert
killall -9 ffmpeg
# If you don't use Download Station (but e.g. SABnzbd instead):
# /usr/syno/etc/rc.d/S??pgsql.sh stop

3) Make sure they won't restart on your next reboot.

chmod -x /usr/syno/etc/rc.d/S??synoindexd.sh
chmod -x /usr/syno/etc/rc.d/S??synomkflvd.sh
chmod -x /usr/syno/etc/rc.d/S??synomkthumbd.sh
# If you don't use Download Station (but e.g. SABnzbd instead):
# chmod -x /usr/syno/etc/rc.d/S??pgsql.sh 

Hint) After a DSM firmware upgrade, you need to repeat these steps.