LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   High RAM memory usage in xfce with nvidia driver (https://www.linuxquestions.org/questions/slackware-14/high-ram-memory-usage-in-xfce-with-nvidia-driver-4175661915/)

jmf 10-03-2019 12:48 AM

High RAM memory usage in xfce with nvidia driver
 
My xfce install is using after boot more than 100mb more RAM than in other distributions, I noticed that this does not happen with nouveau or other drivers, or if I install only the nvidia module but not opengl libraries, so is gpu accel related. How can I fix this? I have to recompile some package/s? Thanks.

business_kid 10-03-2019 04:37 AM

Welcome to LQ, jmf.

The answer is in your question. If you install Nvidia drivers and not opengl drivers, and things work, leave it that way. Nvidia install scripts move opengl libs out of the way anyhow.

If you're trying to set up dual graphics, better p[ost again with details of that.

syg00 10-03-2019 04:42 AM

Why do you care ?. What else are you going to use the supposed "wasted" RAM for ?.
How much do you know of Linux memory management ?.

garpu 10-03-2019 09:05 AM

Quote:

Originally Posted by syg00 (Post 6043280)
Why do you care ?. What else are you going to use the supposed "wasted" RAM for ?.
How much do you know of Linux memory management ?.

If there's a memory leak somewhere, that would be a useful thing for us to know about, so it might be able to be fixed. (It could be a bug in the version of XFCE that's being used or the nvidia driver.)

Jmf: Which version of the nvidia driver are you using? Are you on 14.2 or slackware-current? I haven't noticed anything out of the ordinary on current and with 430.50.

jmf 10-03-2019 01:21 PM

Quote:

Originally Posted by business_kid (Post 6043278)
Welcome to LQ, jmf.

The answer is in your question. If you install Nvidia drivers and not opengl drivers, and things work, leave it that way. Nvidia install scripts move opengl libs out of the way anyhow.

If you're trying to set up dual graphics, better p[ost again with details of that.

Thanks, usually I can find the solution here but no luck with this one, I tried an old post solution about recompiling cairo with gl disabled but nothing happened. If I install without opengl then I do not have gpu accelerated apps, chromium/firefox video player, and I have tearing.
I installed the same installer and driver version on other distros and this do not happen. So I think this is some library and/or opengl compile flags related issue, some patch needed/missing.

jmf 10-03-2019 01:28 PM

Quote:

Originally Posted by syg00 (Post 6043280)
Why do you care ?. What else are you going to use the supposed "wasted" RAM for ?.
How much do you know of Linux memory management ?.

All this questions are offtopic. Xfce is using more RAM with nvidia and opengl that it should.

jmf 10-03-2019 01:36 PM

Quote:

Originally Posted by garpu (Post 6043372)
If there's a memory leak somewhere, that would be a useful thing for us to know about, so it might be able to be fixed. (It could be a bug in the version of XFCE that's being used or the nvidia driver.)

Jmf: Which version of the nvidia driver are you using? Are you on 14.2 or slackware-current? I haven't noticed anything out of the ordinary on current and with 430.50.

Is not the driver because I tested the same version and installer file in other distros (Debian,ubuntu, gentoo), version is 304-137 in slackware 14.2. Maybe you can compare RAM with some of this distros? I have at least 100mb more without xfce compositing enabled.

garpu 10-03-2019 02:09 PM

Quote:

Originally Posted by jmf (Post 6043469)
Is not the driver because I tested the same version and installer file in other distros (Debian,ubuntu, gentoo), version is 304-137 in slackware 14.2. Maybe you can compare RAM with some of this distros? I have at least 100mb more without xfce compositing enabled.

Asking people to distro-hop is rather gauche, yes? Are you noticing a memory leak where everything comes crashing to a halt when you run out of RAM? Are you swapping because you're running out of RAM? Then it's likely not an issue.

jmf 10-03-2019 02:30 PM

Quote:

Originally Posted by garpu (Post 6043482)
Asking people to distro-hop is rather gauche, yes? Are you noticing a memory leak where everything comes crashing to a halt when you run out of RAM? Are you swapping because you're running out of RAM? Then it's likely not an issue.

I am not asking anyone anything but solving this issue man. I cannot optimize my memory usage for my desktop and yes I am swapping pretty fast every day so each amount of memory I can get I will get it. You have a suggestion,an answer or just accusations?

RadicalDreamer 10-03-2019 09:05 PM

The only suggestion I have is check out the build scripts and see what the difference is. https://mirrors.xmission.com/slackwa...2/source/xfce/

business_kid 10-04-2019 04:32 AM

Quote:

Originally Posted by jmf (Post 6043468)
All this questions are offtopic. Xfce is using more RAM with nvidia and opengl that it should.

Let's get this straight. You're using nvidia drivers, which are working, so in my book, you don't have a problem. You also are using Mesa or some other drivers you don't need which load and don't work, and you're worried about a memory leak or software fault?

I've used a kernel with a memory leak. The leak keeps consuming memory until your ram is full and everything grinds to a halt as your box tries to deal with it, where windows just crashes.

You're making a rod for your own back. I for one am going to unsubscribe from this thread.

Samsonite2010 10-04-2019 05:42 AM

To play devil's advocate - it seems that for 100MB extra, you are getting a much better experience - perhaps that is the overhead for such an experience? I don't see why improved graphical performance should have no cost. Just my 2 cents worth.

RadicalDreamer 10-04-2019 09:56 AM

Quote:

Originally Posted by business_kid (Post 6043698)
Let's get this straight. You're using nvidia drivers, which are working, so in my book, you don't have a problem. You also are using Mesa or some other drivers you don't need which load and don't work, and you're worried about a memory leak or software fault?

I've used a kernel with a memory leak. The leak keeps consuming memory until your ram is full and everything grinds to a halt as your box tries to deal with it, where windows just crashes.

You're making a rod for your own back. I for one am going to unsubscribe from this thread.

I suspect the OP has very little RAM (check the NVIDIA driver version) and wants XFCE in Slackware to take as much RAM as it has in other operating systems he has tried. He/she wants to know how to make this possible. I would use another desktop environment if RAM was such an issue if it were me.


All times are GMT -5. The time now is 04:31 PM.