Memory management is the act of managing computer memory at the system level. Questions tagged with Memory Management can cover Applications and Operating Systems

learn more… | top users | synonyms

51
votes
5answers
35k views

How to disable Mac OS X from using swap when there still is “Inactive” memory?

A common phenomena in my day to day usage (and several other's according to various posts throughout the internet) of OS X, the system seems to become slow whenever there is no more "Free" memory ...
19
votes
6answers
26k views

Where exactly L1, L2 and L3 Caches located in computer?

Where exactly L1, L2 and L3 Caches Located in computer ? I know, we use Cache to increase performance by picking DATA and INSTRUCTIONS from Cache rather than Main Memory. Following are my questions ...
18
votes
2answers
2k views

In Windows 8.1, is there a way ensure a process is not the first to get killed when running out of RAM?

I wrote a .NET 4.5 application that buffers colour, infrared, and depth data from a Kinect v2, performs some processing on it, and then dumps it to disk, in uncompressed form; the .NET application ...
16
votes
3answers
3k views

Is it possible to make the OOM killer intervent earlier?

I try to tweak my development system to maximal reliability. I disabled swap, because for GUI usage it mostly renders the machine unresponsive in such a way not useable anymore. Nevertheless, if ...
16
votes
4answers
2k views

Is killing a process still considered bad for memory management?

So I am having a little discussion with my boss about memory management. I've been told that killing a process does not allow it to deallocate memory. Is that still the case, or was that years ago? ...
13
votes
1answer
818 views

increase desktop responsiveness on linux while swapping

All GNU/Linux distributions I tested so far have the problem that whenever the ram gets filled and the system begins swapping, the whole desktop and graphical user interface becomes unresponsive as ...
12
votes
1answer
6k views

Wired Memory vs. Active Memory in OS X

I'm having trouble understanding the difference between Wired Memory and Active Memory in OS X. Do not talk about the four types of memory (don't talk about free or inactive memory, because I ...
9
votes
1answer
2k views

Which files are cached by linux?

I understand that linux uses unused RAM to keep some files cached. But I wonder, which files it actually caches! If you take a look at free : Gesamt Belegt Frei Gemeinsam Puffer Cached Speicher: ...
8
votes
3answers
6k views

Why does my 32bit ubuntu see 8GB of RAM?

I have just installed a fresh copy of ubuntu 11.04 32 bit and I was surprised to see that the OS can see my 8GB of RAM not like Windows 32 bit OS. How does it work? How is the address mapping ...
7
votes
1answer
6k views

How do I limit the memory usage of a specific process in linux?

I've written a program for a class that my professor will be testing in various low memory environments to see how it behaves when the program runs out of memory. Is there a way I can simulate the ...
7
votes
3answers
902 views

How to know which program or service take long time at and after PC Starting?

I want to identify which program consumes and takes computer resources on a Windows 7 during start up and after logging in, because after I log in my hard disk LED stays lit for almost 5 minutes. I ...
6
votes
4answers
32k views

How could I limit or even disable file cache on Windows Server 2008R2?

There is a machine, with a very fast RAID array, and a fast internet connection. But, it only got 8gb of mem, which runs out really quick, when the upload goes up. Any ideas how could I disable, or ...
5
votes
1answer
4k views

How to show memory usage in Netbeans?

I would like to know if there is an option in Netbeans (v. 6.9) to show its memory usage. For example, how much got allocated to it and how much it has used.
5
votes
2answers
12k views

How to setup Windows 7 to effectively use 24GB RAM

I need to know the best strategy to let Windows 7 use 24GB RAM in the most effective way, so it does as few reads from disk drive as possible. I once read there is some setting in Windows but I can't ...
5
votes
3answers
722 views

Windows x86 physical memory is 24-bit?

I am reading the new book, Windows Internals 5 about memory management (chapter 9 in Physical Address Extension PAE section). It is mentioned "A 32-bit system represents physical addresses internally ...
5
votes
1answer
166 views

Prevent important OS X process being swapped out, without code change?

I want hotkey-based utilities like Quicksilver or Zooom to respond immediately. But if they have been idle for a while, they (I guess) get swapped out, and respond slowly, sometimes not even ...
5
votes
1answer
361 views

Sorted tree view in htop or alternative?

I am running a Debian flavor of Linux, and I use htop to keep track of memory usage, since it is more detailed than top. I can't seem to get it to sort by memory and display process trees at the same ...
4
votes
2answers
405 views

About memory cache of Linux

I'm running a python script to do some statistics and the actually memory which used is low,about 10%.And no other process cost more memory.However,when i use free -m and it shows that almost 95% ...
4
votes
1answer
397 views

Why RAM usage is much bigger than Virtual Memory usage

I am running some tests on a very powerful machine ( 24GB RAM, Window 2008 64bit ) I checked my task manager: Physical memory: 98% ( RAM is 24GB ) But the totally "Memory(Private working set)" usage ...
4
votes
2answers
3k views

Where are Page tables stored

My question is "where are the page tables stored: in physical memory (RAM) or as some data structure in User space". PS: What I have understood so far: A process memory layout has few segments ( ...
4
votes
1answer
8k views

Why does limiting my virtual memory to 512MB with ulimit -v crash the JVM?

I am trying to enforce maximum memory a program can consume on a Unix system. I thought ulimit -v should do the trick. Here is a sample Java program I have written for testing : import java.util.*; ...
4
votes
2answers
5k views

What is Paging in memory management?

I was just reading Operating System Principles by Silberschatz et al when I came across paging in memory management.I'm slightly confused about it. It states that Physical Memory(I assume it's RAM) is ...
3
votes
4answers
180 views

Can I track down what is consuming more and more memory on Windows XP?

I use XP at work and if I don't restart every day the system gradually uses more and more memory with roughly the same processes running. I use Windows 7 at home and I don't experience the same issue....
3
votes
1answer
12k views

How do I allocate more RAM to Java?

A java application I'm using keeps crashing, when I had a problem with a similar application I managed to fix it by allocating more of my RAM to Java. How do I do that? (I recently upgraded to 16 GB ...
3
votes
3answers
2k views

Detecting source of memory usage on a Linux box

I have a toy Linux box with 256mb RAM running Ubuntu 10.04.1 LTS. Here is the output of free -m: total used free shared buffers cached Mem: 245 ...
3
votes
3answers
5k views

What is my peak total memory usage? How much of my RAM is actually being actively used?

Is there an app or utility in Windows that shows me the peak value of in-use memory (i.e., the total of the shareable and private memory of processes, drivers and the operating system) (not standby ...
3
votes
1answer
18k views

Swaping, Paging, Segmentation, and Virtual memory on x86 PM architecture

Well, this may seem a common or already asked question but after searching various books, online tutorials and even here on SU, I am still puzzled at how these four beasts work together on a x86 ...
3
votes
1answer
272 views

Windows equivalent for “cat /proc/iomem”

Is there an equivalent program for Windows that "cat /proc/iomem" gives you under Linux? I'd like an easy way to read the Windows memory map.
2
votes
4answers
289 views

What could cause a computer to slow down over time?

I have an application/game that ran smoothly a few months ago but lately I've realized it runs more sluggish than usual (the frames per second get quite low). I thought maybe something I installed is ...
2
votes
1answer
2k views

Mac OS X consumes so much memory

I use a Mac for software development. It has 4GB of RAM (cannot be upgraded), and when I power it on, without any programs run by me, it consumes 2GB of memory. I develop a Rails app and the server ...
2
votes
4answers
826 views

Firefox Tab Recycling

I have a somewhat academical question. When using Firefox, would it be better for memory usage if, when going to a website, with an unused tab available, I: Close that tab, then open a new one with ...
2
votes
2answers
2k views

Memory management (segmentation and paging) in 80286 and 80386: How does it work?

I found lots of Web sites and books explaining how memory management worked on the 8086 and later x86 CPUs in Real Mode. I understand, I think, how two 16 bit values, segment address and offset are ...
2
votes
1answer
966 views

Making full use of memory on graphic cards

Onboard graphics cards often reserve some of the system main memory for their own use. For a computer with a separate graphics card which has its own memory, is this possible that some of it be ...
2
votes
1answer
180 views

Windows 2008R2 raising low memory events when 50GB of RAM is available

Observed Windows 2008 R2 is generating KernelObjects\LowMemoryCondition events when there is 50GB of RAM available and all processes are using just around 18GB. Not able to find the reason why ...
2
votes
2answers
747 views

Can I use Nand flash as a swap memory in Embedded Linux?

I have 128 MB of Ram in one of my products, which was sufficient when we released first version of the product. But now we added some extra features in it, So this much Ram may cause a problem of OOM. ...
2
votes
2answers
4k views

How do I resolve BSOD: PAGE_FAULT_IN_NONPAGED_AREA?

I have been trouble shooting this for a few days and cannot fix this anyhow. Computer specifications Mobo: ASUS Sabertooth X58 LGA 1366 Intel X58 SATA 6Gb/s USB 3.0 ATX Intel Motherboard CPU: ...
2
votes
1answer
39 views

Processors and virtual/physical addresses

In nutshell, as I understand memory management, processor produces virtual addresses. These addresses are translated to corresponding physical addresses using per-process address table by MMU (with ...
2
votes
1answer
4k views

Limit memory allocation for process

I am running Windows Server 2008 R2, and I would like to limit the allocated RAM memory space for a specific process, I have installed "Windows System Resource Manager" but I can only view the ...
2
votes
1answer
345 views

A profile makes mozilla firefox killed. How to repair?

Mozilla firefox fills system memory and gets killed during startup if I use my "default" profile, even when started in safe mode. I'm using Kubuntu Linux. $ firefox -safe-mode Killed $ Upgrading ...
2
votes
2answers
471 views

Sources of Linux memory usage not in /proc/meminfo

I’m running a Linux server that shows weird patterns in memory usage that I’m trying to investigate. During normal operation, around 200MB of memory are used for applications according to munin, but ...
2
votes
2answers
48 views

8 or 12 gb when dealing with mat

I had a huge problem with my computer BSODying all the time and all the times it seemed to be a memory problem. I have 16 gb RAM (4*4) and checked each of my modules individually with memtest86 and ...
2
votes
1answer
178 views

What resource am I lacking? Causes notepad to be missing menu, or programs to not open

At this point when a notepad window is like that with no menu, I can't open another notepad either. After closing one or a few cmd prompts. Or after closing an add/remove programs window, or a ...
2
votes
0answers
616 views

Random freezing caused by khugepaged?

I have a fairly beefy Arch Linux computer, kernel 3.7.7-1-ARCH. However, recently it's been having random freeze ups. Never common, but it'd freeze for a good 15 seconds where no program is responsive....
2
votes
1answer
1k views

How can I configure Firefox to assume I have less memory?

Firefox has a few different settings that automatically get tuned based on the system ram. This is all great if you're running nothing besides Firefox, but when you're running half a dozen apps at the ...
2
votes
1answer
489 views

Java: compile and run hanging at command prompt

I'm having an issue that I'm hoping someone can help with. I'm working on netbook running WinXP Pro SP3, 1.6GHz & 1GB of RAM. I've got a relatively simple java program that I'm able to ...
2
votes
1answer
2k views

Windows XP only uses 2 GB of my physical 3 GB RAM

At work we still have to use Windows XP 32bit. Slowly we're getting to Windows 7 but for now I'm stuck with Windows XP. My problem is that Windows XP uses only 2 maybe 2.1GB of ram from my physical ...
2
votes
1answer
470 views

What I should know about memory management?

first of all: I don't use stackadmin or similar so please don't vote for moving there, I'm reading man top and paper "what every programmer should know about memory ..." I need really simple ...
2
votes
1answer
1k views

RAM is showing 2.99 GB instead of 3.25 GB in Windows XP Professional 32-bit [duplicate]

Possible Duplicate: Why does Windows only show about 3.5GB of my 4GB+ of RAM? I have an Intel Core 2 Duo CPU E6550 with 4 GB of RAM. At that time, the system properties was showing RAM info as ...
1
vote
4answers
2k views

Upgraded RAM Leading to Memory(?) Issues In Windows 7

I was super excited to upgrade my computer from 4GB to 8GB, so much so, I made a pretty amateur mistake: I swapped out the memory while my computer was asleep, and not shut down. Now, I'm not sure ...
1
vote
1answer
98 views

Sharing RAM/G5 Desktop/iMac [closed]

I have a Mac G5 Desktop with 14GB of RAM installed which I sometimes use as a start up disk. I have a 27" iMac 2.8GHz Core i5 with only 4GB of RAM installed. Is there anyway I can access/utilise the ...