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

4
votes
1answer
242 views

What do the different memory counters in FreeBSD mean?

top tells me: last pid: 64807; load averages: 0.99, 0.97, 0.92 up 189+04:47:22 09:16:17 45 processes: 1 running, 44 sleeping CPU: 0.4% user, 0.0% nice, ...
1
vote
2answers
70 views

Swap to RAM, or not

Having a 32-bit system with 4G RAM and 7G swap. Linux 3.5.0-49-generic i686. From time to time the memory bank is filled up and everything lags down. In 99% of the cases it is Chrome using vast ...
8
votes
1answer
258 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 ...
1
vote
2answers
245 views

Does BIOS read directly the bootloader or load it into RAM?

I'm trying to understand the very first steps of the boot process. The CPU read the BIOS It reads a fixed address instruction It will jump to the first BIOS instructions address It will execute ...
1
vote
1answer
84 views

Virtual Memory Usage Exceeding Physical Drive Space

I have a machine running Ubuntu on Amazon EC2. The machine has a 43 Gb root drive and 30 Gb of RAM. I am running a processor and memory intensive process and I've noticed that it sometimes stalls for ...
1
vote
1answer
98 views

xentop gives static info about memory usage

I am using CentOS 6.5 and Xen 4.2.4-30 xentop does not change MEM(%) at all. NAME STATE CPU(sec) CPU(%) MEM(k) MEM(%) MAXMEM(k) MAXMEM(%) VCPUS NETS NETTX(k) NETRX(k) VBDS VBD_OO ...
4
votes
1answer
42 views

Memory consumption of a script

Is there way to check the memory (physical & virtual) consumption of a script, of course in the moment of its execution. Calculating the used memory minus the used memory before and after the ...
3
votes
1answer
140 views

Does 'ulimit -m' not work on (modern) Linux?

This article claims that the -m flag to ulimit does nothing in modern Linux. I can find nothing else to corroborate this claim. Is it accurate? You may try to limit the memory usage of a process ...
1
vote
1answer
82 views

How to extract running Apache configuration from core dump?

Apache is loading the configuration from files into its memory. If the config files are changing the Apache process won't activate it until a reload/restart happens. Now I have to debug the current ...
0
votes
1answer
88 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?
3
votes
1answer
225 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 ...
0
votes
2answers
693 views

Debug out-of-memory with /var/log/messages

The following report is thrown in my messages log: kernel: Out of memory: Kill process 9163 (mysqld) score 511 or sacrifice child kernel: Killed process 9163, UID 27, (mysqld) total-vm:2457368kB, ...
2
votes
2answers
83 views

cannot find what has used all the memory

The server has about 24GB memory. By running free -g I find the memory is used up total used free shared buffers cached Mem: 23 23 0 ...
2
votes
1answer
647 views

What would happen if the amount of free memory (vm.min_free_kbytes) was too low?

I came across the following parameter in kernel settings (in sysctl): vm.min_free_kbytes This is the amount of free memory (RAM) that's always free no matter what. In my case, I have only 1 GiB of ...
2
votes
3answers
275 views

how is page size determined in virtual address space?

Linux uses a virtual memory system where all of the addresses are virtual addresses and not physical addresses. These virtual addresses are converted into physical addresses by the processor. To ...
0
votes
1answer
77 views

buffer cache and free memory

Below is the output of free in Ubuntu: $ free total used free shared buffers cached Mem: 8173180 8013092 160088 0 1076276 3091136 -/+ ...
1
vote
1answer
75 views

32 bit OS memory limitation on NUMA systems

Running 32 bit Rhel 6.5 with kernel 2.6.32-431.el6.i686 on a server with 46 Gb RAM and NUMA support. CONFIG_X86_PAE=y Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz OS is not able to see more than 14GB ...
1
vote
0answers
213 views

About Linux Memory Compaction (CONFIG_COMPACTION)

I have a question regarding memory compaction on Linux. Generally compaction is triggered when system cannot satisfy a large contiguous memory allocation. This causes the compaction to run on all ...
2
votes
2answers
277 views

/proc/pid/maps addresses (and converting them)

When looking at the memory maps in /proc/pid/maps, we can see different length addresses 00400000-0042e000 r-xp 00000000 fb:01 268953 /bin/nano 0062e000-0062f000 r--p ...
4
votes
1answer
474 views

kernel: disabling /dev/kmem and /dev/mem

I understand that /dev/kmem and /dev/mem provide access to the memory (i.e. raw RAM) of the system. I am also aware, that /dev/kmem can be completely disabled in kernel and that access can be ...
2
votes
0answers
39 views

Getting non-stored password from Icedove

I've recently changed my mail password (because of Heartbleed), but I've forgotten the new one. When entering the new password in Icedove, I didn't think of clicking "remember password", but the ...
0
votes
1answer
38 views

Is memory in user space always low to high

I mean that if its true always that first lower addresses are used and then increment the address to access higher address. Can it be in reverse order?
5
votes
1answer
66 views

How the network packets are transferred to the memory on linux?

Is there some command or tool for monitoring network packets and how those packets are handled by the memory and than proceeded to the CPU on linux platform? Using tcpdump I can capture many apache ...
0
votes
1answer
38 views

Configure the OOM to avoid having the system grind to a halt

I have an SSD and therefore no swap. However, when I open a lot of tabs in the browser, the system tends to grind to a halt. If I'm lucky, I can close one or two tabs before the system is completely ...
2
votes
0answers
212 views

Debian 64-bit sees less than 4GB of RAM

I have a Debian wheezy (7.4) amd64 virtual machine running under VirtualBox 4.3.10 on a Win7 x64 host with AMD A10-5700 processor. The virtual machine is configured with 16GB of memory (the host has ...
1
vote
1answer
296 views

Why is swap used when a lot of memory is still free? [duplicate]

In the below 2.6.18 Linux Kernel (Red Hat) server, there is a lot of free memory, but I see some swap is used. I always thought of swap as an overflow when memory has been depleted. Why would it ...
0
votes
1answer
95 views

Can continually assigning a variable in a shell script cause a memory leak?

I've written a short script to copy Apache's server status to a log: #Save date and time to a variable dt=$(date) #Echo date and time to the log file as it's not included in server-status echo "Time ...
0
votes
1answer
43 views

Having an independent console to kill rogue process?

Sometimes a flash plugin starts using all the mem and CPU or an app is also behaving "naughtily" and my system starts to crawl until i finally get a terminal with htop up and kill the rogue process, ...
1
vote
0answers
140 views

What is the structure of Libvirt Qemu VM dump/save files?

I need to do some exploration of Qemu-KVM virtual machines physical memory (particularly I need to check the fact of the physical memory intersection). In order to do that I'm trying to save VM's ...
2
votes
0answers
58 views

Set up OS and Runnig app using x32-ABI

Intro I just moved to a 64bit installation and I'm experiencing big difference in memory usage ( especially for app like chrome, firefox, mysql and java apps ): - While before 4gb were enough now they ...
0
votes
1answer
81 views

What happens to the files when they are being decrypted?

I have the server's webroot directory mounted on a partition which is being protected with LUKS encryption. I want to know what happens to the files within when that partition is being decrypted. Does ...
2
votes
0answers
59 views

Automatically memtest and then boot

Is there some way to reboot server, so it runs memtest (say, 1 or 2 passes) and then reboots back to Linux and writes report to some log? This feature in Windows Server 2012 helped me to diagnose bad ...
10
votes
2answers
590 views

On system memory… specifically the difference between `tmpfs,` `shm,` and `hugepages…`

I've been curious lately about the various Linux kernel memory based filesystems. Note: As far as I'm concerned, the questions below should be considered more or less optional when compared with a ...
1
vote
0answers
27 views

About the usage of Memory in a linux server [duplicate]

I find my server's memory usage is so high, part of the output of command free is shown below: total used free shared buffers cached Mem: 82446460 81961412 ...
2
votes
1answer
1k views

How to dump memory image from linux system?

I know to dump memory images in Window. (eg-dumpit) But I don't know how to dump memory images in Linux. I wanna get memory images in Linux and from linux to linux with ssh connection or something. ...
3
votes
1answer
41 views

program executing for 2 days

I have a java program which implements the Hungarian algorithm. I made changes to the existing code in such a way that the input is read from file. I have a pretty huge input around 32,000 rows for ...
7
votes
7answers
2k views

cron Vs. sleep - which is the better one in terms of efficient cpu/memory utilization?

The Case: I need to run some commands/script at certain intervals of time and for this I have two options - 1. set up a cron-job or, 2. implement a loop with sleep in the script itself. Question: ...
1
vote
0answers
25 views

Set memory allocation for applications in Ubuntu [duplicate]

I have an application running under Ubuntu that tries to consume all available memory. Is there a way to specify and restrict the allocations available for a given application?
1
vote
0answers
108 views

How to cause memory fragmentation on a Linux based embedded device?

Hardware ARM What am I trying to do: Answer: I am trying to create memory fragmentation on a Linux 2.6.31 based swapless embedded device. Why: Answer:I am trying to port some patches to Linux ...
2
votes
0answers
65 views

Why does the kernel boot faster with less memory allocated?

This is not a important question, I'm just curious. Something strange happened, which isn't quiet clear to me: In the kernel command line, the amount of the memory can be set statically with the ...
4
votes
3answers
118 views

What happens in UNIX/Linux when a program is bigger then size of memory?

I was wondering how embedded systems are able run programs bigger than the size of memory. If I had 1 GB of memory and the program was 1.5 GB, would the program load? Are there systems that only use ...
2
votes
2answers
271 views

Are limits in linux (like those controlled by ulimit or /etc/security/limits.conf) per user or per user per process?

I saw three copies of a process running and one of them cored in what seems like memory issue. Each individually occupies about 3-4 GB of memory..would a limit account for killing one of them? And if ...
16
votes
1answer
2k views

What is maximum RAM supportable by Linux?

What is the maximum supportable RAM by Linux? Assume that hardware is/supports 64-bit. Among all Linux distros. Does it go up to 16 exabytes, or is it limited like with Windows which I believe is 192 ...
14
votes
1answer
1k views

Loading of shared libraries and RAM usage

I'm wondering about the way Linux manages shared libraries. (actually I'm talking about Maemo Fremantle, a Debian-based distro released in 2009 running on 256MB RAM). Let's assume we have two ...
3
votes
1answer
536 views

Optimised ZFS in low RAM environment feasibility?

I am currently setting up a file server and have come to the point of actually setting up the data drives. The system has 4 drives (one OS disk, 3 data disks). The OS disk is formatted as ext4 and ...
0
votes
1answer
116 views

mdadm large memory consumption [closed]

I am building a RAID 6 with mdadm (8 WD Red 3 Tb) on Ubuntu 13.10x64 server with ext4 filesystem. When I download torrent on the array, server RAM is filled for maximum cap (8 Gb) memory is free when ...
2
votes
2answers
1k 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 ...
1
vote
0answers
199 views

dovecot. Can't allocate memory, but free -m show available memory

I trying to send mail with PHP (engine - Drupal). But it can't send mail and write message about it in to log (nothing more that adressed). Part of /var/log/mail.err : Feb 14 19:55:30 hivede13-3220 ...
2
votes
2answers
1k 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
3answers
535 views

Why does MemTotal in /proc/meminfo change?

I monitor value from /proc/meminfo file, namely the MemTotal: number. It changes if a ram module breaks, roughly by size of the memory module - this is obvious. I know the definition for the field ...