r/linux • • 21h ago

Open Source Organization Reverse-engineered open-source Nvidia driver for Linux improves performance by up to 23% over official driver

https://www.notebookcheck.net/Reverse-engineered-open-source-Nvidia-driver-for-Linux-improves-performance-by-up-to-23-over-official-driver.1463274.0.html
699 Upvotes

81 comments sorted by

213

u/zeb_linux 20h ago edited 20h ago

I am skeptical about the real world impact until we have benchmarks made with applications and games. Since a lot of the GPU functionality is fragmented between the firmware and the libraries, I am wondering what they reimplemented and how this impacts performance.

Edit: those 23% concern memory-bound tests. As I wrote, this may not significant for graphical applications. Regardless this is quite a good thing and I am hopeful it paves the way to mor efficient drivers in general.

9

u/protestor 15h ago

applications and games

I think the goal is to make LLMs faster

114

u/LightBusterX 18h ago

Please, remember that coding a driver is a very difficult task that, if it is done carelessly, is one of the few instances that a software could actually harm the hardware involved.

Don't try weird drivers willy nilly if you are not prepared for the consequences that may arise.

32

u/wildcarde815 17h ago

I am 100% certain I will receive a request in the next few weeks demanding this be installed on a lab cluster of already fucked up hardware.

62

u/Guinness 20h ago

Nvdriver is coded in Rust and supports Maxwell through Blackwell gaming GPUs, as well as Volta through Rubin datacenter cards. It enables PCIe & Dynamic BAR1 P2P, unrestricted NVENC sessions and unlocks CMP mining card full compute

That gives it away, the 23% is probably in scenarios where they’re uncapping hardware limitations of the card. The CMP 170HX unlock (the first one) was a driver. Same with the 3090 where they uncapped the tensor core performance.

I doubt this driver is getting 23% more FPS just due to efficiency gains.

48

u/R3V0LU710N_05 19h ago edited 19h ago

23% performance gains ≠ 23% more FPS

Driver benchmarks almost always reflect synthetic compute, memory bandwidth, or API calls, not game FPS. For FPS, someone has to benchmark against a specific game.

Other than that, you're correct.

Edit: side note, that 23% seems entirely self-reported as I find zero peer benchmarks available.

10

u/ash_ninetyone 17h ago

Are those hardware limitations there to artificially kneecap a card, or are they there as a safe limit to stop the card burning itself out or prevent stability issues?

54

u/ADMINISTATOR_CYRUS 19h ago

the fact they can't even be assed enough to write the readme without ai says a lot

186

u/BigDenseHedge 20h ago

Please stop giving this publicity, it's unmaintainable slop that barely works.

32

u/marozsas 18h ago

Is that you, Jensen Huang?

-8

u/_megazz 17h ago

What's unmaintainable about it? For such a claim I imagine you're an experienced developer who looked through the code and can point out why.

19

u/Laugenbrezel 17h ago

If you do not understand what has been generated, it is a prototype.
Thinking it is a product makes it unmaintainable slop.

11

u/BigDenseHedge 16h ago

I'm not a professional developer, but I've been coding in many languages for years as a hobby and I know bad code when I see it. For one, the documentation is horrendous. For what I've seen it assumes that you are familiar with the entire rest of the project, when that is impossible for something like this. Second, at a glance it's unclear where the GPU firmware is sourced from. That's a pretty big issue when you claim to support hardware no one else does, and it actually leads me to believe that the driver doesn't even support power management for pre-turing. (Nouveau doesn't because it requires special signed firmware from Nvidia, not really because no one bothered to write the code). The architecture of this project is completely unexplained and the best you can do is to look at the vague code comments. Third, no one in the world is familiar with this codebase because no one wrote it. What if one day there comes a bug that Claude can't fix? Then you're really screwed because no one is going to manually work on this driver.

1

u/Ill_Schedule_6450 16h ago

Documentation part is very typical to just about anything in linux

0

u/bladewing678 16h ago

Bad news: that's the code your will often find in driver sources. If you haven't been doing this for ages no chance of understanding it. During my master thesis I had to write a small kernel module. The files read per line written metric was extreme.

11

u/BigDenseHedge 16h ago

Most driver code is also reviewed by humans you know

-1

u/bladewing678 16h ago

Most of who will after you question them not know what the called functions do. Had a lead maintainer tell me, that he has no idea where something happens: "should be somewhere im all this macros"

-22

u/rangelovd 19h ago

What's the alternative? Ugly proprietary driver that literally stopped development‚ or new drivers that don't enable the hardware I use? Humans couldn't enable hardware for a decade‚ and with AI they now finally can. A little appreciation maybe?

21

u/BigDenseHedge 18h ago

A little appreciation maybe?

Machines don't need appreciation. To answer your question though, you're certainly gonna get a better experience with the proprietary driver or even damn nouveau without reclocking than with this.

-14

u/rangelovd 17h ago

Machines didn't do this. if they did‚ I would create this driver thing myself but I don't have the knowledge and skill for that. A person opened the repo‚ wrote the prompts‚ spent tokent and tested the result and you're delusional if you think anyone is going to have a better experience with nouveau. 

13

u/locutus_of_borg90 17h ago

A person opened the repo‚ wrote the prompts

That takes so much skill and hard labour /s

-7

u/rangelovd 16h ago

Imagine! I tried to use ai to solve a couple of things and it was hard‚ in the end I just gave up‚ this task is even more complicated. I can't say whether it's hard or not for the person who does this‚ and I don't care‚ for me what matters is that it's possible‚ and for a decade it wasn't possible. nvidia screwed the people who purchased it's hardware and now that finally someone does something to adress the miserable state of pascal gpus on linux they get hate... why?

6

u/locutus_of_borg90 16h ago

Why?

Because it's slopware made by god knows who.

I mean, if it works, great, but we are talking about a driver. It could damage your hardware, it's dangerous

1

u/rangelovd 16h ago

 Because it's slopware made by god knows who

First‚ I don't really care about who makes the software. Usually bad people create bad products so it's simple to avoid. Second‚ I don't think nvidia proprietary driver is slop- free. until it's open-source(never)‚ we will never know.

 I mean, if it works, great, but we are talking about a driver. It could damage your hardware, it's dangerous

as any driver. as always. people have been installing additional including unofficial drivers for decades‚ like ntfs write support for mac‚ print drivers‚ third party graphical tablets. why is this a problem now? it's already tested on one architecture‚ it's a matter of time when it's tested on others bare metal. This is normal

3

u/locutus_of_borg90 16h ago edited 16h ago

First‚ I don't really care about who makes the software.

I do, I also care about quality and this project smells of AI abuse from a mile away.

The signs are clear: the incredibly long readme, the install.sh script which tells you nothing and does a bunch of stuff, the stereotypical folder structure, etc.

It's clear that this project isn't simply AI assisted but probably 90% AI made.

1

u/rangelovd 16h ago

 I do

LOL! Tough choice‚ buddy! You get to decide between: AI "slop" drivers‚ evil corpo NVIDIA driver and FOSS driver developed by a company who supports israel war crimes. 

Or‚ of course‚ nouveau. enjoying watching slideshow in 480p 4:3 resolution instead of using a computer

0

u/Suvvri 16h ago edited 16h ago

Geez dude, even human maintained Code can go wrong (look at the amount of fixes to the kernel lately, errors spotted by ai in a code written by humans) and damage the hardware, yet nobody bats an eye when new driver drops in the pre-release-alpha-undercooked-barely-working repo and everyone is happy for a new release and new performance gains (real or benchmarked or even just hallucinated gains)

I get your point and no, I'm not a tech/qi bro, fuck gen ai and ai slop BUT if we can get a PROPERLY maintained drivers with the use of ai that is better than the "official" one.. Why not? The project just started AFAIK so its obviously not mature nor done nor 102% bug free but I don't see a reason to automatically disregard it and kill it on sight just because it's made with ai. First the project needs support of people who know how to maintain driver code, not smacking with a baseball bat because they used a particular tool for their POC. It's not like Linux started in the state it's today with thousands of professionals working on the code,, it was a student project and if Linus got told by everyone that it's shit and he should just use commodore or whatever was mainstream at the time we wouldn't even be here discussing Linux drivers in the first place.

If ai can be of use then I think it's for stuff like here, not to "enhance" my fking toothbrush or fridge lol

1

u/locutus_of_borg90 16h ago

Geez dude, even human maintained Code can go wrong 

I guess but the geniuses who wrote this "POC" left the AI insights in the code itself.

I get having comments but these are small paragraphs of Claude explaining things.

If you want to trust people who have calude literally do all the work, then you do you.

0

u/Suvvri 15h ago

That's not what I said. POC is for showing the possibility and to attract people to the project, it's not the end product in its finished state.

Also I prefer the ai comments to be there instead of someone acting like they did the work themselves, St least they're honest and want to be transparent about the ai usage

→ More replies

-69

u/BubblyGin17 20h ago

Isn't it wild how well /r/linux is compromised by bots who want you to leave the billion dollar company alone

44

u/jakiki624 20h ago

by using the product of another billion dollar company to maintain the slop?

34

u/BigDenseHedge 20h ago

I daily drive nouveau + nvk on my arch system broski. I truly want those projects to suceed and for Nova to finally get developed enough. That said, I wouldn't be saying shit about this 'driver' if it were any good. Is calling out slop that destroys your card really bot behaviour?

-44

u/ScreenIntelligent403 18h ago

Scram, luddite.

26

u/locutus_of_borg90 18h ago

Ah yes, calling out solpware, which is essentially a black box, is begin a luddite

Never mind that poorly written  driver can damage your GPU

16

u/BigDenseHedge 17h ago

Scram, ai bro

84

u/Yelloq666thejello 20h ago

Im not trusting any github repo that uses AI to write the README.

Completely unreadable to the normal person, mixes technical precise numbers with marketing jargon

-122

u/SouthernFruit8768 20h ago

You do you bro. Linus Torvalds himself uses Claude AI to write various parts of the Linux kernel nowadays. May be you should go back to Windows lol

69

u/JerryTzouga 20h ago

it is not the same. Torvkads does use AI in an assistive way. The machine spits out the code and he checks for any problems.

Now, not even carring to write the README I can't imagine the "dev" checking any lines at all

35

u/Tung-Ugle 20h ago

Thorvalds knows how to code and reads through his AI code. 

19

u/CORUSC4TE 20h ago

Somehow i feel this point is severly crippled by the peoples ability to write his name correctly.

18

u/R3V0LU710N_05 20h ago

Linus Techvalds Tips is how you spell it right for anyone wondering...

5

u/blackbasset 19h ago

Nowadays he shortens it tho

And goes by Just the Tip

8

u/BurnPotatoes 20h ago

Lol, Thorvalds is a nice one, given how he can hammer down on poor pull requests and their corresponding developers.

13

u/GresSimJa 20h ago

You need some thick skin, but Linus will give you incredible feedback. It's just... hidden, somewhere within that wall of insults.

3

u/Gabelvampir 15h ago

The last name actually comes from Thor, Torvald is Swedish for "Thor's domain". His grandfather decided to add an "s" to make it sound more interesting, and it seems to confuse Swedes and Finns alike on how it's pronounced. At least that's what Linus Torvalds told in "just for Fun".

16

u/ashuwu_ 20h ago

There's a difference between using AI for assistance and using AI to do the entirety of something for you

22

u/xyphon0010 20h ago

There is a difference between an expert that knows what he is doing with the tools available and vibe coding.

20

u/EdgiiLord 20h ago

AI bros inventing stuff overnight lmao. Truly a disease.

4

u/Turtvaiz 19h ago

That's not what they said. Code is an entirely separate matter than documentation

3

u/DoubleOwl7777 19h ago

torvalds also knows what he is doing. the same cannot be said for microsoft, or this github repo.

1

u/sokaox 20h ago

There's a difference between using a hammer to ice a cake and using a hammer to hit a nail.

16

u/whyREX69 17h ago

claude make Nvidia driver in rust

7

u/Suvvri 16h ago

But make it specifically 23% better

8

u/Wreck_OfThe_Hesperus 17h ago

make no mistakes

21

u/jikt 20h ago

This is probably the best and funniest decomp.

4

u/rocketstopya 20h ago

Is it nvidia open but in Rust?

6

u/Easy-Reasoning 19h ago

In principle a nice option but the more interesting point is probably maintenance. For raw performance it sounds interesting, I also never doubted that a fully FOSS driver would exceed the original in capabilities.

But who uses a V100-SXM2? ;) For data centers this is already legacy and (obviously?) for hobby/pro users completely different series are used.

4

u/h3ron 19h ago

You should pay a visit to /r/localllama. the v100 is basically the meta. and can be adapted to pcie

1

u/Easy-Reasoning 19h ago

Yeah I read about that and also saw a YouTube video. Even if it's cheaper than an off-the-shelve rig, most people won't be able to afford this, let alone the risk of such a setup not working. Also it's unlikely to be dual use, even "just" render tasks will likely not work with it.

0

u/Takeoded 17h ago

most people won't be able to afford this

it's about $900 for 32GB on aliexpress: https://www.aliexpress.com/item/1005009880109662.html

Plenty of LLM homelab budgets exceed $900.

8

u/oinkbar 19h ago

isn't it overclocking in disguise?

2

u/3rssi 16h ago

Can I expect something similar with ATI/AMD GPU?

Or should I weep not not having bought an Nvidia card?

1

u/bawng 15h ago

The AMD driver is already open source. Someone might find performance improvements with an AI and submit those to the existing driver though.

But also, be cautious of this driver. The performance claims are on artificial benchmarks and until we have third party benchmarks on real-world applications we don't know how well they hold up in real life.

But most importantly, no one is going to want to maintain this, no one will want to mainline it without human review of every line of code, and I'd be much happier if whoever was behind this spent their effort on contributing to the existing open-source Nova driver instead.

2

u/kishaloy 15h ago

AI is exceptional only when gatekeeped by a human who reviews it before moving it ahead.

There may be a day when AQI can develop whole applications but that day is not today

5

u/remenic 20h ago

This is great! I was wondering when this would happen.

1

u/nicman24 16h ago

Nice nvidia bots

1

u/julioqc 15h ago

not a single OP reply. 

1

u/422_no_process 15h ago

Haha would be great if the linus himself get motivated to do this 😂 as a FU to Nvidia 😂

1

u/AutoModerator 15h ago

This submission has been removed due to receiving too many reports from users. The mods have been notified and will re-approve if this removal was inappropriate, or leave it removed.

This is most likely because:

  • Your post belongs in r/linuxquestions or r/linux4noobs
  • Your post belongs in r/linuxmemes
  • Your post is considered "fluff" - things like a Tux plushie or old Linux CDs are an example and, while they may be popular vote wise, they are not considered on topic
  • Your post is otherwise deemed not appropriate for the subreddit

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

0

u/Ok-Anywhere-9416 19h ago

All the usual features such as CUDA, PyTorch, cuDMM, NCCL, llama.cpp, nvidia-smi, NVENC / NVDEC, nvidia-uvm.ko, nvidia-modeset.ko and nvidia-drm.ko are unmodified from stock. Thanks to AI-assisted reverse-engineering, however, the driver also unlocks Nvidia software restrictions imposed [...]

So, I believe that if the restrictions were imposed, it was for a reason.

Also, tests are for enterprise or development usage, which is still great, but we need desktop too here.

If I'm mistaken instead, I'll be happy to know!

12

u/ValorousGod 19h ago

I believe that if the restrictions were imposed, it was for a reason.

Product segmentation. It's just to sell the same chips as different cards with more features unlocked for more money, they do this with a lot of things.

1

u/Suvvri 16h ago

Amd does the same with igpus on their CPUs. You basically have locked down igpus with worse performance which is actually on the die but because you paid for a worse cpu you also get locked down igpu.

And people managed to unlock some of them too.

Speaking about Cézanne/zen3 to be specific, not sure about other series of CPUs as I own a zen3 myself so this was somehow interesting (although useless as my cpu has the maxed out/unlocked igpu anyway lol)

-8

u/DerShokus 20h ago

Pic with Linus 

-9

u/Mulpin70 19h ago

now open-source become not 47% but 23% weaker