mediaindex always using 100% cpu

CPU, memory, fan, process, services status, system log, tempreture
Locked
User avatar
SunDogBC
Posts: 17
Joined: 16 Mar 2021, 01:03

mediaindex always using 100% cpu

Post by SunDogBC »

The system resources view has been showing over 50% cpu usage for almost a week. According to the "top" command, 1 cpu core is consumed 100% by a mediaindex task:

Code: Select all

top - 12:52:13 up 13 days,  3:09,  1 user,  load average: 1.14, 1.14, 1.10
Tasks: 194 total,   1 running, 119 sleeping,   0 stopped,   0 zombie
%Cpu0  :   3.4/4.1     7[|||||||                                                                                             ]
%Cpu1  : 100.0/0.0   100[||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||]
GiB Mem : 51.1/1.791    [                                                                                                    ]
GiB Swap: 22.6/0.954    [                                                                                                    ]

  PID USER      PR  NI    VIRT    RES  %CPU %MEM     TIME+ S COMMAND
 3903 xxxxx+  20   0  280.8m  13.3m 100.0  0.7   9322:24 S mediaindex
 2817 xxxxx+  20   0 1353.6m   8.1m   3.3  0.4 237:28.96 S restart_service
 5205 xxxxx+  20   0 1922.7m  35.5m   1.3  1.9  42:12.82 S TOSDaemon
15725 xxxxx+  20   0   29.3m   2.8m   0.7  0.2   1:07.95 R top
29696 xxxxx+  20   0    0.0m   0.0m   0.7  0.0   2:54.66 I kworker/0:2-eve
30259 plex      20   0  361.7m 221.9m   0.7 12.1  29:11.90 S Plex Media Serv
Yesterday I received a bunch of notification emails that "Media indexing is complete" and what was updated:

Code: Select all

4:08 PM - A total of 28 media indexes were added, including 18 pictures, 0 audio files, 0 videos and 10 documents
4:34 PM - A total of 34 media indexes were added, including 15 pictures, 0 audio files, 0 videos and 19 documents
4:45 PM - A total of 26 media indexes were added, including 16 pictures, 0 audio files, 0 videos and 10 documents.
5:06 PM - A total of 34 media indexes were added, including 15 pictures, 0 audio files, 0 videos and 19 documents.
5:10 PM - A total of 1 media indexes were added, including 1 pictures, 0 audio files, 0 videos and 0 documents.
There have been no notifications since so what is it doing? Should I just disable it and enable it every so often?
User avatar
TMroy
TerraMaster Team
Posts: 2578
Joined: 10 Mar 2020, 14:04
China

Re: mediaindex always using 100% cpu

Post by TMroy »

If you keep copying files to your TNAS, mediaindex will scan those files and add them to the database.
To contact our team, please send email to following addresses, remember to replace (at) with @:
Support team: support(at)terra-master.com (for technical support only)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
User avatar
SunDogBC
Posts: 17
Joined: 16 Mar 2021, 01:03

Re: mediaindex always using 100% cpu

Post by SunDogBC »

I don't know if it was me changing the configuration or the configuration itself but I have a Canon multi-function printer/scanner for which I created a new user "Canon". I must not have been thinking clearly at the time but instead of adding the shared folder that is the destination of the scanned files, I somehow was able to add folder "/homes/Canon". Once I removed it and added the proper folder, the cpu usage did go down to 0%.

Now if I try to select "/homes/Canon" it almost always adds it as "/home/Canon" (without the "s", as it should) except for one time it did add it again as "/homes/Canon". I removed it again and for the life of me I can't repeat it.

Regardless, mediaindex is no longer consuming 100% cpu.
User avatar
SunDogBC
Posts: 17
Joined: 16 Mar 2021, 01:03

Re: mediaindex always using 100% cpu

Post by SunDogBC »

For days mediaindex has been consuming cpu resources even though there's literally nothing for it to do.

I'm just going to disable it and rely on Plex.
User avatar
TMSupport
TerraMaster Team
Posts: 2314
Joined: 13 Dec 2019, 15:15

Re: mediaindex always using 100% cpu

Post by TMSupport »

This has been observed and is being fixed.
To contact our team, please send email to following addresses, remember to replace (at) with @
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
Locked