|
|
#1 | |
|
Registered User
Join Date: Jan 2003
Posts: 1
|
Hi all-
My system has memory problems which i think are due to the nvidia driver. It seems that shortly after restarting X top reports that essentially all of my 1 Gb RAM is used, 280M of which is taken by X: Mem: 1033164K total, 1005376K used, 27788K free, 291224K buffers Swap: 979924K total, 3640K used, 976284K free, 521916K cached ... PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND 17380 root 15 -10 280M 23M 4428 S < 4.3 2.3 3:03 XFree86 I'm using nvidia version 1.0-4191 with X 4.2.1 under Debian (running Gnome). I'm not running anything too fancy (openGL games). This seems to happen even if i just run xmms, gnome mixer, and some xterms. s it normal for X to hog ~300 mb, and is there any way to figure out if the nvidia driver is the culprit for my memory loss, and is it possible to fix...? many thanks! |
|
|
|
|
|
|
#2 | |
|
Registered User
Join Date: Sep 2002
Posts: 2,262
|
First, the main culprit is probably not X. It's probably the kernel caching filesystem data so that disk accesses are faster (and so that it doesn't take ~10 seconds to load up a directory with 8 files in it, like it does in Windows from time to time
).To see the used/free counts without cached FS data included, you can take a look at the output of free. In the +/- buffers/cache line, in the "free" and "used" columns, will be the amount of physical memory in use by all processes. Now, as for X, it's not actually using 280M of memory. That's what it says in the VSZ column, but VSZ is virtual memory in use, not physical memory in use. In fact, X is using 280M of memory, but >90% of that is swap. The RSS column (resident set size) is a better approximation of the amount of physical memory in use. As you can see, X only has ~23M of its memory locked into physical RAM. And this is the normal behavior of X, at least on my machines too. It is normal for Linux to use all the memory it can get its hands on. This is why the OS is much less tolerant of memory errors than certain other ones. Oh, the cached data quickly gets discarded, too, if real processes need more memory. So don't worry about that.
__________________
Registered Linux User #219692 |
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Feb 2003
Posts: 2
|
I've experiensed the same phenomenon. I've thought it might be the twinview code which leaks memory, since it's maybe not that commonly used.
At least it's some part of the X or nvidia-module which does leak memory seariously. It's not only because of caching, since the OS has started killing processes when it's really out of memory. When I restart X-server, I'll often see (in xosview for example) that about 800MB/1GB freed up. I'm using kernel 2.4.20, nvidia driver: 1.0-4191. I've used kde 3.0.5 and 3.1. Graphics card: GeForce4 Ti4200 I would really like a fix.. Last edited by kickus; 02-13-03 at 11:28 AM. |
|
|
|
|
|
#4 | |
|
Registered User
Join Date: Sep 2002
Posts: 2,262
|
I haven't seen the kernel kill anything from being out of memory, ever. Even when I was using KDE 3 (it got to be too much eventually -- the eye candy was nice, but it took way too long to install it from source), I didn't see that.
But then, I'm not using twinview either. I'm using driver 3123 and kernel 2.4.20 with -preempt applied.
__________________
Registered Linux User #219692 |
|
|
|
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| GPU memory consumption, back buffer, Quadro | tdsussman | NVIDIA Linux | 5 | 08-14-12 09:14 PM |
| Video: For HPC Energy Efficiency, Samsung 20-nm Memory Fab Makes a Difference | News | Latest Tech And Game Headlines | 0 | 06-26-12 06:00 AM |
| Measuring card memory usage | peter_ga | NVIDIA Linux | 0 | 05-24-12 08:07 PM |
| new memory tech QBM (Quad band memory) | sebazve | Rumor Mill | 9 | 09-24-02 09:38 PM |
| Leadtek Nforce problems | druga runda | CPUs, Motherboards And Memory | 4 | 09-18-02 08:26 AM |