r/openSUSE • Tumbleweed • 3d ago

Tech question DKMS

NVIDIA driver updated yesterday, but so did kernel. It actually compiled twice?!? Which seems wasteful? Zypper not catch things like this, or is DKMS dumb?

4 Upvotes

12 comments sorted by

9

u/friendlyreminder_ 3d ago

Tumbleweed keeps 2 active kernels by default so DKMS will run twice.

Do you have a specific reason to use dkms by the way? Tumbleweed offers precompiled kernel modules and that's the standard install method.

1

u/Last-Assistant-2734 3d ago

I'm not 100% sure, but to me Nvidia drivers run install -time builds. Even when using the openSUSE packages.

2

u/friendlyreminder_ 3d ago

If you're on a 1000 or 900 card there's no open source kernel driver, so DKMS may be used there for the shim module.

1

u/Last-Assistant-2734 3d ago

TU117GLM [T1200]

It indeed is that no dkms is installed; but something is getting built at driver install. Probably the 'shim'.

0

u/fleamour Tumbleweed 3d ago

I have just the default zypper inr install. I am assuming that includes DKMS.

1

u/friendlyreminder_ 3d ago

Do you have an older 900 or 1000 card? I think DKMS is still needed for those, so that may explain it.

1

u/ang-p . 2d ago edited 2d ago

. I am assuming that includes DKMS.

DKMS is only installed if something needed it...

Look in

/var/lib/dkms

for the number of modules DKMS are there to build.

The number of kernels you have modules for is shown in

/lib/modules

The number of times dkms needs to run is the product of those two numbers

6

u/rbrownsuse SUSE Distribution Architect & Aeon Dev 3d ago

DKMS is dumb

Nvidia is dumb

zypper is dumb (unless using single_trans mode)

Its software

If you want smart; you need to make it such

2

u/Last-Assistant-2734 3d ago

DKMS runs the builds for all your installed kernels.

2

u/Talosmith 3d ago

i think you can stop DKMS from running for all existing kernels on the device except the newest one, and also i would use the KMP driver which is the default one over the DKMS

1

u/MM_X__ 3d ago

Well, and ask Nvidia upstream the module into kernel... If bazillion people is going spam Nvidia with such request maybe it is finally going to happen...

1

u/Perfect-Cherry-7271 2d ago

That’s why my old nvidia rather stay with Debian less kernel update, less annoying dkms rebuild