Limit X-server graphical memory usage on Nvidia GPU

Questions and Answers : Unix/Linux : Limit X-server graphical memory usage on Nvidia GPU
Message board moderation

To post messages, you must log in.

AuthorMessage
Thord

Send message
Joined: 8 Apr 99
Posts: 2
Credit: 12,220,448
RAC: 0
Sweden
Message 1645142 - Posted: 22 Feb 2015, 1:19:28 UTC

Hi!

I have a slackware machine with a Geforce GTX 460 graphics card.

Problem is that the X-server tends to use far too much memory of the available
1GB on that card to that sometimes the cuda applications cannot start.
(which generates a lot of "computation errors")

Is there a way to limit the the X-servers graphic memory usage?
I have looked at Nvidias xorg.conf documentation and have not found any settings for this,
but maybe I am missing something.

There is an onboard Nvidia 8300 on the motherboard with 256 MB of memory, but if I try
to run the GUI on that one and seti on the 460 the machine crashes after a while,
so the 8300 is now disabled.

Any ideas?
ID: 1645142 · Report as offensive
Andrew
Avatar

Send message
Joined: 28 Mar 15
Posts: 47
Credit: 1,053,596
RAC: 0
Canada
Message 1663195 - Posted: 9 Apr 2015, 20:14:58 UTC - in response to Message 1645142.  

You will have to edit your /etc/X11/xorg.conf to only be setup for the onboard card, and have no mention of the other card in there. If both cards are the same you should be able specify the cards using the BusID line in the Section "Device" for the driver.

If your unsure of where to start, you can always start with a default auto-generated X config which will try and auto-load all drivers for detected cards and do a basic auto-configure for them. Run 'X -configure' from a root login if you want to go that route..

Make sure you keep a backup of your existing files though before modifying anything so you can always go back to something you know works!
ID: 1663195 · Report as offensive

Questions and Answers : Unix/Linux : Limit X-server graphical memory usage on Nvidia GPU


 
©2024 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.