2019-07-30, 07:33
[UPDATE: 07/21/2019]
Working on manually installing Nightly in Debian see ( This ) post . Also trying to get VA hardware rendering working. Along with disabling swap and seeing if I can force fileCache to use RAM only ..
Looks like it 'helped' still not using the 3GIG HW rendering ( I think the 3gigs is ram not sure how these onboard videocards work but from what I understand this board can handel 4K so WTF...by setting memorysize high and readfactor low it does not cache much at all so I dont have the issue. not sure what even cacheing the entire video does ... I see little to no difference between the two ... tested fine with 32x playback for en entire 1 1/2hr movie and no lag .. I got nothing ...problem sloved ?? I still would like to get GPU playback working so the CPU does not have to work as hard but seeing SW in playback info menu and the VA errors and highish CPU I assume its not using GPU playback.
cat /home/plex/.kodi/userdata/advancedsettings.xml
<advancedsettings>
<cache>
<buffermode>1</buffermode>
<memorysize>5368709120</memorysize>
<readfactor>4</readfactor>
</cache>
</advancedsettings>
Reference:
https://wiki.archlinux.org/index.php/Har...celeration ( give you an idea about video support for *nix )
https://forums.plex.tv/t/i5-9600k-intel-...ing/394742
https://github.com/intel/media-driver
Screenshot
https://drive.google.com/file/d/1-ATm-iL...sp=sharing
Added Kodi log
https://drive.google.com/file/d/1v_Z9YFW...sp=sharing
---------------
* seems to be fine at first on a reboot ...still lags in the UI but player works fine ( 07/21/2019)
Seems to freze the entire system even over SSH ...
VLC software rendering works fine but GPU or CPU in Kodi laggs
Video starts just fine but after about a minute or 5 I get the lag and sometimes with larger files it lags out Kodi for 5-10 min and/or crashes
CPU is almost 0%
GPU is at 13-17% even when paused and fully (bufferd)
"kodi.bin [fileCache]" is running when I have these issues
searching for "lag" or anything of the such returns a bunch of BS about garbage streamin plugins online for Kodi ...
complied and installed libva from git same issue
Reference:
https://serverfault.com/questions/659164...disk-write
https://erikugel.wordpress.com/tag/tune2fs/
ERROR: VAAPI::CheckSuccess error: unknown libva error
-----------------
GRUB_CMDLINE_LINUX="spectre_v2=off nopti pti=off acpi=off apm=off"
------------------
100% IO DISK USAGE ?
jbd2/sda1-8
kworker/u24:1+flush-8:0
------
at /sys/kernel/debug/tracing/trace_pipe
jbd2/sda1-8-294 [008] .... 1312.036884: jbd2_run_stats: dev 8,1 tid 79826293 wait 0 request_delay 0 running 3244 locked 336 flushing 0 logging 4816 handle_count 18723 blocks 22 blocks_logged 23
jbd2/sdb1-8-557 [002] .... 1320.919783: jbd2_run_stats: dev 8,17 tid 49649 wait 0 request_delay 0 running 5016 locked 0 flushing 0 logging 20 handle_count 14 blocks 1 blocks_logged 2
jbd2/sda1-8-294 [008] .... 1323.190885: jbd2_run_stats: dev 8,1 tid 79826294 wait 0 request_delay 0 running 4816 locked 0 flushing 0 logging 11156 handle_count 28200 blocks 26 blocks_logged 27
jbd2/sda1-8-294 [003] .... 1324.531622: jbd2_run_stats: dev 8,1 tid 79826295 wait 0 request_delay 10420 running 11148 locked 0 flushing 0 logging 1340 handle_count 60376 blocks 26 blocks_logged 27
---------------
I enabled the following on media drives ( not boot/OS ) in fstab
# reference https://erikugel.wordpress.com/tag/tune2fs/ http://dcjtech.info/topic/etcfstab-options/
noatime,nodiratime,data=writeback,barrier=0,noblock_validity,nodelalloc,nouser_xattr,noacl
tune2fs -o journal_data_writeback /dev/sdb1
tune2fs -O ^has_journal /dev/sdb1
tune2fs -o journal_data_writeback /dev/sdc1
tune2fs -O ^has_journal /dev/sdc1
tune2fs -o journal_data_writeback /dev/sdd1
tune2fs -O ^has_journal /dev/sdd1
tune2fs -O ^has_journal /dev/sdd1
--------------------
lshw -c video
*-display
description: VGA compatible controller
product: UHD Graphics 630 (Desktop)
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 00
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:126 memory:a0000000-a0ffffff memory:90000000-9fffffff ioport:4000(size=64) memory:c0000-dffff
------------------------
vainfo
error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
libva info: VA-API version 0.39.4
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit
------------------------
phoronix-test-suite system-info
PROCESSOR: Intel Core i7-8700 @ 4.60GHz
Core Count: 6
Thread Count: 12
Extensions: SSE 4.2 + AVX2 + AVX + RDRAND + FSGSBASE
Cache Size: 12288 KB
Microcode: 0xb4
Scaling Driver: intel_pstate powersave
GRAPHICS: Intel UHD 630
Frequency: 1200MHz
Display Driver: modesetting 1.19.2
Monitor: AV Receiver
Screen: 1280x720
MOTHERBOARD: ASRock H310M-HDV
BIOS Version: P4.10
Chipset: Intel Cannon Lake PCH
Audio: Realtek ALC887-VD
Network: Realtek RTL8111/8168/8411
MEMORY: 2 x 8192 MB DDR4-2667MHz CMK16GX4M2Z3466C16
DISK: 128GB SAMSUNG MZ7TE128
+ 10001GB Western Digital WD100EMAZ-00
+ 4001GB Western Digital WD4003FZEX-0
+ 5001GB Expansion Desk
File-System: ext4
Mount Options: errors=remount-ro relatime rw
Disk Scheduler: MQ-DEADLINE
OPERATING SYSTEM: Debian 9.9
Kernel: 4.19.0-0.bpo.5-amd64 (x86_64)
Desktop: Xfce
Display Server: X Server 1.19.2
Compiler: GCC 4.9.2
Working on manually installing Nightly in Debian see ( This ) post . Also trying to get VA hardware rendering working. Along with disabling swap and seeing if I can force fileCache to use RAM only ..
Looks like it 'helped' still not using the 3GIG HW rendering ( I think the 3gigs is ram not sure how these onboard videocards work but from what I understand this board can handel 4K so WTF...by setting memorysize high and readfactor low it does not cache much at all so I dont have the issue. not sure what even cacheing the entire video does ... I see little to no difference between the two ... tested fine with 32x playback for en entire 1 1/2hr movie and no lag .. I got nothing ...problem sloved ?? I still would like to get GPU playback working so the CPU does not have to work as hard but seeing SW in playback info menu and the VA errors and highish CPU I assume its not using GPU playback.
cat /home/plex/.kodi/userdata/advancedsettings.xml
<advancedsettings>
<cache>
<buffermode>1</buffermode>
<memorysize>5368709120</memorysize>
<readfactor>4</readfactor>
</cache>
</advancedsettings>
Reference:
https://wiki.archlinux.org/index.php/Har...celeration ( give you an idea about video support for *nix )
https://forums.plex.tv/t/i5-9600k-intel-...ing/394742
https://github.com/intel/media-driver
Screenshot
https://drive.google.com/file/d/1-ATm-iL...sp=sharing
Added Kodi log
https://drive.google.com/file/d/1v_Z9YFW...sp=sharing
---------------
* seems to be fine at first on a reboot ...still lags in the UI but player works fine ( 07/21/2019)
Seems to freze the entire system even over SSH ...
VLC software rendering works fine but GPU or CPU in Kodi laggs
Video starts just fine but after about a minute or 5 I get the lag and sometimes with larger files it lags out Kodi for 5-10 min and/or crashes
CPU is almost 0%
GPU is at 13-17% even when paused and fully (bufferd)
"kodi.bin [fileCache]" is running when I have these issues
searching for "lag" or anything of the such returns a bunch of BS about garbage streamin plugins online for Kodi ...
complied and installed libva from git same issue
Reference:
https://serverfault.com/questions/659164...disk-write
https://erikugel.wordpress.com/tag/tune2fs/
ERROR: VAAPI::CheckSuccess error: unknown libva error
-----------------
GRUB_CMDLINE_LINUX="spectre_v2=off nopti pti=off acpi=off apm=off"
------------------
100% IO DISK USAGE ?
jbd2/sda1-8
kworker/u24:1+flush-8:0
------
at /sys/kernel/debug/tracing/trace_pipe
jbd2/sda1-8-294 [008] .... 1312.036884: jbd2_run_stats: dev 8,1 tid 79826293 wait 0 request_delay 0 running 3244 locked 336 flushing 0 logging 4816 handle_count 18723 blocks 22 blocks_logged 23
jbd2/sdb1-8-557 [002] .... 1320.919783: jbd2_run_stats: dev 8,17 tid 49649 wait 0 request_delay 0 running 5016 locked 0 flushing 0 logging 20 handle_count 14 blocks 1 blocks_logged 2
jbd2/sda1-8-294 [008] .... 1323.190885: jbd2_run_stats: dev 8,1 tid 79826294 wait 0 request_delay 0 running 4816 locked 0 flushing 0 logging 11156 handle_count 28200 blocks 26 blocks_logged 27
jbd2/sda1-8-294 [003] .... 1324.531622: jbd2_run_stats: dev 8,1 tid 79826295 wait 0 request_delay 10420 running 11148 locked 0 flushing 0 logging 1340 handle_count 60376 blocks 26 blocks_logged 27
---------------
I enabled the following on media drives ( not boot/OS ) in fstab
# reference https://erikugel.wordpress.com/tag/tune2fs/ http://dcjtech.info/topic/etcfstab-options/
noatime,nodiratime,data=writeback,barrier=0,noblock_validity,nodelalloc,nouser_xattr,noacl
tune2fs -o journal_data_writeback /dev/sdb1
tune2fs -O ^has_journal /dev/sdb1
tune2fs -o journal_data_writeback /dev/sdc1
tune2fs -O ^has_journal /dev/sdc1
tune2fs -o journal_data_writeback /dev/sdd1
tune2fs -O ^has_journal /dev/sdd1
tune2fs -O ^has_journal /dev/sdd1
--------------------
lshw -c video
*-display
description: VGA compatible controller
product: UHD Graphics 630 (Desktop)
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 00
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:126 memory:a0000000-a0ffffff memory:90000000-9fffffff ioport:4000(size=64) memory:c0000-dffff
------------------------
vainfo
error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
libva info: VA-API version 0.39.4
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit
------------------------
phoronix-test-suite system-info
PROCESSOR: Intel Core i7-8700 @ 4.60GHz
Core Count: 6
Thread Count: 12
Extensions: SSE 4.2 + AVX2 + AVX + RDRAND + FSGSBASE
Cache Size: 12288 KB
Microcode: 0xb4
Scaling Driver: intel_pstate powersave
GRAPHICS: Intel UHD 630
Frequency: 1200MHz
Display Driver: modesetting 1.19.2
Monitor: AV Receiver
Screen: 1280x720
MOTHERBOARD: ASRock H310M-HDV
BIOS Version: P4.10
Chipset: Intel Cannon Lake PCH
Audio: Realtek ALC887-VD
Network: Realtek RTL8111/8168/8411
MEMORY: 2 x 8192 MB DDR4-2667MHz CMK16GX4M2Z3466C16
DISK: 128GB SAMSUNG MZ7TE128
+ 10001GB Western Digital WD100EMAZ-00
+ 4001GB Western Digital WD4003FZEX-0
+ 5001GB Expansion Desk
File-System: ext4
Mount Options: errors=remount-ro relatime rw
Disk Scheduler: MQ-DEADLINE
OPERATING SYSTEM: Debian 9.9
Kernel: 4.19.0-0.bpo.5-amd64 (x86_64)
Desktop: Xfce
Display Server: X Server 1.19.2
Compiler: GCC 4.9.2