Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#73300 - nvidia 495.46-7 - NVENC doesn't work

Attached to Project: Arch Linux
Opened by Radoslav Nenchovski (rado84) - Saturday, 08 January 2022, 16:28 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Wednesday, 09 February 2022, 15:51 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
nvidia NVENC doesn't work. When converting videos (via Handbrake and chosen method NVENC) the CPU has 80% load or more, whereas the GPU load stays at 2-3% which means NVENC isn't working. In principle, whenever it's working the load is divided approximately even between the CPU and the GPU - 50-ish percent for the CPU and 50-ish percent for the GPU. Since this isn't happening with 495.46-7, apparently NVENC isn't working.

Additional info:
* package version: 495.46-7
* config and/or log files etc.: The most recent xorg log is attached.
* link to upstream bug report, if any

Steps to reproduce:
Open any large file (a movie) with handbrake and select video encoder "H265 (NVENC)", select whatever other options you like and press "start". If you have conky on the desktop, you should notice that the CPU is loaded the most, whereas the video card is barely reaching 10% load (look at the screenshot I've attached).
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Wednesday, 09 February 2022, 15:51 GMT
Reason for closing:  No response
Comment by Thomas Lübking (luebking) - Saturday, 08 January 2022, 20:53 GMT
Fyi: https://bbs.archlinux.org/viewtopic.php?id=272950

Highlights:
> After last night's update of nvidia (which changed the number after the dash) it doesn't work anymore.

> Where do I get that system journal from?

> [on installing arch] By opening a forum topic (another forum) about its installation and following the instructions and customizing some things along the way to match my system.

> alias rupd="yes|trizen -Syyu && reboot"

There is very unlikely a bug, more likely this is a race condition and nvidia-uvm isn't loaded (in time) for lack or early KMS or he screws the updates (not unlikely given his stated approach) - none of the rebuilds has altered the PKGBUILD (or the package source)

And he repeatedly failed to produce usable system journals for inspection as well…
Comment by Sven-Hendrik Haase (Svenstaro) - Monday, 31 January 2022, 03:21 GMT
As you can see [0] nvidia 495.46-7 was a boring kernel rebuild. In fact, the package hasn't changed at all since 495.16-1, it was all just rebuilds. As such, I don't think it's a packaging error. Besides, if you have nvidia graphics at all and nvidia-smi provides some output indicating that a nvidia module is loaded, nvenc not working is probably indicating a problem of nvidia-utils rather than nvidia.

I looked into that and I can find no packaging changes in the time period that would be relevant to your regression report at https://github.com/archlinux/svntogit-packages/commits/packages/nvidia-utils/.

I use nvenc almost daily and I just tested it again using ffmpeg and that seems to work just fine: ffmpeg -i input.mp4 -c:v h264_nvenc output.mp4

In conclusion, this appears to be some kind of error on your system.

[0] https://github.com/archlinux/svntogit-packages/commit/381be52c27c71b57647ae97860482f837f1c6f87#diff-3e341d2d9c67be01819b25b25d5e53ea3cdf3a38d28846cda85a195eb9b7203a
Comment by Sven-Hendrik Haase (Svenstaro) - Monday, 07 February 2022, 06:58 GMT
Does this still occur with current drivers?

Loading...