- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
你好,我想请教一下,在MCU模式下,使用GPU加速的情况下,CPU还会消耗很多用于混音吗?我测试下来,GPU基本没有消耗,但是CPU消耗很是很多,这个是为什么?
软件安装:
Intel® Media Server Studio for Linux* 2016
Intel® Collaboration Suite for WebRTC Version 3.2 Update 1
CentOS 7.1 1503
硬件配置:4核Corei5 cpu
[root@localhost bin]# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 60
model name : Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz
stepping : 3
microcode : 0x1c
cpu MHz : 3381.984
cache size : 6144 KB
GPU信息:
[root@localhost bin]# lspci -nn -s 00:02.0
00:02.0 VGA compatible controller [0300]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [8086:0412] (rev 06)
./video_agent/video.toml配置如下:
[video]
#If true and the machine has the capability, the mixer will be accelerated by hardware graphic chips
hardwareAccelerated = true
#This configuration is only for software media engine. Hardware graphic acceleration provides H.264 by default
#true means OpenH264 is deployed for H.264. Otherwise no support of H.264 in MCU
openh264Enabled = false
配置的使用是使用硬件加速。
一个房间里面9个路视频接入,采用MCU模式。
4核总共消耗CPU16%左右,
top - 09:47:14 up 18:21, 2 users, load average: 0.66, 0.60, 0.54
Tasks: 175 total, 1 running, 174 sleeping, 0 stopped, 0 zombie
%Cpu(s): 15.9 us, 2.2 sy, 0.0 ni, 81.3 id, 0.3 wa, 0.0 hi, 0.3 si, 0.0 st
KiB Mem : 7917976 total, 5334756 free, 1229376 used, 1353844 buff/cache
KiB Swap: 8126460 total, 8126460 free, 0 used. 6392068 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
13968 root 20 0 2419068 80228 20788 S 32.9 1.0 1:04.80 woogeen_video
13920 root 20 0 3035880 67848 13796 S 25.2 0.9 0:48.56 woogeen_audio
13732 root 20 0 3699600 82440 18700 S 16.6 1.0 0:31.86 woogeen_access
2571 root 20 0 130056 1844 1268 R 0.7 0.0 0:00.13 top
13507 rabbitmq 20 0 2164268 69340 2880 S 0.7 0.9 7:10.38 beam.smp
13615 root 20 0 1028912 47748 8608 S 0.3 0.6 2:45.63 node
13670 root 20 0 1015752 32284 8660 S 0.3 0.4 0:42.95 node
13680 root 20 0 129928 1756 1272 S 0.3 0.0 2:30.14 top
13716 root 20 0 1019116 34100 8672 S 0.3 0.4 0:41.92 node
13726 root 20 0 21656 1968 1612 S 0.3 0.0 0:38.38 nload
13810 root 20 0 1016840 34064 8660 S 0.3 0.4 0:42.62 node
13820 root 20 0 129928 1764 1272 S 0.3 0.0 2:30.53 top
13914 root 20 0 129928 1776 1272 S 0.3 0.0 2:29.67 top
13962 root 20 0 130032 1780 1272 S 0.3 0.0 2:30.13 top
使用intel_gpu_top命令查看GPU消耗,GPU似乎基本没有消耗
render busy: 2%: ▌ render space: 2/131072
bitstream busy: 0%: bitstream space: 0/131072
blitter busy: 0%: blitter space: 0/131072
task percent busy
TSG: 1%: ▎ vert fetch: 0 (0/sec)
GAM: 1%: ▎ prim fetch: 0 (0/sec)
VFE: 1%: ▎ VS invocations: 0 (0/sec)
TDG: 0%: GS invocations: 0 (0/sec)
GS prims: 0 (0/sec)
CL invocations: 0 (0/sec)
- Tags:
- HTML5
- JavaScript*
Link Copied
- « Previous
-
- 1
- 2
- Next »
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Lei
谢谢你的耐心解答,我这边也基本放假了,暂时不着急,我再尝试一下你的办法。希望年后继续帮我分析一下,谢谢!!
另外,祝你新年快乐,阖家幸福,嘿嘿

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- « Previous
-
- 1
- 2
- Next »