Questions tagged [virtual-memory]

It is an extension of memory address space which is logically appended to the physical memory of a computer by the Memory Management Unit (MMU) of its processor. It is normally realized in operating systems by utilizing free disk space to implement such memory extension and may also be referred to as swap-file or page-file.

141 questions
202
votes
4 answers

Meaning of the buffers/cache line in the output of free

Why does my server show total used free shared buffers cached Mem: 12286456 11715372 571084 0 81912 6545228 -/+ buffers/cache: 5088232 7198224 Swap: 24571408 54528 24516880 I have no idea on…
Muahmmad Zeeshan
  • 2,123
  • 4
  • 15
  • 13
95
votes
18 answers

Caching/preloading files on Linux into RAM

I have a rather old server that has 4GB of RAM and it is pretty much serving the same files all day, but it is doing so from the hard drive while 3GBs of RAM are "free". Anyone who has ever tried running a ram-drive can witness that It's awesome in…
Andrioid
  • 2,680
  • 2
  • 20
  • 21
94
votes
6 answers

swap partition vs file for performance?

What is better for performance? A partition closer to the inside of the disk will have slower access times, and we must wait for the drive to switch between the OS and swap partitions. On the other hand, a swap partition bypasses all of the…
Bill Gray
  • 1,345
  • 1
  • 11
  • 18
78
votes
5 answers

In Linux, what is the difference between "buffers" and "cache" reported by the free command?

This is an old question that I've seen from time to time. My understanding of it is rather limited (having read about the differences a long time ago, but the factoid(s) involved never really stuck). As I understand it, Buffers Are used by…
Avery Payne
  • 14,536
  • 1
  • 51
  • 88
33
votes
4 answers

How do I tell what process is causing kswapd to be in use?

I see kswapd using 100% CPU... how can I tell on which process's behalf kswapd is being used so much?
Deshawn
  • 393
  • 2
  • 4
  • 5
29
votes
1 answer

Difference Between Private Memory Limit and Virtual Memory Limit in IIS

I want to set the max limit on the physical memory an application can use in IIS 7. Should I set a limit on Private Memory Limit or Virtual Memory Limit? Can some one point me to documentation of all settings in IIS 7
kishore
  • 872
  • 3
  • 13
  • 28
24
votes
2 answers

What is "a lot" of Page Faults?

I am monitoring the memory object in Windows 2k8, and am tracking the Page Faults/sec counter. Is there any threshold to determining what is an excessive amount of page faults? Or should I be more concerned with a sustained, high, amount of page…
23
votes
2 answers

How to limit the memory used by an application in IIS?

The IIS worker processes are taking lot of memory on our servers. I want to limit the memory each application can use. I am confused whether I should set a limit on Virtual Memory Limit, or Private Memory Limit. Each application in our IIS is on its…
kishore
  • 872
  • 3
  • 13
  • 28
10
votes
4 answers

Constantly Increasing swap size in Linux and Swap space not being reclaimed?

I have a 8GB RAM linux box on which 4 tomcat servers are running. One of the them is set to 3000MB memory(jvm -Xms and -Xmx setting) and others are set to 1500MB. The swap partition is also set to 8Gigs. When I start these servers, the swap file…
Zenil
  • 281
  • 1
  • 2
  • 6
9
votes
1 answer

Ballooning occuring on SQL server

From what I understand ballooning should occur only when the host begins to run out of physical memory, somewhere above 90% usage. I have an SQL server running in a three node cluster (64 GB RAM in each host) and it has been assigned 8 GB of RAM as…
user35213
9
votes
3 answers

How to sort top result on virtual memory on Redhat Linux?

There is an interactive key "M" to sort by memory, which seems to be sorting on resident memory. Is there a way to sort on virtual memory? I happen to be working on Redhat Linux, but the question is not specific to this distribution.
timeon
  • 193
  • 1
  • 1
  • 5
9
votes
5 answers

Understanding virtual memory usage > swap + physical on Linux

I have a process that is reporting in 'top' that it has 6GB of resident memory and 70GB of virtual memory allocated. The strange thing is that this particular server only has 8GB physical and 35GB of swap space available. From the 'top' manual: …
Belly
  • 177
  • 1
  • 1
  • 9
8
votes
1 answer

How do you measure the memory footprint of a set of forked processes?

Say I've got a process using 200MB of memory, and it fork()s: python -c "import os; data='x'*200000000; os.fork(); raw_input()" Programs like 'top' will show each process using 200MB, with very little SHRd memory, so it appears as if the processes…
Dustin Boswell
  • 213
  • 2
  • 4
7
votes
2 answers

Linux OOM disk I/O. Also: swap, what is it good for?

I'm having problems with the OOM killer on one of my Linux (2.6.37) installs. The computer has 4GB of memory which I sometimes utilize fully. In those cases, I expect the OOM handler to come in and do its job by killing a process or two. Instead…
extramuros
  • 73
  • 1
  • 4
7
votes
4 answers

What are the exact conditions based on which Linux swaps process(s) memory from RAM to a swap file?

My server has 8Gigs of RAM and 8Gigs configured for swap file. I have memory intensive apps running. These apps have peak loads during which we find swap usage increase. Approximately 1 GIG of swap is used. I have another server with 4Gigs of RAM…
Zenil
  • 281
  • 1
  • 2
  • 6
1
2 3
9 10