Results 1 to 7 of 7

Thread: Optimizing Nvidia 3D driver

  1. #1
    Join Date
    Mar 2005
    Beans
    118

    HOWTO:Optimizing Nvidia 3D driver

    Before you start open a terminal a type glxgears. Write down your fps.

    * Open a Terminal.
    * Check the status of the nvidia driver. Type: cat /proc/driver/nvidia/agp/status
    * Sample Output:

    Status: Enabled
    Driver: AGPGART
    AGP Rate: 4x
    Fast Writes: Disabled
    SBA: Disabled

    * To enable 'Fast Writes' and 'SBA' you can try this.
    * Open a Run Button.
    * Type: sudo gedit /etc/modutils/nvidia-kernel-nkc
    * Add this to the end of the file and save: options nvidia NVreg_EnableAGPSBA=1 NVreg_EnableAGPFW=1 NVreg_ReqAGPRate=8
    * Modify the above settings for your system.
    * Open a Terminal.
    * Type: sudo update-modules
    * Reboot or unload/load the Nvidia driver and restart X.
    * Sometimes you have to add 'agpgart' and 'via-agp' at the end of /etc/hotplug/blacklist

    Check youre fps now, any improvments ?
    Last edited by kuleali; June 7th, 2005 at 09:32 PM.
    See, you not only have to be a good coder to create a system like Linux, you have to be a sneaky bastard too.

  2. #2
    Join Date
    Mar 2005
    Beans
    156

    Re: HOWTO:Optimizing Nvidia 3D driver

    Quote Originally Posted by kuleali
    Before you start open a terminal a type glxgears. Write down your fps.

    * Open a Terminal.
    * Check the status of the nvidia driver. Type: cat /proc/driver/nvidia/agp/status
    * Sample Output:

    Status: Enabled
    Driver: AGPGART
    AGP Rate: 4x
    Fast Writes: Disabled
    SBA: Disabled

    * To enable 'Fast Writes' and 'SBA' you can try this.
    * Open a Run Button.
    * Type: sudo gedit /etc/modutils/nvidia-kernel-nkc
    * Add this to the end of the file and save: options nvidia NVreg_EnableAGPSBA=1 NVreg_EnableAGPFW=1 NVreg_ReqAGPRate=8
    * Modify the above settings for your system.
    * Open a Terminal.
    * Type: sudo update-modules
    * Reboot or unload/load the Nvidia driver and restart X.
    * Sometimes you have to add 'agpgart' and 'via-agp' at the end of /etc/hotplug/blacklist

    Check youre fps now, any improvments ?
    Enabling fast writes gave me a small performance boost (SBA was already enabled when I checked.) Switching from the default 386-compiled kernel to one that's compiled for your specific processor (K7 in my case) also gave me a little more speed.

  3. #3
    Join Date
    Apr 2005
    Location
    Frequent Flyer Underworld
    Beans
    508

    Re: Optimizing Nvidia 3D driver

    It's always nice to have information, so thanks...

    However, Side Band Addressing and Fast Writes are pretty unstable - always have been since these options were introduced waaaaay back in the 2.x driver versions. You get a modest 1-2% gain in performance, but at the cost of stability - soft lock ups, random GL hangs, you name it. Your mileage will vary with these options...

    But that's half the fun on Linux, isn't it?

    \\//_

  4. #4
    Join Date
    May 2005
    Beans
    Hidden!

    Re: Optimizing Nvidia 3D driver

    How do i

    Reboot or unload/load the Nvidia driver and restart X.???

  5. #5
    Join Date
    Feb 2005
    Location
    Canada
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Optimizing Nvidia 3D driver

    Now this is weird. When I "cat /proc/driver/nvidia/agp/status", I get the following message:

    Status: Disabled

    AGP initialization failed, please check the ouput
    of the 'dmesg' command and/or your system log file
    for additional information on this problem.

    So I tried, "dmesg | grep agp" and get the following:

    agpgart: Detected NVIDIA nForce2 chipset
    agpgart: Maximum main memory to use for agp memory: 439M
    agpgart: AGP aperture is 128M @ 0xd0000000

    "lsmod agp" shows:

    nvidia_agp 7452 1
    agpgart 31784 2 nvidia_agp,nvidia

    "lsmod nvidia" shows:

    nvidia_agp 7452 1
    nvidia 3923388 14
    agpgart 31784 2 nvidia_agp,nvidia

    Now I know the nvidia drivers are being loaded and used, because when
    xorg starts, I see the Nvidia logo screen, so the question is how come I get a status: disabled message from /proc/driver/nvidia/agp/status ?

    G.

  6. #6
    Join Date
    Nov 2004
    Beans
    25

    Re: Optimizing Nvidia 3D driver

    Quote Originally Posted by gmc
    Now this is weird. When I "cat /proc/driver/nvidia/agp/status", I get the following message:

    Status: Disabled

    AGP initialization failed, please check the ouput
    of the 'dmesg' command and/or your system log file
    for additional information on this problem.
    I'm guessing that the NvAGP setting in your xorg.conf is set to 1. You want the following line in the "Device" section for your card
    Code:
    Option "NvAGP" "3"

  7. #7
    Join Date
    Feb 2005
    Location
    Canada
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Optimizing Nvidia 3D driver

    Hi dtessier,

    Quote Originally Posted by dtessier
    I'm guessing that the NvAGP setting in your xorg.conf is set to 1. You want the following line in the "Device" section for your card
    Code:
    Option "NvAGP" "3"
    Good guess. After a quick review of the Nvidia driver readme file, I noticed that option. Unfortunately there was no NvAGP option in my xorg.conf file. After playing with the option it's there now as you advertised. Very bizaar, with out setting NvAGP it appears to default to option 1. I suspect it's this video card as it's prone to do other weird things.

    Thanks for the tip just the same.

    G.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •