What is consuming almost my whole RAM (Ubuntu 15.10 + CUDA)?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What is consuming almost my whole RAM (Ubuntu 15.10 + CUDA)?
Hi guys,
I'm not sure is it good place to put this thread, but I have "computing server" which I'm using for CUDA computation (with some framework). After a some computation and killing all computing processes I get 6.7GB/32GB free memory. After some point I'm not able to make anything that needs more memory. Any ideas?
24 GB shown as used by buffers is actually free, it will be freed as soon as it is needed.
Code:
total used free shared buffers cached
Mem: 31G 25G 5.7G 73M 26M 983M -> taken by disk cache
-/+ buffers(used-cached)<-24G 6.7G -> free memory (5.7G) + cached (1G)
Swap: 0B 0B |
this is real free value
24 GB shown as used by buffers is actually free, it will be freed as soon as it is needed.
Look at those numbers again. The buffer and cache sizes are in megabytes, not gigabytes, and don't add up to anything like 24 GB. This sounds more like shared memory that was not released when the processes using it were killed. Maybe a huge tmpfs that is chewing up space?
tmpfs:
I didn't know that such thing like tmpfs exists, but I don't think that tmpfs has to do anything: http://unix.stackexchange.com/questi...oes-it-compete:
"tmpfs only uses the amount of memory that is taken, not the full 50%. So, if only 10mb of those 1gb are taken, your tmpfs instance only occupies those 10mb"
So tmpfs in my case should occupy at most ~100kB
shared memory:
ps_mem & free is reporting this same amount of memory used by shared libraries (is this the same as shared libraries?) ~32MB
/proc/meminfo
I was trying to read it before, but I gave up.
Irreconcilable numbers. That last lot is what we would expect to see.
We need the same displays when you reckon you have a problem. uneditted.
There is problem cause I don't have any processes running and it's 6GB. After server starts tt's consuming ~350 MB. So there is a gap.
I'm restarting server every 2 days, cause I need all memory. I'm able to create situation with higher memory consumption, but it will take some time (1 week?), because it's random process.
IMHO ps_mem should report this same amount of memory as free.
On my notebook:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.