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
1answer
62 views

Limiting processes by memory under Linux

We must launch several hungry processes on a Linux system. These processes often need several Go (~5Go) of memory to run (total memory: 16Go RAM + 2Go swap). At first, when the system was running ...
1
vote
0answers
152 views

CentOS memory allocation

I was running my VPS with CentOS on 1G memory, but I saw the memory was getting "full" so I had 1G extra installed. This VPS is one I rent at a hosting company. That company did most of the ...
2
votes
0answers
92 views

Writing to Arbitrary Memory Addresses [closed]

I'm reading "Art of Exploitation 2nd Ed." and I have a question regarding a section on format string attacks. Target program Below code (fmt_vuln.c) is a target program. #include <stdio.h> ...
1
vote
2answers
173 views

Swap bash script pins htop's memory usage

I deployed a hack to add swap space to a VPS that otherwise didn't allow me to use swapon to create a file. Prior to adding and executing the script, I followed the steps outlined here. and ...
70
votes
12answers
25k views

How to fill 90% of the free memory?

I want to do some low-resources testing and for that I need to have 90% of the free memory full. How can I do this on a *nix system?
2
votes
2answers
129 views

lsof - debug the output information

I was going through the questions of this site. In this particular question, I see the command lsof being used to list the files that are open for a particular user. I ran the below command in my ...
4
votes
1answer
111 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 ...
2
votes
1answer
147 views

Know when a memory address is aligned or unaligned

Im getting kernel oops because ppp driver is trying to access to unaligned address (there is a pointer pointing to unaligned address). Im not sure about the meaning of unaligned address. It means not ...
2
votes
2answers
127 views

How does a process handle the situation when it finds no memory to use?

What happens when a particular process finds that there is no memory to use? Will that process kill/restart another process to proceed their task ? Or what the process (that requires more memory) ...
0
votes
1answer
67 views

Running git with higher memory allocation

I am facing memory/data segment issues while running git. However, if I set my ulimits to a bit higher like below. ulimit -m 262144 ulimit -d 262144 It runs fine. Don't we have anyway to allocate ...
3
votes
0answers
394 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 ...
4
votes
2answers
210 views

Copying large file causes excessive swap

On a mid-class CentOS 6.4/64 server with 32 GB RAM, 3 TB free disk space, operating as KVM hypervisor, I start copying a 200 GB file to a destination in the same local filesystem. In fact, this file ...
0
votes
0answers
24 views

Can Any one Suggest good Linux OS Tutorial? [duplicate]

Can Anyone suggest me good tutorial regarding Linux os . My intention is to learn , 1) How Linux OS schedules the processes. 2) different process types. 3) operations on the process. 4) Linux ...
0
votes
2answers
393 views

How to monitor average stats of CPU and memory usage of a Solaris server using scripts?

I need to monitor average CPU and memory usage for a Solaris server. How can I automate the process using scripts to monitor daily CPU and memory usage and give it as an average over a month?
2
votes
2answers
446 views

Need help with a script to test for memory usage

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 ...
0
votes
2answers
127 views

Linux kernel with absolutely no virtual memory [duplicate]

I am interested in obtaining (or building myself) a version of the Linux kernel that has absolutely no virtual memory and none of its attendant overhead. No swap file, no nothing. What are my ...
0
votes
3answers
357 views

How can memtest check all memory while it is still loaded?

Inspired by this question. If you're testing your memory, you have to test all memory - you shouldn't trust any of it to be good. How can memtest effectively do this when memtest itself will consume ...
3
votes
1answer
418 views

Does segfaults mean bad memory

This is a brand new server with a new install and fresh compile of Apache/PHP with nothing crazy. Just a WordPress site hosted and I get the following. Could this just mean bad RAM? If so how can I ...
2
votes
3answers
87 views

when awake from hibernate, will the VIRT column of top command show the swap space used by process?

top - 10:43:31 up 8 days, 1:28, 4 users, load average: 0.72, 0.57, 0.44 Tasks: 180 total, 1 running, 177 sleeping, 0 stopped, 2 zombie %Cpu(s): 8.9 us, 2.1 sy, 0.0 ni, 88.9 id, 0.0 wa, ...
0
votes
1answer
107 views

No virtual memory (-v) item in output of ulimit -a

When I run command ulimit -a, I see no virtual memory item in the list of output of the command. It is unlimited for some user IDs though. Does that mean I am assigned no virtual memory?
2
votes
2answers
165 views

Memory usage command with syntax similar to the time command

What command shows the memory usage of a program, i am looking for a command that is simple to use and has similar syntax to the time command. I am trying to find the memory usage of a md5 hashing ...
19
votes
3answers
2k views

grep: memory exhausted

I was doing a very simple search: grep -R Milledgeville ~/Documents And after some time this error appeared: grep: memory exhausted How can I avoid this? I have 10GB of RAM on my system and few ...
0
votes
1answer
110 views

32-bit on 64-bit: memory usage for multiple processes

I'm working on a Linux hosting solution for game server software, however the software in question is 32-bit and I'd be running 64-bit on the host. Now, I know I can run 32-bit apps on a 64-bit host ...
2
votes
2answers
441 views

swapoff fails when overcommit_memory==2

I've disabled memory overcommitting by setting overcommit_memory=2. Now when I tried to swapoff, I get this error: swapoff: /dev/sda5: swapoff failed: Cannot allocate memory But I in fact have 0 ...
2
votes
1answer
108 views

Static files give ever changing checksum value on Linux

When I cksum large files (150MB) they will often report different checksums on each call. $ cksum test3 1233504235 170213376 test3 $ cksum test3 825031809 170213376 test3 $ cksum test3 189847968 ...
0
votes
1answer
250 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 ...
1
vote
2answers
212 views

Viewing virtual memory usage

I started 700+ threads from a single program And my /proc/[PID]/status file shows the following output. VmPeak: 7228104 kB VmSize: 7228104 kB VmLck: 0 kB VmHWM: 3456 kB VmRSS: ...
0
votes
0answers
34 views

Determine which memory stick contains an address?

I just run memtester and found a single error: FAILURE: possible bad address line at offset 0x869a3bd8. I can re-run memtester with individual memory sticks to determine which one is bad, but I ...
0
votes
1answer
314 views

very high buffer memory usage [closed]

Is this normal - I've never seen buffers so high? $ cat /proc/meminfo MemTotal: 16332808 kB MemFree: 1112264 kB Buffers: 10630124 kB Cached: 699400 kB SwapCached: 0 kB Active: 3262924 kB Inactive: ...
2
votes
2answers
132 views

a handy tool to measure memory consumption of a program [duplicate]

I develop a C code on Debian. I am looking for a program to monitor memory consumption of my code in real-time. The only value I care is the maximum RAM consumption, it should hold the value even if ...
3
votes
1answer
897 views

/proc/meminfo MemTotal =?

What elements of /proc/meminfo sum up to MemTotal? Example of tee /tmp/proc/meminfo < /proc/meminfo MemTotal: 1279296 kB MemFree: 164092 kB Buffers: 62392 kB Cached: ...
0
votes
2answers
131 views

what is an application pool?

I'm reading this article: http://www.modrails.com/documentation/Architectural%20overview.html#web_app_models It talks about how Phusion Passenger extends Apache2 to act as an application server. ...
0
votes
1answer
89 views

What is meant by “a process has open handles to system objects”? [closed]

The following are qualities of a process: virtual address space executable code open handles to system objects a security context a unique process identifier environment variables a priority class ...
0
votes
0answers
23 views

Where is the Virtual kernel Memory Layout? [duplicate]

Specifically, where is the lowmem address range for 64 bit Linux 3.2.0 ? Other posts get it from dmesg. It is not in: /var/log/boot /var/log/dmesg /var/log/kern.log /var/log/syslog
1
vote
1answer
97 views

Eclipse makes laptop unusable

Currently I can't use my eclipse project. I'm using ArchLinux: -` .o+` rkmax@satellite `ooo/ OS: Arch Linux ...
4
votes
1answer
660 views

Does kernel: EDAC MC0: UE page 0x0 point to bad memory, a driver, or something else?

kernel: EDAC MC0: UE page 0x0, offset 0x0, grain 0, row 7, labels ":": i3200 UE All of a sudden today, our CentOS release 6.4 (Final) system started throwing EDAC errors. I rebooted, and the errors ...
3
votes
3answers
59 views

Contents of stack area of a process

I've been going through some Unix text books and I can't have a clear picture on the contents of the stack area of the process. Can anyone please explain or point out some references?
1
vote
1answer
230 views

private memory calculated by pmap, a combination of virtual memory size and resident memory size?

You can use the ps command to get the virtual memory size and the resident memory size of a process: $ ps aux | grep apache2 USER PID %CPU %MEM VSZ RSS TTY STAT START TIME ...
2
votes
1answer
184 views

pmap and memory usage

On Ubuntu 12.04, I have several apache2 processes running (the 1130 parent and the children it spawned), and as you can see, they have around 300-400 mb of virtual memory and 10 mb of resident memory: ...
6
votes
0answers
216 views

Allocated Memory difference in xen guests after using Linux 3+ kernel [closed]

Can someone explain to me why there is a memory difference in Guests with the same configuration? Hypervisor: xen 4.2 64 bit VM1: Centos 5.7 with 2.6.18-274.el5xen Assigned memory from xen is ...
3
votes
0answers
75 views

What does hierarchy support do in cgroup?

cgroup has 2 options for memory control: memory.use_hierarchy = 1 : use hierarchy memory.use_hierarchy = 0 : use flat hierarchy, according to this answer What is the difference between the two? I ...
1
vote
1answer
168 views

How do you track memory usage in a ksh93 script

We have a number of ksh scripts that run forever (inside a while loop), or at least until a shutdown event is delivered to them. We had a project where these scripts where converted to ksh93 (and ...
1
vote
0answers
115 views

Understanding the Buddy Allocator [closed]

I have a conceptual doubt in understanding the way Linux Kernel manages Free blocks. Here is what I interpreted through reading so far. The Buddy Allocator implementation is allocation scheme that ...
-1
votes
1answer
38 views

get Various types of address used [closed]

How to get various address ranges of a running machine or a crash dump? User virtual address Physical address Bus address Kernel logical address Kernel virtual address I don't need the bus ...
1
vote
2answers
439 views

Change the size of my memory pages?

I would like to change my kernel's page size from 4KB to 4MB as I have had a large addition of RAM to my computer and I am never running out of anymore. The idea is that programs requiring large ...
0
votes
0answers
70 views

Shared memory counted as cached

When i start my application that allocates about 5GB of shared memory, i instantly see that the the cache is up by 5GB. Why is the application shared memory is counted as also as cached memory? ...
5
votes
2answers
240 views

What happened to my RAM?

I am trying to understand the basics of the Linux OS. I'm running 64-bit Ubuntu 12.04 on a 64-bit CPU. The system has 2GB of RAM. cat /proc/meminfo MemTotal: 2012040 kB Question 1: Where is ...
3
votes
1answer
488 views

operation in /dev/shm causes overflow

I am repeating tens of thousands of similar operations in /dev/shm, each with a directory created, files written, and then removed. My assumption used to be that I was actually creating directories ...
4
votes
2answers
292 views

Turning off swapping for only one process with cgroups?

I would like to turn off swapping for only one process. Swap should work as usual for the other processes. How I can implement this with cgroups?
5
votes
1answer
121 views

can initramfs be paged out to swap disk?

I am using initramfs to boot Centos via PXE. The initramfs used memory is listed within the "cached" value in /proc/meminfo or via free. Since I need to calculate performance data, I need to know ...