-1
votes
0answers
13 views

Linux healthy number of major page faults

I have a Solr process which has mapped 100 GB into virtual memory. When I run a load test on the query side, I read from /proc/<pid>/stat that the process has between 200 and 500 page faults per ...
0
votes
0answers
22 views

Copy a page from page cache to kernel space

Is the page cache part of the kernel space or user space? If I need to copy a page from page cache into the kernel space, what is the correct way to do it?
0
votes
1answer
159 views

Turn off single process swap and overcommit

Two questions: Is there some way to turn off swapping for a given process, i.e., is it possible to kill a certain process if it uses all the system's primary memory available? How do I deactivate ...
1
vote
1answer
386 views

What memory statistics does Linux' ps command really display?

Consider the following pmap output of a simple tail process on Linux: $ pmap -x 3974 3974: tail -F /var/log/syslog Address Kbytes RSS Dirty Mode Mapping 0000000000400000 60 ...
0
votes
1answer
77 views

Linux virtual memory consumption after parsing log file

I wrote a parser to read the auth.log. For some reason while parsing auth.log I get that VSZ is larger than the total physical memory, which is 2GB. Depending on the size of auth.log and how long ...
0
votes
1answer
1k views

Top command cache vs free memory

When I am running top command (on embedded system with 64 MB RAM) I am getting below description on total memory usage: "Mem: 43468K used, 968K free, 0K shrd, 1280K buff, 21896K cached" It looks ...
18
votes
4answers
3k views

Why does Linux use a swap partition when the kernel supports paging/virtual memory anyway?

As far as I understand paging and swapping, they're completely different concepts. While swapping means, that a process is either completely in physical memory or on the hard drive, with paging parts ...
3
votes
1answer
1k views

linux: per-process monitor, every 10 minutes, with history access

I really didn't know a better way to ask my question, hence you get a horribly named question. I will explain what i want to do, maybe that will help you help me. I would like to have my linux ...
0
votes
1answer
793 views

Is there an alternative memory allocator that uses separate swapfile?

Is there alternative allocator that can be LD_PRELOADed into a process, overrides "malloc", "calloc", etc. and allocates things using it's own swap files (mmaped to files instead of MAP_ANONYMOUS)? I ...
1
vote
1answer
177 views

High latency when writing big files. How to prevent more-than-second page faults when quickly filling up FS?

When I do cat /dev/zero > /some/file all processes tends to become slow (even non-IO related). latencytop shows "Page Faults" are more than 2 seconds. Swap is not used. Adjusting vm.dirty* does ...
1
vote
1answer
655 views

Linux Virtual Memory/Swap isn't being used

I think my virtual memory is not configured correctly on my MintLinux machine. I opened up a new IDE, IntelliJ IDEA, and my whole system appeared to freeze. I tried to TTL to the console but that did ...
1
vote
4answers
1k views

Force a process to run in virtual memory? Ubuntu

I am running a series of tests for an implementation of a remote pager that sends page faults to other computers in a network. Long story short, I was wondering if there is an easy way to force a ...
0
votes
1answer
696 views

System thinks it is swapping, but isn't

I have a linux server (Ubuntu 10.04) which has no swap space (swapon -l reports nothing, 0kb swap memory listed in /proc/meminfo). The beginning of the output of top (sorted by %mem) is reproduced ...
8
votes
1answer
5k views

Linux overcommit memory

I've been looking into memory overcommitting in Linux using /proc/sys/vm/overcommit_memory, and I've read a few articles which don't say the same thing. This doc, under the heading "Going in the ...
1
vote
0answers
332 views

improving swapping strategy

I'm finding linux's swapping strategy to be somewhat less than ideal. In general I have a ton of processes running, maybe 40 or more big ones, and only end up using a few regularly. Nonetheless, I ...
5
votes
1answer
3k 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 ...
4
votes
1answer
1k views

How to tell Linux to explicitly swap out main memory of a suspended process?

I run a memory-hungry process (mkcromfs) which consumes more memory than I have physical memory on my latop, so it is paging and swappin and thrashing all the time and loadavg is about 2 (compcache is ...
4
votes
2answers
783 views

Virtual memory on Linux doesn't add up?

I was looking at System Monitor on Linux and noticed that Firefox is using 441 MB of memory, and several other applications are using 274, 257, 232, etc (adding up to over 3 GB of virtual memory). So ...
3
votes
9answers
26k views

How to find virtual memory size and cache size of a linux system?

Is there any command to get virtual memory size, cache size and front side bus speed of a linux system? Is swap in linux same as virtual memory?