troubleshooting Question

swap consumption questions

Avatar of rnicholus
rnicholus asked on
LinuxLinux Distributions
24 Comments3 Solutions430 ViewsLast Modified:
I have some questions regarding Linux's use of the swap partition.  I am using Linux ES 3 on a 2 CPU machine w/ 2 GB RAM and a 2 GB swap partition.

1.) I just killed a large process on my server, but 5 additonal MB of swap were consumed as a result (though about 100 MB of physical RAM was freed up).  Is this normal?  Why did this happen?

2.) After restarting the same process a few times, I noticed that, after one restart, a few MBs of swap were freed, but almost no physical RAM was freed, the second time, #1 happened.  Why?

3.) With a system running many looping processes (I have checked these procs for memory leaks) what is the normal behavior over time of the swap and physical memory (should one decrease w/ one increasing, etc)?

ASKER CERTIFIED SOLUTION
Tim_Utschig

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 3 Answers and 24 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 24 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros