Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

When I start emby plugin, whole FreeNAS System is busy

DD4711

Member
Joined
Nov 19, 2018
Messages
83
Hello,

I just installed the emby plugin and mounted my photo share. When I start the plugin my whole Server is busy. Mostly I can't even SSH my server. An alert is coming up: smartd is not running. No other services are usable lik web or the FreeNAS GUI. I have to shut down the Server with the Power Off Button.

That's not normal. I suppose emby is scanning my photos and is creating thumbnails. I have about 12.000 photos!

I can't also see that the CPU or other resources are completely busy:

Code:
last pid: 10177;  load averages:  0.70,  0.72,  0.66                                                             up 0+00:33:41  09:54:15
105 processes: 2 running, 103 sleeping
CPU:  5.6% user,  0.0% nice,  3.2% system,  0.7% interrupt, 90.5% idle
Mem: 2949M Active, 377M Inact, 6062M Wired, 5997M Free
ARC: 4184M Total, 2490M MFU, 1394M MRU, 2292K Anon, 38M Header, 260M Other
     943M Compressed, 2514M Uncompressed, 2.67:1 Ratio
Swap: 2048M Total, 2048M Free

  PID USERNAME    THR PRI NICE   SIZE    RES STATE   C   TIME    WCPU COMMAND
 6452 root         13  20    0  3135M   316M CPU1    1   4:29  16.30% bhyve
 6426 root         11  20    0 87052K 61528K nanslp  1   0:06   0.49% collectd
 9986 root          1  20    0 44156K 38664K vlruwk  1   0:01   0.14% python3.6
 9630 root          1  20    0 59376K 54028K vlruwk  0   0:02   0.13% python3.6
 9584 root          1  20    0  7940K  4072K CPU0    0   0:01   0.12% top
10096 root          1  20    0 45436K 40168K vlruwk  0   0:01   0.08% python3.6
 9588 root          1  20    0 30148K 26320K vlruwk  1   0:03   0.08% python3.6
 9719 root          1  20    0 67228K 61156K vlruwk  0   0:02   0.07% python3.6
 9702 root          1  20    0 59648K 54956K vlruwk  0   0:02   0.07% python3.6
 9189    989       12  20    0   329M   280M uwait   1   0:54   0.06% mono-sgen
10174 root          1  20    0   248K   140K vlruwk  1   0:00   0.04% sh


bhyve is using more resources then without emby, but I can't see any "100%" used resources...

Does someone have those issues, too? Can I do something against it? I just tried to set embys transcoding process to 1 thread and dynamic transcode speed. It is a bit better but all the FreeNAS Services are responding veeeery slow.
 

DD4711

Member
Joined
Nov 19, 2018
Messages
83
I cannot see at the moment, that emby is scanning something. Planned Tasks show that they ran sometimes in the past expect transcoding. Transcoding never ran as there's no timestamp for last scan.

This is top of the jail:

Code:
root@emby:/ # top

last pid: 12257;  load averages:  0.83,  0.88,  0.84                                                             up 0+01:01:10  10:21:44
6 processes:   1 running, 5 sleeping
CPU: 13.8% user,  0.0% nice,  3.4% system,  0.0% interrupt, 82.8% idle
Mem: 3366M Active, 526M Inact, 6203M Wired, 5289M Free
ARC: 4280M Total, 2557M MFU, 1412M MRU, 3142K Anon, 40M Header, 268M Other
     975M Compressed, 2989M Uncompressed, 3.07:1 Ratio
Swap: 2048M Total, 2048M Free

  PID USERNAME    THR PRI NICE   SIZE    RES STATE   C   TIME    WCPU COMMAND
12163 root          1  20    0  7916K  3172K CPU0    0   0:00   0.16% top
 9189 emby         10  20    0   334M   285M uwait   0   0:58   0.02% mono-sgen
12111 root          1  20    0  7488K  3820K pause   0   0:00   0.00% tcsh
 9200 root          1  20    0  6464K  2392K nanslp  1   0:00   0.00% cron
 9133 root          1  20    0  6412K  2380K select  0   0:00   0.00% syslogd
 9188 emby          1  21    0  6388K  2072K piperd  0   0:00   0.00% daemon
 

emarj

Junior Member
Joined
Feb 7, 2018
Messages
14
The same happens to me. With some movies Emby was working fine until I added my music library (approx 1 TB of mp3 files). I leaved it scanning and now the entire library is showing in Emby web interface but in few minutes from when I start the Emby jail my entire box becomes unresponsive as you described.

Even for me top does not show anything weird, but the system is unusable. Everything, and I mean everything, is slow as hell or not working.

Apparently, the same is happening with my Nextcloud jail. At the moment the only reasonable thing it to leave those jails off.

I should add that this happened on both of my boxes.
 

emarj

Junior Member
Joined
Feb 7, 2018
Messages
14
I open a discussion related to this issue here: https://www.ixsystems.com/community...by-and-nextcloud-hang-the-whole-system.80773/

As I said, I identified the problem is this a new 1TB library of mp3 files. By deleting the mount from the jail, the system seems stable.
The problem seems not to be caused only by the size of the library, the system is working fine with a 2TB library of movies and 50GB library of mp3.

Maybe, and this might be as in your case, is a library made of lots of small files... I don't know really
 
Top