Re: Kernel memory leak in 8.2-PRERELEASE?
- From: Andriy Gapon <avg@xxxxxxxxxxx>
- Date: Tue, 05 Apr 2011 17:29:47 +0300
on 05/04/2011 17:04 Pete French said the following:
Adding some swap would help a lot more.
So, I run a lot of systems without swap - basically my
thinking at the time I set them up went like this.
"I have 4 gig of memory, and 4 gig of swap. Surely running 8 gig of
memory and no swap will be just as good ?"
but, is that actually true ? Is real RAM as good as an equivalent amount
of swap, or is there smething special about swap which means you shoud
have some no matter how much RAM you have ?
I think that it depends.
I usually do use swap for the following reasons:
1. some anonymous memory ("malloced") may reasonably go to swap to free some RAM
for caching data; that can have overall performance benefits depending in system
usage patterns;
2. VM is happy dealing out RAM for any uses until some low watermarks are reached,
then the system tries to free up some RAM. Depending on the amount of memory (and
those thresholds) and "burstiness" of memory demand a system may potentially run
completely out of memory and would have to kill some processes.
Having swap provides some cushion. Swap kind of smooths any bursts. (And it can
also slow things down as a side effect)
Of course, the system can run out of swap as well, but that would mean that you
really need more RAM.
--
Andriy Gapon
_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: Kernel memory leak in 8.2-PRERELEASE?
- From: Pete French
- Re: Kernel memory leak in 8.2-PRERELEASE?
- References:
- Re: Kernel memory leak in 8.2-PRERELEASE?
- From: Pete French
- Re: Kernel memory leak in 8.2-PRERELEASE?
- Prev by Date: Re: Kernel memory leak in 8.2-PRERELEASE?
- Next by Date: Re: Kernel memory leak in 8.2-PRERELEASE?
- Previous by thread: Re: Kernel memory leak in 8.2-PRERELEASE?
- Next by thread: Re: Kernel memory leak in 8.2-PRERELEASE?
- Index(es):
Relevant Pages
|