OBS Studio: Questions About CPU Usage and Nvidia Frame Buffer Capture (NVFBC)

I’ve recently installed OBS Studio for the first time and I was trying to figure out how much overhead it creates. Luckily, so I thought, OBS Studio actually displays its CPU utilisation on the bottom right of its window. A measly 1.8 % seemed fine to me—that was still more than what I saw in a recent LTT video, but different specs and all … Nonetheless, I decided to launch htop and filter for “obs.” For some reason, htop shows me a different value for OBS’ CPU usage than OBS itself does (see attached screenshot below).

As you can see, OBS Studio shows a CPU usage of 1.7 to 1.8 %, whereas htop shows me values of 22.1 % and 12.3 %. Am I misinterpreting the results in the terminal or is the display within OBS Studio somehow bugged?


A second question I have concerns the method of enabling Nvidia’s Frame Buffer Capture, NVFBC, as a source in OBS Studio that was shown in the video mentioned (and linked) above. They did it in Pop!_OS, but is this method applicable for Manjaro as well? I found an AUR package that supposedly adds NVFBC as a source to OBS Studio, but sadly I couldn’t find anything regarding this topic on the Arch wiki. Does anyone have experience with this and could share perhaps?


Edit:

$ inxi --admin --verbosity=7 --filter --no-host --width
System:
  Kernel: 5.10.53-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=UUID=628f24a1-5443-4159-99a5-4a1e4dfaa518 rw quiet apparmor=1 
  security=apparmor udev.log_priority=3 
  Desktop: KDE Plasma 5.22.4 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM 
  Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Laptop System: LENOVO product: 81HE v: Lenovo Legion Y740-15ICHg 
  serial: <filter> Chassis: type: 10 v: Lenovo Legion Y740-15ICHg 
  serial: <filter> 
  Mobo: LENOVO model: LNVNB161216 v: SDK0R32862 WIN serial: <filter> 
  UEFI: LENOVO v: AVCN22WW(V1.12) date: 07/20/2020 
Battery:
  ID-1: BAT1 charge: 53.9 Wh (99.8%) condition: 54.0/57.0 Wh (94.7%) 
  volts: 12.9 min: 11.5 model: SMP L17M3PG2 type: Li-ion serial: <filter> 
  status: Unknown cycles: 17 
  ID-2: hidpp_battery_0 charge: N/A condition: N/A volts: 3.8 min: N/A 
  model: Logitech G903 Wired/Wireless Gaming Mouse type: N/A serial: <filter> 
  status: Discharging 
Memory:
  RAM: total: 15.55 GiB used: 4.15 GiB (26.7%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: 6-Core model: Intel Core i7-8750H bits: 64 type: MT MCP 
  arch: Kaby Lake note: check family: 6 model-id: 9E (158) stepping: A (10) 
  microcode: EA cache: L2: 9 MiB bogomips: 52815 
  Speed: 800 MHz min/max: 800/4100 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 
  4: 800 5: 800 6: 800 7: 800 8: 800 9: 800 10: 800 11: 800 12: 800 
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_perfmon art 
  avx avx2 bmi1 bmi2 bts clflush clflushopt cmov constant_tsc cpuid 
  cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept ept_ad erms est 
  f16c flexpriority flush_l1d fma fpu fsgsbase fxsr ht hwp hwp_act_window 
  hwp_epp hwp_notify ibpb ibrs ida intel_pt invpcid invpcid_single lahf_lm lm 
  mca mce md_clear mmx monitor movbe mpx msr mtrr nonstop_tsc nopl nx pae pat 
  pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts 
  rdrand rdseed rdtscp rep_good sdbg sep smap smep ss ssbd sse sse2 sse4_1 
  sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_adjust 
  tsc_deadline_timer vme vmx vnmi vpid x2apic xgetbv1 xsave xsavec xsaveopt 
  xsaves xtopology xtpr 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf 
  mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: srbds mitigation: Microcode 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: NVIDIA TU106BM [GeForce RTX 2060 Mobile] vendor: Lenovo 
  driver: nvidia v: 470.57.02 alternate: nouveau,nvidia_drm bus-ID: 01:00.0 
  chip-ID: 10de:1f51 class-ID: 0300 
  Device-2: Chicony Integrated Camera (1280x720@30) type: USB driver: uvcvideo 
  bus-ID: 1-7:6 chip-ID: 04f2:b604 class-ID: 0e02 serial: <filter> 
  Display: x11 server: X.Org 1.20.11 compositor: kwin_x11 driver: 
  loaded: nvidia display-ID: :0 screens: 1 
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x286mm (20.0x11.3") 
  s-diag: 583mm (23") 
  Monitor-1: DP-4 res: 1920x1080 hz: 144 dpi: 142 size: 344x194mm (13.5x7.6") 
  diag: 395mm (15.5") 
  OpenGL: renderer: NVIDIA GeForce RTX 2060/PCIe/SSE2 
  v: 4.6.0 NVIDIA 470.57.02 direct render: Yes 
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Lenovo driver: snd_hda_intel 
  v: kernel alternate: snd_soc_skl,snd_sof_pci bus-ID: 00:1f.3 
  chip-ID: 8086:a348 class-ID: 0403 
  Device-2: NVIDIA TU106 High Definition Audio vendor: Lenovo 
  driver: snd_hda_intel v: kernel bus-ID: 01:00.1 chip-ID: 10de:10f9 
  class-ID: 0403 
  Device-3: C-Media Q9-1 type: USB driver: hid-generic,snd-usb-audio,usbhid 
  bus-ID: 1-5:4 chip-ID: 0d8c:0135 class-ID: 0300 
  Sound Server-1: ALSA v: k5.10.53-1-MANJARO running: yes 
  Sound Server-2: JACK v: 1.9.19 running: no 
  Sound Server-3: PulseAudio v: 14.2 running: yes 
  Sound Server-4: PipeWire v: 0.3.32 running: yes 
Network:
  Device-1: Intel Cannon Lake PCH CNVi WiFi 
  vendor: Rivet Networks Killer Wireless-AC 1550i Wireless driver: iwlwifi 
  v: kernel bus-ID: 00:14.3 chip-ID: 8086:a370 class-ID: 0280 
  IF: wlp0s20f3 state: up mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: dynamic noprefixroute scope: global 
  IP v6: <filter> type: noprefixroute scope: link 
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Lenovo driver: r8169 v: kernel port: 3000 bus-ID: 3f:00.0 
  chip-ID: 10ec:8168 class-ID: 0200 
  IF: enp63s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: dynamic noprefixroute scope: global 
  IP v6: <filter> type: noprefixroute scope: link 
  IF-ID-1: wg-mullvad state: unknown speed: N/A duplex: N/A mac: N/A 
  IP v4: <filter> scope: global 
  IP v6: <filter> scope: global 
  WAN IP: <filter> 
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB 
  driver: btusb v: 0.8 bus-ID: 1-14:7 chip-ID: 8087:0aaa class-ID: e001 
  Report: rfkill ID: hci0 rfk-id: 3 state: down bt-service: enabled,running 
  rfk-block: hardware: no software: yes address: see --recommends 
Logical:
  Message: No logical block device data found. 
RAID:
  Message: No RAID data found. 
Drives:
  Local Storage: total: 1.38 TiB used: 837.98 GiB (59.5%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital 
  model: PC SN720 SDAPNTW-512G-1101 size: 476.94 GiB block-size: 
  physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD 
  serial: <filter> rev: 10130001 temp: 44.9 C scheme: GPT 
  ID-2: /dev/sda maj-min: 8:0 vendor: Crucial model: CT1000MX500SSD1 
  size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s 
  type: SSD serial: <filter> rev: 033 scheme: GPT 
  Message: No optical or floppy data found. 
Partition:
  ID-1: / raw-size: 204.8 GiB size: 200.59 GiB (97.94%) 
  used: 163.35 GiB (81.4%) fs: ext4 dev: /dev/sda3 maj-min: 8:3 label: N/A 
  uuid: 628f24a1-5443-4159-99a5-4a1e4dfaa518 
  ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%) 
  used: 29 MiB (11.3%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 
  label: SYSTEM_DRV uuid: D48E-60B3 
  ID-3: /mnt/8EC28FE8C28FD2BF raw-size: 475.69 GiB size: 475.69 GiB (100.00%) 
  used: 189.62 GiB (39.9%) fs: ntfs dev: /dev/nvme0n1p3 maj-min: 259:3 
  label: Windows-SSD uuid: 8EC28FE8C28FD2BF 
  ID-4: /mnt/Data raw-size: 576.06 GiB size: 576.06 GiB (100.00%) 
  used: 454.74 GiB (78.9%) fs: ntfs dev: /dev/sda2 maj-min: 8:2 label: Data 
  uuid: 01D75132E5F5E0F0 
  ID-5: /mnt/Data2 raw-size: 150.64 GiB size: 147.21 GiB (97.73%) 
  used: 30.23 GiB (20.5%) fs: ext4 dev: /dev/sda4 maj-min: 8:4 label: Data 2 
  uuid: 708fcbc1-116d-49bb-9171-a77b48962022 
Swap:
  Alert: No swap data was found. 
Unmounted:
  ID-1: /dev/nvme0n1p2 maj-min: 259:2 size: 16 MiB fs: <superuser required> 
  label: N/A uuid: N/A 
  ID-2: /dev/nvme0n1p4 maj-min: 259:4 size: 1000 MiB fs: ntfs label: WINRE_DRV 
  uuid: D28E90838E9061B1 
  ID-3: /dev/sda1 maj-min: 8:1 size: 16 MiB fs: <superuser required> 
  label: N/A uuid: N/A 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 16 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Device-1: 1-1:2 info: Logitech USB Receiver type: Keyboard,Mouse,HID 
  driver: logitech-djreceiver,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s 
  power: 98mA chip-ID: 046d:c539 class-ID: 0300 
  Device-2: 1-4:3 info: Integrated Express ITE Device(8910) type: Keyboard 
  driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 12 Mb/s 
  power: 100mA chip-ID: 048d:c936 class-ID: 0301 
  Device-3: 1-5:4 info: C-Media Q9-1 type: Audio,HID 
  driver: hid-generic,snd-usb-audio,usbhid interfaces: 3 rev: 1.1 
  speed: 12 Mb/s power: 100mA chip-ID: 0d8c:0135 class-ID: 0300 
  Device-4: 1-6:5 
  info: Integrated Express Corsair Gaming K95 RGB PLATINUM Keyboard 
  type: Keyboard,HID driver: hid-generic,usbhid interfaces: 2 rev: 2.0 
  speed: 12 Mb/s power: 100mA chip-ID: 048d:c935 class-ID: 0300 
  Device-5: 1-7:6 info: Chicony Integrated Camera (1280x720@30) type: Video 
  driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA 
  chip-ID: 04f2:b604 class-ID: 0e02 serial: <filter> 
  Device-6: 1-14:7 info: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) 
  type: Bluetooth driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s 
  power: 100mA chip-ID: 8087:0aaa class-ID: e001 
  Hub-2: 2-0:1 info: Full speed (or root) Hub ports: 8 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-3: 3-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-4: 4-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-5: 5-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-6: 6-0:1 info: Full speed (or root) Hub ports: 2 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
Sensors:
  System Temperatures: cpu: 60.0 C mobo: N/A gpu: nvidia temp: 54 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 298 Uptime: 18m wakeups: 3 Init: systemd v: 248 tool: systemctl 
  Compilers: gcc: 11.1.0 Packages: 1503 pacman: 1499 lib: 437 flatpak: 0 
  snap: 4 Shell: Bash v: 5.1.8 running-in: konsole inxi: 3.3.06 
1 Like

Please read this:

More specifically:

  1. Also please read this:
    [HowTo] Provide System Information
    and post some more information so we can see what’s really going on. Now we know the symptom of the disease, but we need some more probing to know where the origin lies… :grin:
  2. An inxi --admin --verbosity=7 --filter --no-host --width would be the minimum required information for us to be able to help you. (Personally Identifiable Information like serial numbers and MAC addresses will be filtered out by the above command)
    Also, please copy-paste that output in-between 3 backticks ``` at the beginning and end of the code/text.
  3. As you have an Intel Core i7 8th Gen that has 4 cores with 8 threads, 20% / 8 = 2.5% so are you sure that htop is showing the entire CPU or that OBS is showing just one core/thread?

:+1:

Sorry about that, I didn’t know how to copy and paste the results from htop, so taking a screenshot was the only thing I could think of.

I added the output of the inxi to the end of the opening post.

If I’m to believe my specs, I have a 6-core CPU, an Intel Core i7-8750H, with apparently 12 threads. Looking at the screenshot, it does appear as though htop displays all 12 threads. It’s possible that OBS Studio only shows one, but I wouldn’t know. Using the System Activity Monitor (Ctrl + Esc on KDE) also shows OBS with just 1 % CPU usage, which just further confuses me.

1 Like

Did some more digging:

top measures the entire CPU and htop measures the individual cores (not threads) and both average them out differently.

Your system activity in OBS used the top philosophy, so in a nutshell:

Yes, it’s entirely normal for a single core to be running at a 20% peak wile your overall average CPU usage is just 2%

:+1:

1 Like

I see, well that’s good to know, then. Thank you!

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.