Overcocking my NVIDIA RTX 4090, I need help configuring nvidia-oc.py

I’m following the guide here:

I’m at the point of creating the nvidia-oc.py file and I already wrote down the MINCLOCK and MAXCLOCK settings from my terminal output.

Here’s what I have so far:

from pynvml import *
nvmlInit()

# This sets the GPU to adjust - if this gives you errors or you have multiple GPUs, set to 1 or try other values.
myGPU = nvmlDeviceGetHandleByIndex(0)

# Set Min and Max core clocks
nvmlDeviceSetGpuLockedClocks(myGPU, 210, 10501)

# Clock offset (0 by default)
nvmlDeviceSetGpcClkVfOffset(myGPU, CLOCKOFFSET)

# Memory Clock offset (0 by default)
nvmlDeviceSetMemClkVfOffset(myGPU, MEMOVERCLOCK)

I need help with what I need to choose for CLOCKOFFSET and MEMOVERCLOCK. How do I delvelop these numbers?

Just use Nvidia_OC project: GitHub - Dreaming-Codes/nvidia_oc: A simple command line tool to overclock Nvidia GPUs using the NVML library on Linux. This supports both X11 and Wayland.

It’s easier

Sorry, I didn’t read whole post. Those numbers are just hit or miss. If you don’t know what are you doing just don’t do it.