Hi,
For some time now with plex (sorry, its hard to pin down a specific version when this started) I’ve had very very high CPU usage by the “Plex Media Scanner” process when plex finds new content and imports it. I recall prior versions of plex where it would import each individual episode in seconds. Right now it takes several minutes, with “Plex Media Scanner” at 100% CPU, for each file its attempting to import.
I grabbed an strace call breakdown of what its doing during that time period:
`[root@charon:/.4/root21/tv]# strace -cfp 14806
Process 14806 attached with 2 threads
Process 15756 attached
Process 15806 attached
Process 15819 attached
% time seconds usecs/call calls errors syscall
98.58 6.808823 7499 908 36 futex
0.31 0.021652 1 22554 read
0.24 0.016622 173 96 poll
0.21 0.014377 0 52274 times
0.18 0.012777 0 35240 1 fcntl
0.15 0.010307 18 579 madvise
0.14 0.009458 0 22632 lseek
0.13 0.009316 0 35358 262 stat
0.01 0.001027 1 980 920 open
0.01 0.000728 1 744 write
0.01 0.000424 18 24 24 connect
0.01 0.000368 15 24 sendto
0.00 0.000243 6 43 getdents
0.00 0.000187 8 24 recvfrom
0.00 0.000072 1 107 close
0.00 0.000071 1 87 mmap
0.00 0.000047 5 10 fdatasync
0.00 0.000046 2 25 socket
0.00 0.000030 0 94 fstat
0.00 0.000021 0 43 munmap
0.00 0.000019 1 24 getpeername
0.00 0.000018 1 24 getsockname
0.00 0.000014 1 24 getsockopt
0.00 0.000013 1 16 mprotect
0.00 0.000008 0 22 openat
0.00 0.000003 1 5 rt_sigaction
0.00 0.000003 2 2 nanosleep
0.00 0.000001 1 2 sigaltstack
0.00 0.000000 0 2 access
0.00 0.000000 0 3 clone
0.00 0.000000 0 3 set_robust_list
100.00 6.906675 171973 1243 total
`
Anyone else seeing similar?