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

0
votes
1answer
9 views

Cached Memory but swap is being used

I've got a VM with 16gb of memory and recently it's been using some of the swap space. At first I thought this was because it was using all the memory but then I read some articles about the Cached ...
6
votes
1answer
1k 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 ...
3
votes
1answer
19 views

Shared library mappings in /proc/pid/maps

Why does /proc/pid/maps contain a few records for the same library ? Here is an example: 7fae7db9f000-7fae7dc8f000 r-xp 00000000 08:05 536861 ...
1
vote
0answers
33 views

Constant 60KB Shared library memory on /proc/<pid>/maps

In a quest for understanding RAM requirements of system processes, I arrived to analysis of /proc/pid/maps. I have noticed a pattern: many shared libraries have exactly 60KB space allocated in their ...
3
votes
2answers
5k 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 ...
4
votes
2answers
603 views

Fastest `uniq` tool in linux

I have large text file (1.5 G), I want to know what the fastest and more reliable tool in linux is. I usualy use: awk '!x[$0]++' file.txt But when I use htop command I see my memory usage is ...
1
vote
1answer
8 views

upstart jobs - privileged vs unprivileged

On one of my VMs, some upstart jobs were failing, and when I checked df, showed that I had run out of disk-space (Use% was 100 on /dev/sda1). What I did not get is: the jobs which were running with ...
4
votes
3answers
8k views

Bash script that automatically kills processes when CPU/memory usage gets too high

I have created a script that kills processes if CPU and/or memory usage hits 80%. It creates a list of killed processes when this happens. What can I do to improve it? while [ 1 ]; do echo echo ...
1
vote
1answer
23 views

Why is IO so high when almost out of memory

On my work laptop with an SSD and no swap, I sometimes run out of memory when running RAM-expensive applications (virtual machine, etc). When that happens, the system becomes slow (expected) but what ...
1
vote
2answers
637 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 ...
63
votes
5answers
70k 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?
1
vote
1answer
26 views

Memory usage of a given process (using Linux proc filesystem)

I want to know which files from /proc directory and which fields of these files I need to calculate the memory usage of a given pid. I've been using the "stat" file and the "vsize" parameter that is ...
2
votes
3answers
414 views

Does Linux have ways to cache IO with memory

My server has a large amount of memory. However, the amount of IO (each of which is small) is very high. Is there a way to make a virtual drive out of portion of the memory? I realize I can also use ...
6
votes
1answer
4k views

Mathematical connection between SZ RSS and VSZ in ps o/p?

I wanted to know what mathematical connection is there between the SZ, RSS and VSZ output in ps output e.g. ps -p 2363 -o sz,rss,vsz
4
votes
4answers
50 views

How do see the memory used by a program in ubuntu?

How can I see the raw memory data used by an application ? Like , suppose I have a file name something.sh . Now I run the command ./something.sh , and then I want see all the data its accessing in ram ...
2
votes
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 ...
0
votes
1answer
684 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 ...
0
votes
0answers
5 views

How to troubleshoot High VIRT and RES memory on a Standby Server

We currently run TIBCO EMS on our RHEL6 servers, it is Active-Passive setup, for some reason we are seeing a really high VIRT and RES usage by the standby instance (approx 198GB). The application ...
1
vote
1answer
16 views

tstime and memory usage

So I am interested in measuring the high-water memory usage of a process. I would love to be able to use tstime but am having troubles figuring it out. Does it work in Unix? When I go to ...
2
votes
1answer
45 views

How run free command by crontab

I want to run this command: free && sync && echo 3 > /proc/sys/vm/drop_caches && free -m by cron that why I'm able to free my RAM and cache in ubuntu system. I'm using ...
3
votes
2answers
90 views

Memory usage of an infinitely looping shell script

So, I have a shell script for updating a MySQL database that looks something like this: #!/bin/sh mysql -h "localhost" -u "root" "-p********" "database" < "update.sql" sleep 5 sh $0 It sleeps ...
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 ...
40
votes
4answers
35k views

How to display meminfo in megabytes in top?

Sometimes it is not comfortable to see meminfo in kilobytes while you have several gigs of RAM. In Linux it looks like that: And here is how it looks in Mac OS X: Is there a way to display ...
3
votes
2answers
72 views

Physical Address Extension - how do virtual addresses work?

I'm running Debian Linux. uname -m says i686 which means 32-bit architecture machine with pae flag enabled. getconf LONG_BIT is 32. Installed RAM capacity is 6GB. My /proc/cpuinfo has an entry ...
26
votes
3answers
17k 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 using bash. How do I gather this information?
0
votes
0answers
35 views

Storage allocator out of space error on unix shell script

While running the script called abc.sh, following errors are thrown. abc.sh: line 226: storage allocator out of space on 64946176 byte request ( region 64329285632 segments 1981 busy ...
0
votes
0answers
31 views

Why process is killed while a lot of memory is free?

I am running a python script in ipython. This script will take about 8GB RAM. The system has more than 80 GB free RAM but the swap is nearly 0. My script was killed after it runned for a while. I want ...
1
vote
1answer
24 views

Can I trust in memory information of dmicode?

I want to buy 16gb memory for my notebook. I ran dmicode and found this information: Handle 0x0005, DMI type 5, 20 bytes Memory Controller Information Error Detecting Method: None ...
0
votes
0answers
7 views

/proc filesystem - getting useful information

I'm trying to understand the values in /proc/PID/status. I want to calculate cpu% & mem% used by PID, similar to top bash command. For Memory percentage usage I can do the following (correct me ...
3
votes
1answer
43 views

Resource (CPU time and memory) limitation and termination of a process upon violation in Linux

The problem: Given a process, limit the resources it and its child-processes can use. I.e. set CPU time and virtual memory quotas. When the process group exceeds one of the limits, terminate it, ...
2
votes
1answer
54 views

What does Linux spend memory on other than userland, caches and slab?

I have a system with 1 GB of physical RAM. Right now, free shows the following memory usage: total used free shared buffers cached Mem: 1026360 863660 ...
53
votes
5answers
66k views

Limit memory usage for a single Linux process

I'm running pdftoppm to convert a user-provided PDF into a 300DPI image. This works great, except if the user provides an PDF with a very large page size. pdftoppm will allocate enough memory to ...
2
votes
0answers
42 views

Which process wrote to which memory address? [closed]

Recently, I've been seeing a wide variety of memory-related crashes at work (C++ applications on Ubuntu 14.04). Our applications use a properietary third party library to interface with real time data ...
1
vote
1answer
51 views

How to find the page size of physical memories from userspace?

I want to understand the page size, sector size, block size (if applicable) of a usb flash drive. Is there a way for me to inspect those with Ubuntu? mount /dev/sda1 /mnt ? umount /dev/sda1 Edit ...
0
votes
0answers
37 views

Is High Virtual Memory usage a problem or may cause problems?

In our server, we have a python based code that listen ports. The amount of Virtual Memory it uses is increased greatly with time Like: USER PID %CPU %MEM VSZ RSS TTY STAT ...
57
votes
12answers
11k views

Do I need swap space if I have more than enough amount of RAM?

From what I understand, the purpose of a swap partition in Linux is to free up some "not as frequently accessed" information from RAM and move it to a specific partition on your harddrive (at the cost ...
1
vote
0answers
17 views

How can Profile/Benchmark ram performance?

Effectively I would like to know if my memory hardware it a bottleneck of my system performance. I am dealing with really old hardware (late 2000), mind you. If there is room for improvement I would ...
3
votes
1answer
55 views

How do I forbid access to physical memory in Linux?

I'm on an embedded system (Zynq from Xilinx. It uses ARMv7, Cortex-A9), and running Linux. I need to ensure that no access to a certain physical memory range is ever made, either accidentally by the ...
1
vote
0answers
24 views

What is kswapd_low_wmark_hit_quickly from /proc/vmstat

What does this parameter mean? # cat /proc/vmstat | grep low kswapd_low_wmark_hit_quickly 2
0
votes
0answers
19 views

Page Fault Frequency Algorithm - Compute number of frames and mean resident set

I'm reading about Page Fault Frequency algorithm but I don't understand how can I compute the number of frames. For example I have my reference string: 112233444412412214432255543 and control ...
0
votes
1answer
43 views

Substantial portion of memory used is not accounted for by user processes

I recently installed a copy of Ubuntu Server 14.04.2 LTS on a cluster. All appears to be working fine, but a large portion (around half) of our total available RAM is being used. I.e., when I run ...
10
votes
1answer
149 views

Does anyone actually use and benefit from transparent huge pages?

I've been struggling with transparent huge pages performance issues of late, and noticed many database systems recommend turning it off. I am talking Oracle, Postgresql, MySQL, Cassandra, NuoDB, ...
2
votes
2answers
855 views

How to mount a dd-image which was created via fmem (memory dump tool)

I'm quite new to Linux. I've used the tool fmem for creating a memory dump dd-file. That works fine. But how can I access this image? I've tried it with mount but it says I have to specify a ...
0
votes
0answers
63 views

How to determine the memory usage of a single process?

There a few helpful scripts out there, which give some useful information. But I would like to calculate those values myself. I am interested in values like USS and PSS. I already had my first attempt ...
3
votes
2answers
57 views

Sum the memory usages of all the processes of a program?

How can we sum the memory usages of all the processes of a program? For example, I have opened many Chrome tabs for webpages, and each tab runs a different process. How can I get the total sum of ...
13
votes
8answers
3k views

Memory problems when compressing and transferring a large number of small files (1TB in total)

I have 5 million files which take up about 1TB of storage space. I need to transfer these files to a third party. What's the best way to do this? I have tried reducing the size using .tar.gz, but ...
0
votes
1answer
125 views

Process Being Killed due to low swap

I'm running a python (2.7) script on mac osx yosemite. The script is fairly computationally intensive, certainly bumping up against my machine's RAM limitations. The computer crashes and restarts ...
1
vote
2answers
39 views

What unit is used for the memory values from top command in Linux?

I have the following snippet shown as my top command output. One real quick question here being, the values of Mem are shown in what granularity? Are they the number of bytes? Mem: 8191488k total, ...
0
votes
2answers
90 views

Linux Mint 64 bit eating ram

I have a Mint 17.1 install. It has 2x2Gb memory sticks. I have verified this with sudo dmidecode --type memory. My problem is that I don't see all the memory I expect.I would expect 4194304 kB. (i.e. ...
-2
votes
1answer
38 views

Memory utiization

I use free -m to check memory status. In this pic we see total used & memory. I want the result in %. Like Used memory - total memory x by 100. And whenever I want to check the memory status, it ...