Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] Playing video and CPU usage Dale <rdalek1967@×××××.com>