In computing, memory refers to the state information of a computing system, as it is kept active in some physical structure.

learn more… | top users | synonyms

1
vote
2answers
1k views

Discrepancy between reported used memory and sum of application memory usage

I'm running a desktop system that quite regularly suffers from lack of memory, this prompted me to investigate what causes the issue in the first place. Problem is, there's no single process that ...
1
vote
1answer
10 views

How to get the size of GPU memory available for OpenCL?

How is it possible to get the size of the memory on a GPU, which is available for programs with use OpenCL for computations, such as darktable? I know of lspci which gives some general informations, ...
4
votes
1answer
437 views

Spike in swap utilisation without high swap rate

Every Saturday, for reasons unknown to me, one of my servers experiences a spike in swap utilisation. It's not necessarily a problem as there is plenty of free memory available, but I'd still like to ...
0
votes
2answers
816 views

How to compute Linux slab memory leak in GNU/Linux ( proc/slabinfo ) of running process

How to compute Linux slab memory leak in GNU/Linux ( proc/slabinfo ) of running process ? I'm want to free usage is not working properly . I want to way how to check Memory Usage & Memory Leak ...
1
vote
1answer
562 views

How to check which process is using most memory

When I check free in one of Prod server it showing 70% of memory is being used: total used free shared buffers cached Mem: 164923172 141171860 23751312 ...
0
votes
0answers
11 views

What are bust_spinlocks() [migrated]

What is the concept of bust_spinlocks() In do_kernel_fault() function of ARM 64, we can see the following code ...
1
vote
1answer
6 views

Changing redis filesystem writing behaviour

The filesystem usage of redis is peaking every 20 minutes at the moment on my server. Sometimes from 63.1% to over 90.9%! This causes my monitoring to send me alerts if its over a longer time-frame. ...
1
vote
1answer
18 views

Linux always hangs when out of physical memory

I'm using ArchLinux, with 3.18.6-1 kernel, when a software uses more than physical memory (when total memory used is >5.8 GB), it always lags, unresponsive, and all that I can do is reset the ...
2
votes
1answer
34 views

The structure of /proc/kcore on 64-bit machine and relation to physical memory

Let me preface this question by saying that I've found a lot of answers for questions similar to my question but for 32-bit machines. However, I can't find anything for 64-bit machines. Please no ...
0
votes
1answer
45 views

Linux Debian memory leak? [duplicate]

I am running an application which needs to be restarted everyday. I am noticing that when I close this application and I run "free -m" It says: total used free shared ...
3
votes
1answer
1k views

Excessively high memory usage reported (3 GB) after reboot

Brief problem description: A 64-bit Gentoo on Intel Core-2 Q6600 reports about 3GB used out of 8GB total memory after reboot. This memory is neither claimed by any process, nor is it used by ...
2
votes
1answer
38 views

What does -/+ buffers/cache means in the output of free? [closed]

I know this is a lame question, but I want to understand why CentOS consumes my Physical memory when certain process stopped. Suppose I have opened a file of 10GB then it consumes 10GB in ram and ...
1
vote
1answer
15 views

CentOS Black Screen after 4+ hours of indexing

I am running a CentOS virtual image on virtual box. It has liferay and solr installed on it and I am trying to index a Lar file that is 50+ MB of metadata. This is estimated to take more than 12 hours ...
9
votes
2answers
2k views

How can I dump the full system memory?

After starting VirtualBox, the computer became sluggish and then hung completely due to OOM. Usually, OOM should be starting killing processes in order to free up some space, but this did not happen ...
0
votes
2answers
53 views

Loading and execution of programs in memory [closed]

While comparing between linking loader and linkage editor I came across a point that in case of linking loader linking and relocation takes place for each execution of the program( and happens at time ...
2
votes
1answer
540 views

Can I use pmap to find out Memory utilization?

I want to measure memory utilization of my Apache Server. Can I use the pmap command and pass all the process IDs of httpd and take that as total utilization? pmap PID1 PID2 .... It seems that pmap ...
2
votes
3answers
1k views

Linux / JVM - OutOfMemoryError: unable to create new native thread

I have a memory problem with a Linux server (CentOS). It is a VM. Below is the context. It has 70Gb of RAM. There are 2 tomcat running on it. One tomcat is given a heap of 13Gb and the other one a ...
3
votes
1answer
135 views

RES memory more than initial and maximum memory for java

We have a java application running on Centos 6.4 what we notice is that the RES is around 370m which is more then the allocated max that is 256m. Does this signify that we the application is leaking? ...
0
votes
1answer
29 views

«nm» shows zero VMA: where is the symbol will be mapped?

I am look at the functions of my compiled application via «nm» — I need to find an address to set a breakpoint to the «send()» function. The problem is that this function accordingly to «nm»'s output ...
0
votes
1answer
471 views

Does sync command remove the dirty cache in the memory?

I am aware that sync command flushes the dirty cache into disk. I have run free command first, then sync, and then free again. The result of latter free command shows more free memory available than ...
0
votes
0answers
3 views

doubts regarding memory control group and memory zones lru list?

I have doubts regarding memory control group and memory zones lru list ? I just want know whether memory control groups lru list is subset of memory zone lru list or they have different pages on them ...
3
votes
2answers
3k views

How to reduce ClamAV memory usage?

I'm running a Ubuntu based web server (Apache, MySQL) on a 512MB VPS. This is more than sufficient for the website it is running (small forum). As I wanted to add some protection against viruses I ...
3
votes
2answers
87 views

How do I find the resident memory size of a process on busybox?

I run top on busybox and it shows all processes and their virtual memory size. How do I determine how much RAM is being used by each process?
2
votes
3answers
2k views

Linux empty buffer cache command permission denied

I'm using the following commands to flush cache: # sync; echo 3 > /proc/sys/vm/drop_caches # sync; echo 2 > /proc/sys/vm/drop_caches # sync; echo 1 > /proc/sys/vm/drop_caches When I use ...
3
votes
0answers
185 views

Why message queues are not being used for any system level applications in Ubuntu OS?

In my Linux machine, when i run 'ipcs' command, I have the below information listed srinivas@srinivas-G41MT-S2:~$ ipcs -a ------ Shared Memory Segments -------- key shmid owner ...
1
vote
0answers
37 views

Java process gets killed frequently by OOM - Killer on upgraded hardware

I am running solr on an Ubuntu server along with 4 other java processes. Current index size is 30 GB. My solr process gets killed frequently in few hours. It clearly mentions that its an OOM killer. I ...
4
votes
1answer
662 views

Is it possible to find the physical address range of a DIMM?

I note that SMBios Type 20 would help here, but it's optional as of version 2.5 (2006-09-05) pp. 25, L796, and pp. 131, whereas types 16, 17 and 19 are mandatory, but don't quite help. Physical ...
7
votes
1answer
80 views

How can I monitor per process/per thread memory consumption (divided into heap, stack, data, code)?

Before jumping in and writing my own code, I want to find out if there is GNU/Linux software that is able to output something similar to QNX's showmem. For each thread of each process that is ...
0
votes
2answers
28 views

find the application that consuming large memory

How to find which application is consuming large memory? Is there any other way than using top?
2
votes
0answers
38 views

How can the RES memory reported for a Java process be higher than the VIRT memory?

I've been monitoring a Java process (Oracle Weblogic) using TOP and have observed that sometimes the following will happen: RES will increase from it's usual stable level of 2,097,152 KB up to ...
0
votes
2answers
210 views

What does “task mysqld:xxx blocked for more than 120 seconds” mean?

We are troubleshooting a MySQL issue where some queries are taking a very long time complete and I see many of these entry in /var/log/messages: Jan 28 05:52:15 64455-alpha01 kernel: [2529273.616327] ...
7
votes
3answers
5k views

Why is the theoretical RAM limit for RHEL 6 128 TB and how is this determined?

I'm studying for RHCSA and am confused by a statement I came across in some training material: There is no practical maximum RAM, as theoretically, you could run 128 TB of RAM on RHEL 6. But ...
0
votes
1answer
493 views

Java/malloc memory corruption error when running SDK Android Manager

I want to install Android SDK, so I manually installed Java JDK 7u51, downloaded SDK ADT bundle for Linux x64, and tried to run it. When I run android, the SDK manager windows hangs halfway through ...
5
votes
2answers
3k views

How to remove cache device from bcache?

I believe, that once I made sure my cache device state is "clean": $ sudo cat /sys/block/bcache0/bcache/state I can just physically remove it from the machine when it is powered off or boot with ...
19
votes
3answers
11k views

How to Determine the Amount of RAM Slots In Use?

I forgot how many RAM modules are installed on my laptop. I do not want to unscrew it but want to look it up on the console. How do I gather this information?
58
votes
5answers
30k views

What are high memory and low memory on Linux?

I'm interested in the difference between Highmem and Lowmem: Why is there such a differentiation? What do we gain by doing so? What features does each have?
1
vote
0answers
149 views

Fork / Cannot allocate memory

I have a 64-bit server running linux 3.x that reports "bash: fork: cannot allocate memory". This server has plenty of RAM (64G) and swap (128G) and I cannot see a particular process being the culript ...
2
votes
0answers
37 views

What uses Linux “application memory”?

Just for fun, I wanted to watch what ls -lR / does to my "buffers" memory on a Linux system. As expected, the value increased. But I noticed that the "application memory" (i.e. "used" - (buffers + ...
1
vote
1answer
29 views

Accounting for “missing memory” from sysctl

I'm on OS X Yosemite, ran this code: unsigned long num_; sysctl((int[]){CTL_HW, HW_PHYSMEM}, 2, &num_, &len, NULL, 0); printf("AMT MEM: , %lu\n", num_); and getting back 140735340871680 ...
1
vote
1answer
56 views

Equivalent command for ``time`` for memory usage?

by using time we can easily get the information about how long a program run, I was wondering if there is any equivalent command I can use for memory usages? Like how many memory are allocated for ...
0
votes
0answers
46 views

Correctly determining the REAL linux memory usage

I have a curiosity about memory management in Linux: It is possible to determine the use of real memory? (That memory that is being used actually, without being allocated only). How can I do it? ...
4
votes
1answer
53 views

what's the difference between page cache and buffer cache?

In linux OS, you can type command "echo 3 > /proc/sys/vm/drop_cache" to release memory, and you can type command "sync" to release the memory. And in linux kernel there are two kind of cache, one is ...
21
votes
2answers
21k views

How to display `top` results sorted by memory usage in real time?

How can I display the top results in my terminal in real time so that the list is sorted by memory usage?
5
votes
2answers
5k views

How to limit application memory usage?

I have spend 2 hours reading questions about this matter, and still there is some misunderstanding. I have this process: USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1452 0.4 1.8 ...
8
votes
2answers
461 views

How to limit the total resources (memory) of a process and its children

There are plenty of questions and answers about constraining the resources of a single process, e.g. RLIMIT_AS can be used to constrain the maximum memory allocated by a process that can be seen as ...
3
votes
2answers
5k views

How to find out total memory resource usage with ps?

With ps command I can find out how much memory each program uses: ps -u mertnuhoglu -o pcpu,rss,pid,command Is it possible to find out the sums of each type of resource usage as well, easily?
1
vote
2answers
120 views

Random application crashes in Linux

Sometimes after booting my computer, some applications fail to start: they crash. They're usually the largest ones, such as firefox, thunderbird or virtualbox. Rebooting or cleaning the cache usually ...
2
votes
1answer
70 views

GNU Parallel Limit Memory Usage

Is it possible to limit the memory usage of all processes started by GNU parallel? I realize there are ways to limit the number of jobs, but in cases where it isn't easy to predict the memory usage ...
1
vote
1answer
32 views

take the DRAM performance of the processes into consideration when scheduling

The CFS scheduler in Linux schedules the processes based on the virtual runtime of CPU. But, the DRAM memory is the bottleneck in most of the emerging domains. Why not take the DRAM performance of ...
2
votes
2answers
1k views

Need help with a script to test for memory usage [closed]

I'm trying to put up a temporary band-aid while I work out a solution for a app's memory leak. What I wrote was a small bash script that I put in the root on the server. This is what the script is ...