Question / Help CPU Load very high and over 2000 threads

AlexH

New Member
I do not understand why obs consume so many resources..

On my personal laptop 3 core and 8GB of RAM consumes up to 15% and on my dedicat server with 2 CPU and 24 core average is 70% and sometime even 100%.

I can someone explain why?

d29d597ba89f4a9581f8409e090bef32.png


On my laptop o use windows 10 and on my server i try with windows 7, windows server 2012, windows 8.1, and same rezult, very big cpu load.
 

AlexH

New Member
18:01:48.384: CPU Name: Intel(R) Xeon(R) CPU L5640 @ 2.27GHz
18:01:48.386: CPU Speed: 2261MHz
18:01:48.387: Physical Cores: 12, Logical Cores: 24
18:01:48.387: Physical Memory: 4095MB Total, 4095MB Free (NOTE: 2 or 4 gigs max is normal for 32bit programs)
18:01:48.387: Windows Version: 6.3 Build 9600 (revision: 17031)
18:01:48.387: Running as administrator: true
18:01:48.387: Aero is Enabled (Aero is always on for windows 8 and above)
18:01:48.611: OBS 0.15.4 (windows)
18:01:48.611: ---------------------------------
18:01:48.621: ---------------------------------
18:01:48.621: audio settings reset:
18:01:48.621: samples per sec: 44100
18:01:48.621: speakers: 2
18:01:48.737: ---------------------------------
18:01:48.737: Initializing D3D11..
18:01:48.738: Available Video Adapters:
18:01:48.832: Loading up D3D11 on adapter Microsoft Basic Render Driver (0)
18:01:48.942: D3D11 loaded sucessfully, feature level used: 45056
18:01:50.792: ---------------------------------
18:01:50.792: video settings reset:
18:01:50.792: base resolution: 1366x768
18:01:50.792: output resolution: 1092x614
18:01:50.792: fps: 30/1
18:01:50.792: format: NV12
18:01:50.793: ---------------------------------
18:01:51.042: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
18:01:51.538: LoadLibrary failed for 'nvEncodeAPI.dll', error: 126
18:01:56.155: Couldn't find VLC installation, VLC video source disabled
18:01:57.728: No blackmagic support
18:01:58.052: ---------------------------------
18:01:58.053: Loaded Modules:
18:01:58.053: win-wasapi.dll
18:01:58.053: win-mf.dll
18:01:58.053: win-dshow.dll
18:01:58.053: win-decklink.dll
18:01:58.053: win-capture.dll
18:01:58.053: vlc-video.dll
18:01:58.053: text-freetype2.dll
18:01:58.053: rtmp-services.dll
18:01:58.053: obs-x264.dll
18:01:58.053: obs-transitions.dll
18:01:58.053: obs-qsv11.dll
18:01:58.053: obs-outputs.dll
18:01:58.053: obs-filters.dll
18:01:58.053: obs-ffmpeg.dll
18:01:58.053: image-source.dll
18:01:58.054: coreaudio-encoder.dll
18:01:58.054: ==== Startup complete ===============================================
18:01:58.122: Service '' not found
18:01:58.172: All scene data cleared
18:01:58.172: ------------------------------------------------
18:01:58.229: Switched to scene 'radio1'
18:01:58.229: ------------------------------------------------
18:01:58.229: Loaded scenes:
18:01:58.229: - scene 'Scene':
18:01:58.229: - scene 'radio1':
18:01:58.229: ------------------------------------------------
18:01:58.814: Update check: last known remote version is 0.15.4
18:18:39.644: [Media Source 'Media Source']: settings:
18:18:39.644: input:
18:18:39.644: input_format: (null)
18:18:39.644: is_looping: no
18:18:39.644: is_forcing_scale: yes
18:18:39.644: is_hw_decoding: yes
18:18:39.644: is_clear_on_media_end: yes
18:18:39.644: restart_on_activate: yes
18:18:39.704: User added source 'Media Source' (ffmpeg_source) to scene 'radio1'
18:19:14.252: User Removed source 'Media Source' (ffmpeg_source) from scene 'radio1'
18:19:17.714: ==== Shutting down ==================================================
18:19:17.717: Switched to scene '(null)'
18:19:17.718: All scene data cleared
18:19:17.718: ------------------------------------------------
18:19:17.803: Freeing OBS context data
18:19:17.827: == Profiler Results =============================
18:19:17.827: run_program_init: 11364.6 ms
18:19:17.828: ┣OBSApp::AppInit: 71.2 ms
18:19:17.828: ┃ ┗OBSApp::InitLocale: 37.725 ms
18:19:17.828: ┗OBSApp::OBSInit: 10664.1 ms
18:19:17.828: ┣obs_startup: 63.943 ms
18:19:17.828: ┗OBSBasic::OBSInit: 9863.1 ms
18:19:17.828: ┣OBSBasic::InitBasicConfig: 0.654 ms
18:19:17.828: ┣OBSBasic::ResetAudio: 7.107 ms
18:19:17.828: ┣OBSBasic::ResetVideo: 2164.84 ms
18:19:17.828: ┣OBSBasic::InitOBSCallbacks: 0.033 ms
18:19:17.828: ┣OBSBasic::InitHotkeys: 0.103 ms
18:19:17.828: ┣obs_load_all_modules: 7258.76 ms
18:19:17.828: ┃ ┣obs_init_module(coreaudio-encoder.dll): 0.899 ms
18:19:17.828: ┃ ┣obs_init_module(image-source.dll): 0.012 ms
18:19:17.829: ┃ ┣obs_init_module(obs-ffmpeg.dll): 403.496 ms
18:19:17.829: ┃ ┣obs_init_module(obs-filters.dll): 0.018 ms
18:19:17.829: ┃ ┣obs_init_module(obs-outputs.dll): 0.005 ms
18:19:17.829: ┃ ┣obs_init_module(obs-qsv11.dll): 598.944 ms
18:19:17.829: ┃ ┣obs_init_module(obs-transitions.dll): 0.018 ms
18:19:17.829: ┃ ┣obs_init_module(obs-x264.dll): 0.004 ms
18:19:17.829: ┃ ┣obs_init_module(rtmp-services.dll): 391.07 ms
18:19:17.829: ┃ ┣obs_init_module(text-freetype2.dll): 363.445 ms
18:19:17.829: ┃ ┣obs_init_module(vlc-video.dll): 0.162 ms
18:19:17.829: ┃ ┣obs_init_module(win-capture.dll): 1217.66 ms
18:19:17.829: ┃ ┣obs_init_module(win-decklink.dll): 6.03 ms
18:19:17.829: ┃ ┣obs_init_module(win-dshow.dll): 50.276 ms
18:19:17.829: ┃ ┣obs_init_module(win-mf.dll): 28.821 ms
18:19:17.830: ┃ ┣obs_init_module(win-wasapi.dll): 0.014 ms
18:19:17.830: ┃ ┗reset_win32_symbol_paths: 11.366 ms
18:19:17.830: ┣OBSBasic::ResetOutputs: 43.357 ms
18:19:17.830: ┣OBSBasic::CreateHotkeys: 24.323 ms
18:19:17.830: ┣OBSBasic::InitService: 0.348 ms
18:19:17.830: ┣OBSBasic::InitPrimitives: 11.699 ms
18:19:17.830: ┗OBSBasic::Load: 94.859 ms
18:19:17.830: obs_hotkey_thread(25 ms): min=0.004 ms, median=0.008 ms, max=114.53 ms, 99th percentile=2.63 ms, 99.9486% below 25 ms
18:19:17.830: audio_thread(Audio): min=0 ms, median=0.036 ms, max=100.294 ms, 99th percentile=0.072 ms
18:19:17.830: obs_video_thread(33.3333 ms): min=0.978 ms, median=1.581 ms, max=168.671 ms, 99th percentile=17.45 ms, 99.8057% below 33.333 ms
18:19:17.830: ┣tick_sources: min=0 ms, median=0.01 ms, max=114.035 ms, 99th percentile=0.015 ms
18:19:17.830: ┣render_displays: min=0.001 ms, median=0.298 ms, max=155.028 ms, 99th percentile=15.083 ms
18:19:17.831: ┗output_frame: min=0.672 ms, median=1.256 ms, max=168.667 ms, 99th percentile=1.541 ms
18:19:17.831: ┣gs_context(video->graphics): min=0.273 ms, median=0.622 ms, max=168.666 ms, 99th percentile=1.001 ms
18:19:17.831: ┃ ┣render_video: min=0.218 ms, median=0.573 ms, max=168.597 ms, 99th percentile=0.936 ms
18:19:17.831: ┃ ┃ ┣render_main_texture: min=0.018 ms, median=0.031 ms, max=23.301 ms, 99th percentile=0.073 ms
18:19:17.831: ┃ ┃ ┣render_output_texture: min=0.006 ms, median=0.073 ms, max=168.565 ms, 99th percentile=0.142 ms
18:19:17.831: ┃ ┃ ┣render_convert_texture: min=0.001 ms, median=0.071 ms, max=3.478 ms, 99th percentile=0.144 ms
18:19:17.831: ┃ ┃ ┗stage_output_texture: min=0 ms, median=0.365 ms, max=7.224 ms, 99th percentile=0.627 ms
18:19:17.831: ┃ ┣download_frame: min=0 ms, median=0.002 ms, max=59.862 ms, 99th percentile=0.009 ms
18:19:17.831: ┃ ┗gs_flush: min=0.027 ms, median=0.04 ms, max=26.224 ms, 99th percentile=0.137 ms
18:19:17.848: ┗output_video_data: min=0.305 ms, median=0.595 ms, max=15.005 ms, 99th percentile=0.826 ms
18:19:17.848: video_thread(video): min=0.001 ms, median=0.003 ms, max=0.292 ms, 99th percentile=0.01 ms
18:19:17.848: =================================================
18:19:17.848: == Profiler Time Between Calls ==================
18:19:17.848: obs_hotkey_thread(25 ms): min=24.039 ms, median=26.05 ms, max=140.075 ms, 32.9007% within ±2% of 25 ms (3.34199% lower, 63.7573% higher)
18:19:17.849: obs_video_thread(33.3333 ms): min=2.695 ms, median=33.333 ms, max=168.687 ms, 98.7228% within ±2% of 33.333 ms (0.684779% lower, 0.592413% higher)
18:19:17.849: =================================================
18:19:18.073: Number of memory leaks: 0
 

Attachments

  • 2016-08-09 18-01-47.txt
    8 KB · Views: 5

Sapiens

Forum Moderator
Your log contains no streaming/recording attempts so there's not much to see, however:

Loading up D3D11 on adapter Microsoft Basic Render Driver (0)

What kind of GPU are you using?
 

AlexH

New Member
this is the current log
Code:
18:19:22.893: CPU Name: Intel(R) Xeon(R) CPU           L5640  @ 2.27GHz
18:19:22.894: CPU Speed: 2261MHz
18:19:22.894: Physical Cores: 12, Logical Cores: 24
18:19:22.894: Physical Memory: 4095MB Total, 4095MB Free (NOTE: 2 or 4 gigs max is normal for 32bit programs)
18:19:22.894: Windows Version: 6.3 Build 9600 (revision: 17031)
18:19:22.894: Running as administrator: true
18:19:22.894: Aero is Enabled (Aero is always on for windows 8 and above)
18:19:22.908: OBS 0.15.4 (windows)
18:19:22.908: ---------------------------------
18:19:22.909: ---------------------------------
18:19:22.909: audio settings reset:
18:19:22.909:     samples per sec: 44100
18:19:22.909:     speakers:        2
18:19:22.910: ---------------------------------
18:19:22.910: Initializing D3D11..
18:19:22.911: Available Video Adapters:
18:19:22.914: Loading up D3D11 on adapter Microsoft Basic Render Driver (0)
18:19:22.915: D3D11 loaded sucessfully, feature level used: 45056
18:19:23.744: ---------------------------------
18:19:23.744: video settings reset:
18:19:23.744:     base resolution:   1366x768
18:19:23.744:     output resolution: 1092x614
18:19:23.744:     fps:               30/1
18:19:23.744:     format:            NV12
18:19:23.745: ---------------------------------
18:19:23.747: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
18:19:23.749: LoadLibrary failed for 'nvEncodeAPI.dll', error: 126
18:19:23.766: VLC found, VLC video source enabled
18:19:23.840: No blackmagic support
18:19:23.848: ---------------------------------
18:19:23.848:   Loaded Modules:
18:19:23.848:     win-wasapi.dll
18:19:23.848:     win-mf.dll
18:19:23.848:     win-dshow.dll
18:19:23.848:     win-decklink.dll
18:19:23.848:     win-capture.dll
18:19:23.848:     vlc-video.dll
18:19:23.848:     text-freetype2.dll
18:19:23.849:     rtmp-services.dll
18:19:23.849:     obs-x264.dll
18:19:23.849:     obs-transitions.dll
18:19:23.849:     obs-qsv11.dll
18:19:23.849:     obs-outputs.dll
18:19:23.849:     obs-filters.dll
18:19:23.849:     obs-ffmpeg.dll
18:19:23.849:     image-source.dll
18:19:23.849:     coreaudio-encoder.dll
18:19:23.849: ==== Startup complete ===============================================
18:19:23.850: Service '' not found
18:19:23.851: All scene data cleared
18:19:23.851: ------------------------------------------------
18:19:23.862: Switched to scene 'radio1'
18:19:23.863: ------------------------------------------------
18:19:23.863: Loaded scenes:
18:19:23.863: - scene 'Scene':
18:19:23.863: - scene 'radio1':
18:19:23.863: ------------------------------------------------
18:19:24.038: Update check failed: schannel: next InitializeSecurityContext failed: SEC_E_MESSAGE_ALTERED (0x8009030F) - The message or signature supplied for verification has been altered
18:19:36.537: User added source 'VLC Video Source' (vlc_source) to scene 'radio1'
18:20:59.039: User added source 'Image' (image_source) to scene 'radio1'
18:21:17.611: User added source 'Text (FreeType 2)' (text_ft2_source) to scene 'radio1'
18:23:26.288: rtmp-common.c: [initialize_output] Could not find service ''
18:23:26.294: rtmp-common.c: [initialize_output] Could not find service ''
18:23:26.391: rtmp-common.c: [initialize_output] Could not find service ''
18:23:45.213: rtmp-common.c: [initialize_output] Could not find service ''
18:24:00.634: Settings changed (stream 1)
18:24:00.634: ------------------------------------------------
18:24:03.503: ---------------------------------
18:24:03.503: [x264 encoder: 'simple_h264_stream'] preset: veryfast
18:24:03.503: [x264 encoder: 'simple_h264_stream'] profile: main
18:24:03.534: [x264 encoder: 'simple_h264_stream'] settings:
18:24:03.534:     rate_control: CBR
18:24:03.534:     bitrate:      2500
18:24:03.534:     buffer size:  2500
18:24:03.534:     crf:          0
18:24:03.534:     fps_num:      30
18:24:03.534:     fps_den:      1
18:24:03.534:     width:        1092
18:24:03.534:     height:       614
18:24:03.534:     keyint:       120
18:24:03.534:     vfr:          off
18:24:03.534:
18:24:03.603: [Media Foundation AAC: 'simple_aac']: encoder created
18:24:03.603:     bitrate: 160
18:24:03.603:     channels: 2
18:24:03.603:     sample rate: 44100
18:24:03.603:     bits-per-sample: 16
18:24:03.603:
18:24:03.603: [rtmp stream: 'simple_stream'] Connecting to RTMP URL rtmp://a.rtmp.youtube.com/live2...
18:24:03.734: [rtmp stream: 'simple_stream'] Interface: Hyper-V Virtual Ethernet Adapter #2 (ethernet, 4294 mbps)
18:24:04.045: [rtmp stream: 'simple_stream'] Connection to rtmp://a.rtmp.youtube.com/live2 successful
18:24:04.046: ==== Streaming Start ===============================================
08:37:51.679: WriteN, RTMP send error 10054 (2232 bytes)
08:37:51.680: WriteN, RTMP send error 10054 (54 bytes)
08:37:51.680: WriteN, RTMP send error 10038 (42 bytes)
08:37:51.680: [rtmp stream: 'simple_stream'] Disconnected from rtmp://a.rtmp.youtube.com/live2
08:37:51.680: Output 'simple_stream': stopping
08:37:51.680: Output 'simple_stream': Total encoded frames: 1536778
08:37:51.680: Output 'simple_stream': Total drawn frames: 1536778
08:37:51.680: Output 'simple_stream': Number of skipped frames due to encoding lag: 2 (0.0%)
08:37:51.680: Output 'simple_stream': Number of lagged frames due to rendering lag/stalls: 119 (0.0%)
08:37:51.680: Output 'simple_stream': Number of dropped frames due to insufficient bandwidth/connection stalls: 9 (0.0%)
08:37:51.681: Output 'simple_stream':  Reconnecting in 10 seconds..
08:37:51.681: [rtmp stream: 'simple_stream'] Freeing 1232 remaining packets
08:38:01.686: ---------------------------------
08:38:01.686: [x264 encoder: 'simple_h264_stream'] preset: veryfast
08:38:01.686: [x264 encoder: 'simple_h264_stream'] profile: main
08:38:01.686: [x264 encoder: 'simple_h264_stream'] settings:
08:38:01.686:     rate_control: CBR
08:38:01.686:     bitrate:      2500
08:38:01.686:     buffer size:  2500
08:38:01.686:     crf:          0
08:38:01.686:     fps_num:      30
08:38:01.686:     fps_den:      1
08:38:01.686:     width:        1092
08:38:01.686:     height:       614
08:38:01.686:     keyint:       120
08:38:01.686:     vfr:          off
08:38:01.686:
08:38:01.699: [Media Foundation AAC: 'simple_aac']: encoder created
08:38:01.699:     bitrate: 160
08:38:01.699:     channels: 2
08:38:01.699:     sample rate: 44100
08:38:01.699:     bits-per-sample: 16
08:38:01.699:
08:38:01.701: [rtmp stream: 'simple_stream'] Connecting to RTMP URL rtmp://a.rtmp.youtube.com/live2...
08:38:01.723: [rtmp stream: 'simple_stream'] Interface: Hyper-V Virtual Ethernet Adapter #2 (ethernet, 4294 mbps)
08:38:02.180: [rtmp stream: 'simple_stream'] Connection to rtmp://a.rtmp.youtube.com/live2 successful
08:52:28.518: adding 23 milliseconds of audio buffering, total audio buffering is now 23 milliseconds
 
Top