From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-186007-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 691B1138334
	for <garchives@archives.gentoo.org>; Sat, 12 Jan 2019 06:23:39 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 7DE4CE099F;
	Sat, 12 Jan 2019 06:23:32 +0000 (UTC)
Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id EAC7EE095F
	for <gentoo-user@lists.gentoo.org>; Sat, 12 Jan 2019 06:23:31 +0000 (UTC)
Received: by mail-wr1-x436.google.com with SMTP id z5so17351187wrt.11
        for <gentoo-user@lists.gentoo.org>; Fri, 11 Jan 2019 22:23:31 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=from:to:date:message-id:in-reply-to:references:user-agent:subject
         :mime-version:content-transfer-encoding;
        bh=A2fA0kJs5J2V9/KWrIoxfAZkQS/H3FV7PdlzWsmsSdI=;
        b=AnarTIuTITqT/+Qw+N5ne48cmRv9EMzcEtkEWrMi1XsqqEf0+TD3YcPwpOjkgd7K07
         kVv7pVqeRiotA+DsE5k7fBsBlpSP4Bg6Iz/VUlExgrzoZblnCesvcl05jvQaGQTQdZGk
         HbrRw9d/9dnPfQcAYtZesFI34MZF/C4HCTbJUjiZXM3jEVVYF46KGnOK/UsW1urbS1Kp
         jxVnT40FMKRl7R4UmzC0UA0HEMTAsK7wbNCrQXfafYaOvxRfouHe/3mFRSdKjY3fSnqh
         1kgBg/DxioxlPp2tw0/pbcxVTowLKeZQ/4okpLADA/e/JkwiaV4vepIm5wmVuMDuvfQO
         8Cdw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:from:to:date:message-id:in-reply-to:references
         :user-agent:subject:mime-version:content-transfer-encoding;
        bh=A2fA0kJs5J2V9/KWrIoxfAZkQS/H3FV7PdlzWsmsSdI=;
        b=exTiMBWMZpGIvO84ZBwBFfVG0o0diQ6TbUJXUnYC6QEvi9Um9CBcZTthVSDxPglCrk
         lI71bohCLJEt4It/x3fXPCj7Fh78pkDt4/r4dtkySnQ2N8jUFHcP89+QH+5a+OQxBsuV
         83d9ZpmGlSFxABFGhvnkMY6qP/7xpwPEaVbmaQ27lwAxBz2rsVPGUETB69kQOCzpIG+W
         FHU3W3lP0yCl8hky2crLrKJdYp65uXeSNWq3z5+lfS6ZGMcohO4Mc+/xnT6h3TnKAu2o
         q4F3xMJH+R+LIpt/A6WQWVXWoeXff4G4JfxOHoKvfhE4SJgRtwRlxeZ7mylMVy5GJaab
         LD4w==
X-Gm-Message-State: AJcUukcbDcMaskAbnrUU+0sUusayMg5M3bM/vhQpVc2EAcYvCGsS6m8u
	/Nz/UpX/3aOCRDtecnOxLAcGTS2jKUg=
X-Google-Smtp-Source: ALg8bN4T7SFBA8qPmuJrRFtxsKSY4aXd2qXWV/uWYwDouuKkB8b9CVJ1uVeRZPtn52dUkRisjYcrmw==
X-Received: by 2002:adf:dd06:: with SMTP id a6mr17059464wrm.2.1547274210093;
        Fri, 11 Jan 2019 22:23:30 -0800 (PST)
Received: from [192.168.1.23] (156-155-14-228.ip.internet.co.za. [156.155.14.228])
        by smtp.gmail.com with ESMTPSA id j8sm51831218wmd.0.2019.01.11.22.23.28
        for <gentoo-user@lists.gentoo.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Fri, 11 Jan 2019 22:23:29 -0800 (PST)
From: Davyd McColl <davydm@gmail.com>
To: <gentoo-user@lists.gentoo.org>
Date: Sat, 12 Jan 2019 08:23:24 +0200
Message-ID: <16840bab360.278f.83c5c26c404a765ed2e55e3ab0c1c65d@gmail.com>
In-Reply-To: <26820ed9-cf55-acf4-d382-faade947607d@gmail.com>
References: <26820ed9-cf55-acf4-d382-faade947607d@gmail.com>
User-Agent: AquaMail/1.18.1-1405 (build: 101800005)
Subject: Re: [gentoo-user] Playing video and CPU usage
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset="UTF-8"
Content-Transfer-Encoding: 8bit
X-Archives-Salt: 23603d5a-6021-4a3e-a0c5-8f99effb85b7
X-Archives-Hash: 23019dd6c11be4f920aadd344fadffdb



On January 12, 2019 7:00:19 AM Dale <rdalek1967@gmail.com> wrote:

> Howdy,
>
> As some know, I recently bought a video card.  While not the most modern
> thing, it is a lot faster than my old one.  I have a question tho.  When
> I'm watching TV and playing a video with Smplayer, high resolution or a
> medium resolution, it seems to use a good bit of CPU power.  I notice in
> gkrellm, htop etc that it is using about 20 to sometimes 40 or 50% of
> CPU power.  Yes, I still have the 8 core CPU in here.  In Smplayer, I
> have video driver set to "gl(fast)" but have tried other settings as
> well.  Obviously, some just plain don't work at all.  It causes Smplayer
> to crash.  I did some googling, I think this is the best driver setting
> for my card.  It is nvidia based.  Question, how do I know it is using
> the video card to process as much of the video as it is supposed to be
> doing?  Is there some command I'm not aware of to test this?  Here is
> some hardware info. 
>
>
> root@fireball / # lspci -k
> 01:00.0 VGA compatible controller: NVIDIA Corporation GK107 [GeForce GTX
> 650] (rev a1)
>         Subsystem: Micro-Star International Co., Ltd. [MSI] GK107
> [GeForce GTX 650]
>         Kernel driver in use: nvidia
>         Kernel modules: nvidia_drm, nvidia
>
>
>
> root@fireball / # glxinfo
> name of display: :0
> display: :0  screen: 0
> direct rendering: Yes
> server glx vendor string: SGI
> server glx version string: 1.4
>
>
>
> This is what I get with glxgears at full screen.  Note, video is playing
> on the TV as well, just not on current screen. 
>
>
> root@fireball / # glxgears
> 311 frames in 5.0 seconds = 62.133 FPS
> 306 frames in 5.0 seconds = 61.123 FPS
> 311 frames in 5.0 seconds = 62.154 FPS
> 312 frames in 5.0 seconds = 62.217 FPS
> 309 frames in 5.0 seconds = 61.619 FPS
> 307 frames in 5.0 seconds = 61.265 FPS
> 315 frames in 5.0 seconds = 62.936 FPS
> XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
>       after 13277 requests (13277 known processed) with 0 events remaining.
> root@fireball / #
What X driver are you using? Nouveau or the proprietary nvidia one? Your 
glxinfo suggests neither and you should get way higher fps with glxgears on 
either, but most especially with the proprietary one.
Personally, I tried Nouveau for a while, but found it unstable on KDE 
plasma - kept locking up - but I know plasma tries to run everything 
accelerated. Also the proprietary one is way faster for gaming.
>
>
> Thanks.
>
> Dale
>
> :-)  :-) 
>