Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Playing video and CPU usage
Date: Sat, 12 Jan 2019 05:00:21
Message-Id: 26820ed9-cf55-acf4-d382-faade947607d@gmail.com
1 Howdy,
2
3 As some know, I recently bought a video card.  While not the most modern
4 thing, it is a lot faster than my old one.  I have a question tho.  When
5 I'm watching TV and playing a video with Smplayer, high resolution or a
6 medium resolution, it seems to use a good bit of CPU power.  I notice in
7 gkrellm, htop etc that it is using about 20 to sometimes 40 or 50% of
8 CPU power.  Yes, I still have the 8 core CPU in here.  In Smplayer, I
9 have video driver set to "gl(fast)" but have tried other settings as
10 well.  Obviously, some just plain don't work at all.  It causes Smplayer
11 to crash.  I did some googling, I think this is the best driver setting
12 for my card.  It is nvidia based.  Question, how do I know it is using
13 the video card to process as much of the video as it is supposed to be
14 doing?  Is there some command I'm not aware of to test this?  Here is
15 some hardware info. 
16
17
18 root@fireball / # lspci -k
19 01:00.0 VGA compatible controller: NVIDIA Corporation GK107 [GeForce GTX
20 650] (rev a1)
21         Subsystem: Micro-Star International Co., Ltd. [MSI] GK107
22 [GeForce GTX 650]
23         Kernel driver in use: nvidia
24         Kernel modules: nvidia_drm, nvidia
25
26
27
28 root@fireball / # glxinfo
29 name of display: :0
30 display: :0  screen: 0
31 direct rendering: Yes
32 server glx vendor string: SGI
33 server glx version string: 1.4
34
35
36
37 This is what I get with glxgears at full screen.  Note, video is playing
38 on the TV as well, just not on current screen. 
39
40
41 root@fireball / # glxgears
42 311 frames in 5.0 seconds = 62.133 FPS
43 306 frames in 5.0 seconds = 61.123 FPS
44 311 frames in 5.0 seconds = 62.154 FPS
45 312 frames in 5.0 seconds = 62.217 FPS
46 309 frames in 5.0 seconds = 61.619 FPS
47 307 frames in 5.0 seconds = 61.265 FPS
48 315 frames in 5.0 seconds = 62.936 FPS
49 XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
50       after 13277 requests (13277 known processed) with 0 events remaining.
51 root@fireball / #
52
53
54 Thanks.
55
56 Dale
57
58 :-)  :-) 

Replies

Subject Author
Re: [gentoo-user] Playing video and CPU usage Andrew Udvare <audvare@×××××.com>
Re: [gentoo-user] Playing video and CPU usage Davyd McColl <davydm@×××××.com>
[gentoo-user] Re: Playing video and CPU usage Nikos Chantziaras <realnc@×××××.com>