Jump to content

casperse

Members
  • Posts

    810
  • Joined

  • Last visited

Posts posted by casperse

  1. 33 minutes ago, mgutt said:

    First process is SHFS. Something is still writing to / reading from "/mnt/user/".

     

    1.) Your docker.img path uses /mnt/cache?

    Yes I pretty much have /Cache/ written everywhere now :-)

    image.png.bf05320959283447a321d729e51fc406.png 

    33 minutes ago, mgutt said:

    2.) Did you disable Heartbeat? (The Link contains a command to monitor writes to the docker.img as well)

    Funny I said that it looked like a heartbeat didn't know there actually was one! (I will disable it when there is no traffic and test again)

    Thanks!

  2. 3 hours ago, mgutt said:

    No problem as the Preloader default setting is 50% of the free RAM. This means there are still 50% left for the subtitles. Except you set a much higher value or you have much less of free RAM. But you are right, the best would be to parse only those folders, which contain preloaded video files. Will think about that.

    Maybe it's not the size of the srt files but the fact that they are located across 24 drives? 

    Anyway your code is solid my server doesn't crash and it still run perfectly! just take some time LOL (I kept it at default 50%)

  3. On 10/21/2020 at 10:50 PM, mgutt said:

    Are you sure? SRT files are loaded AFTER all clips haven been preloaded. And yes, it loads ALL SRT files into the RAM (as they are small and I'm too lazy to write a function that checks dependencies between clips and SRT files ^^).

    All of the srt files? for Movies & TV shows?! WOAW

    I have a average of 3-4 srt files (Nordic TV sometime also german close to DK - for each TV show and most movies) how does it have enough space left for loading the right subtitles?

    Just did a count on TV shows alone and I have around +40K srt files - so now I understand why it did run "forever"

    Average srt file is 30-45K = 1G Ram (TV only)

     

  4. So I did the change to all appdata path to /cache/

    (If I ever update my cache drive I need to remember to change this back before moving it back to the array! LOL)

     

    I then started to shutdown every docker! and every VM down! so only Plex docker was left running:

    image.thumb.png.a6fcca1e3755e38bd144bcc07bf71cdd.png

     

    And I keep getting these Bump as a heartbeat? So only thing left is Unraid Apps (Can not stop them, but I can start to uninstall them?)

    Or its the Plex inc Docker? that somehow are different than the others? (I could try another one?)

    Almost given up now! :-) 

     

  5. 2 minutes ago, mgutt said:

    Maybe this will solve it. Because it does not make sense to have I/O wait on an NVMe. An NVMe has a huge bandwith and allows (instead to SATA) parallel access. Or do you use a low-grade NVMe with QLC flash / non SLC Cache / no RAM?

     

    I got this one: Samsung SSD 970 EVO Plus 2TB the fastest I could get around a year ago! (Plex poster scroll loading :D)

    So this should help I/O wait

  6. 20 hours ago, mgutt said:

    Do you already use direct disk access (replace /mnt/user/... against /mnt/cache/...) for Plex appdata, docker.img and other docker appdata containers, using the cache only?

     

    I see what you mean!

    I only went into the dockers of Plex/Emby and changed the path to /cache/ I should do that for all of the running dockers /appdata/ path!

    I come back and report my findings when that's done  ;)

  7. Hmm yes I do have allot of things running on the server!

    But I did manage to get individual Sleep of drives working by having separate UAD for download and other things (There is a nice FAQ about this setup in the forum) - and things I don't want to have on the array

    And yes I have allot of apps running 24/7

     

    I think the cache is the problem!

    Plex and all appdata is located on the CACHE drive NVME drive and its the same drive that is used as cache creating the high I/O?

     

    So I cant use Plex %CPU because everything is on my cache drive - But I still experience "slow" playback from Plex at strange hours because the other disk is in sleep state - I would need to find another trigger, to bad you cant set Plex user web activity = Spin-up 🙂 

     

     

     

  8. Hi mgutt

     

    Just wanted to let you know that I just tried your script, and I think its working 100%

     

    Logfile:

    Preload /mnt/user/movies/Movies/Friends with Kids (2012)/Friends with Kids (2012) [Bluray.720p.x264.8Bit.DTS.5.1].mkv (6.835s)
    Preload /mnt/user/movies/Movies/Transylvania 6-5000 (1985)/Transylvania 6-5000 (1985) [Bluray.720p.x264.8Bit.DTS.2.0].mkv (0.337s)
    Script Starting Oct 21, 2020 20:20.51
    
    Full logs for this script are available at /tmp/user.scripts/tmpScripts/Plex Preloader v0.7/log.txt
    
    Script Finished Oct 21, 2020 20:20.51

    Update: Did a test added "TV Shows" and I could see srt files being loaded (Running Unraid 6.8.3)

    So how to get 1TB of memory!!! LOL

    Great work, you have really made a big impact on my Plex server!

     

  9. 5 minutes ago, mgutt said:

    Really strange. Maybe the container CPU load includes I/O wait? Because your top results show permanent wait (1.4, 0.7, 0.5 and 1.0). This means something is reading / writing data from/to HDD/SSD and the volume answers not fast enough.

     

    Please repeat the test, but this time check all processes:

    
    top -c

    I'll bet its unraid's SHFS process ^^

    image.thumb.png.4e34ac980fa63bd6f4a0ab861ecc84bf.png

     

    I can't see what it is, hope you can :-)

  10. 22 hours ago, mgutt said:

    When this happens execute the following to see all Plex processes

     

     top -b -c -d 5 | grep -i -E "(top -|tasks:|%cpu|mem:|swap:|plex)"

     

    I guess Plex:

    - rescans the library

    - Plex generates Thumbnails

    - Plex tries to find tv show intros (so they can be skipped)

     

     

     

    So I did run both script at the same time:

    image.png.53de2bc1085f02ff29c9ab85336f63bc.png

     

    But below I don't see the CPU go above 1%

    image.thumb.png.66c0273985078b6bf21f288a99370fc4.png

    Not a single time!

    This is really strange

     

     

  11. I think I found the solution you have to add "ata-" then it works

        <disk type='block' device='disk'>
          <driver name='qemu' type='raw' cache='writeback'/>
          <source dev='/dev/disk/by-id/ata-ST10000NE0004-1ZF101_ZA21DG4A'/>
          <target dev='hdd' bus='sata'/>
          <address type='drive' controller='1' bus='0' target='0' unit='3'/>
        </disk>

     

  12. Ok so I started changing my drives:

        <disk type='block' device='disk'>
          <driver name='qemu' type='raw' cache='writeback'/>
          <source dev='/dev/disk/by-id/ST10000NE0004-1ZF101_ZA21DG4A'/>
          <target dev='hdd' bus='sata'/>
          <address type='drive' controller='1' bus='0' target='0' unit='3'/>
        </disk>

    Serial from the dashboard ID:

    image.png.0038d4487a32952ca812591627427cec.png

     

    And trying to start I get:

    image.png.c479719a7470b20b4d0ded9bf48e253e.png

    Update tried the serial number I could save the VM but it couldnt start

     

    Sorry @itimpi this doesn't seem to work?

     

  13. 3 minutes ago, itimpi said:

    If you look under /dev/disk at the Linux level you will see several folders giving ways that drives are identified in an invariant manner.

     

    So how would I go about defining that in a VM so I don't have to update this all the time?

    image.thumb.png.f0b77ad569f3e5568da7f425c05d48f1.png

        <disk type='block' device='disk'>
          <driver name='qemu' type='raw' cache='writeback'/>
          <source dev='/dev/sdn'/>
          <target dev='hdd' bus='sata'/>
          <address type='drive' controller='1' bus='0' target='0' unit='3'/>
        </disk>

    I guess people that passthrough HD's and GPU have some fix to do this

     

  14. 3 hours ago, itimpi said:

    The sdX designations are always subject to change as they are assigned dynamically by Linux.    Unraid does not rely on the device name to identify drives, but instead the disk serial number.

    But I was told using passthrough from a drive to a VM I should use the sdX?

    Is there another way to secure that it doesn't break after af reboot?

     

  15. Hi All

     

    I was playing with a script (Yes I know don't use script's if you don't understand them 100%)

    Anyway this was a backup to a UAD drive r-sync incremental but I did some path wrong and I got this

     

    image.thumb.png.2e5ca0f797c1590e120498e052c7bfb1.png

     

    And just before this it stopped my VM and wrote:

    image.png.8ac11bac84532adde0eed71ca78b5af1.png

     

    The positive is that I do have access to MC:

    image.png.bae4daa5ab1fb7c55add5df46382b646.png

    So what can or should I remove before trying another reboot?

     

    Br

    Casperse

     

     

     

     

    I have checked the Flash/Cache/and CPU and memory load and everything seems ok

    But after reboot I am stuck at:

    image.png.c868e74bbf5fedfc17358bb2862171f4.png

     

     

     

     

     

     

     

  16.  

    You got me thinking about the missing DB backup of the Plex Appdata folder being very large on the NVme

    So I wanted to use your incremental backup script, but I am not sure if I need to remove the cache in the path

    and also not sure if this supports UAD for drives. I am trying to create the backup on a drive not the Array

    Like this:

     

    # settings
    user_share="/appdata/plex"
    backup_share="/mnt/disks/Drive1/backup" 
    days=14 # preserve backups of the last X days
    months=12 # preserve backups of the first day of the last X month
    years=3 # preserve backups of the first january of the last X years
    fails=3 # preserve the recent X failed backups
    .....

    But cache path fails (Got it working with normal path)

    Update this will create a backup on my UAD disk with path:

    \Drive1\backup\appdata\plex\.20201021_144056

     

    But I am having a little problem using the cache path, I tried to replace all the /mnt/user/ in the script but keep getting errors

    Is it better just to use the /mnt/user and not the cache direct for the script to work?

    (You got me using /cache/ every now! 🙂 )

     


     

     

  17. On 10/20/2020 at 2:49 AM, debit lagos said:

    I've read folks using those video cards down to 8x, but nothing about 4x.  If anything, the card will register but you won't be getting anything close to the potential of that card out of it.

     

    Just from card specs alone, you really need another 8x slot at minimum.   If anything, everything will probably work.  The Nvidia card will probably not give you the potential it has due to the limited lanes it's riding on.  Motherboard selection was the first thing that I spent weeks looking at to ensure that if I wanted to expand capabilities in the future, I have bus speeds and lanes to support them.  10G NIC is a good example of it.  I'm using a Asus M.2 Gen 2 NVME adapter that holds 4x NVME cards.  It needs 4x4x4x4 PCIE slot, which my motherboard supports.

     

    Just some things.  We can chat here or in PM's if you want.  Hopefully my thoughts are helpful. 

    Thanks for all your input!

    Seem I can go one of two way's now

     

    1) Remove the P2000 and use the built in IGU for encoding instead (Speed/QA?) that would free up a PCIe x8 slot for one 2x10GB x8 card)

    2) Go back and look what the cost would be to upgrade the server (More PCI slots and total of 64x instead of 32x) and more than 64G ram)

     

    Always come down to "Time" = $$$ 😫

  18. Hi @mgutt

     

    This is another great idea you have!

    I think mostly my drives doesn't spin down before evening, but I have had complains late at night that the stream did not start

    - and then you had to press play again? (Spin-up) (Not the end of the world but if I can fix it...then why not ;-))

     

    So running this on Plex I get these spikes?

    I checked and I have no TV-recording, no playback, and no scanning of library

    What do you think could be causing these spikes?

     

    image.png.0256fba114f38ea94a329a41b5b87772.png

    Highest value was 45.97

     

    From Plex

    image.thumb.png.8130665d29eb8dbb7219d7a3ec3373e1.png

  19. Hi All

     

    For a very long time I had problems using the Unraid certf. on a UNIFI router and I had to make these changes:

     

    After that I only used my local IP address after that!

    But by mistake I enabled SLL and I did remove it afterwards in the file ident.cfg file

     

    # Generated settings:
    NAME="PLEXZONE"
    timeZone="Europe/Paris"
    COMMENT="The Ultimate Media Server"
    SECURITY="user"
    WORKGROUP="WORKGROUP"
    DOMAIN=""
    DOMAIN_SHORT=""
    hideDotFiles="no"
    localMaster="yes"
    enableFruit="no"
    USE_NETBIOS="yes"
    USE_WSD="yes"
    WSD_OPT=""
    USE_NTP="yes"
    NTP_SERVER1="time1.google.com"
    NTP_SERVER2="time2.google.com"
    NTP_SERVER3="time3.google.com"
    NTP_SERVER4="time4.google.com"
    DOMAIN_LOGIN="Administrator"
    DOMAIN_PASSWD=""
    SYS_MODEL="Xeon E-2100G based 24-bay NAS system"
    SYS_ARRAY_SLOTS="24"
    SYS_CACHE_SLOTS="1"
    USE_SSL="no"
    PORT="80"
    PORTSSL="443"
    LOCAL_TLD="local"
    BIND_MGT="no"
    USE_TELNET="yes"
    PORTTELNET="23"
    USE_SSH="yes"
    PORTSSH="22"
    USE_UPNP="no"
    START_PAGE="Main"

    # Generated settings:
    NAME="Tower"
    timeZone="Europe/Paris"
    COMMENT="The Ultimate Media Server"
    SECURITY="user"
    WORKGROUP="WORKGROUP"
    DOMAIN=""
    DOMAIN_SHORT=""
    hideDotFiles="no"
    localMaster="yes"
    enableFruit="no"
    USE_NETBIOS="yes"
    USE_WSD="yes"
    WSD_OPT=""
    USE_NTP="yes"
    NTP_SERVER1="time1.google.com"
    NTP_SERVER2="time2.google.com"
    NTP_SERVER3="time3.google.com"
    NTP_SERVER4="time4.google.com"
    DOMAIN_LOGIN="Administrator"
    DOMAIN_PASSWD=""
    SYS_MODEL="Xeon E-2100G based 24-bay NAS system"
    SYS_ARRAY_SLOTS="24"
    SYS_CACHE_SLOTS="1"
    USE_SSL="no"   <------- ok?
    PORT="80"
    PORTSSL="443"
    LOCAL_TLD="local"
    BIND_MGT="no"
    USE_TELNET="yes"
    PORTTELNET="23"
    USE_SSH="yes"
    PORTSSH="22"
    USE_UPNP="no"
    START_PAGE="Main"

    I also removed any certificate in the folder: \flash\config\ssl

    (I have a SWAG/Lets encrypt docker running using port 443 so I guess that would also interfere with the auto creation of a temp Unraid certificate?)

     

    But how do I re-enable connection by IP to my server without rebooting the server?

    No matter what I do now right now it will translate my local IP to a Servername.local that breaks my access to the server?

     

    I cant remember what I need to do? Very long time ago, I removed this with the help of Limetech support because I couldnt connect to my server

     

    My GO file is like this:

    #!/bin/bash
    # Start the Management Utility
    /usr/local/sbin/emhttp &
    
    #Setup drivers for iGPU hardware transcoding in Plex
    modprobe i915
    chown -R nobody:users /dev/dri
    chmod -R 777 /dev/dri

    And in my Ident menu I dont have any http/Sll options available

    I have tried googling and reading the forum post but so far no luck

     

     

     

     

     

     

     

     

     

     

     

     

     

×
×
  • Create New...