Re: very strange reaction of the md disks



On Tue, 03 Jun 2008 11:31:05 +0400
The Ghost <the-ghost@xxxxxxxx> wrote:

Hello,

Maybe I just don't understand something, but anyway, it looks really
odd.

I have a machine with 2 Gb RAM with a clean newly-installed
FREEBSD-7.0-RELEASE. I make two 300-MB mdconfig disks and populate
them, and when the first one was already full and the second one is
only half-full, I get a kernel panic "not enough memory". I wonder
where did 1,5 Gb go??

Try using swap-backed md devices instead. With both malloc and swap
devices the data is stored in ram and paged-out to swap as needed, but
it helps with some of the malloc limitations.

I'm using a 2.7GB /tmp directory with 1.6GB of ram and have not had any
problems. I don't actually see any swap usage unless I put a lot of
data on the device, otherwise I can even do a swapoff.
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: excessive swap-in time
    ... Trying to do it all with RAM is just inefficient. ... I find that does not work well when the swapping is caused by excessive I/O ... Or you could have 5 TB of swap space. ...
    (comp.os.linux.development.system)
  • SLUB 0:1 SLAB (OOM during massive parallel kernel builds)
    ... 2G of RAM, 1G of swap partition. ... DMA per-cpu: ... kill process 25286 score 188662 or a child ...
    (Linux-Kernel)
  • fork failed cannot allocate memory
    ... I have a Dell 2650, dual Xeon box, 2GB RAM, 6GB swap with PERC Hardware ... feeding the perl processes). ... Every week or two the box will stop allowing new netcool client ...
    (RedHat)
  • 2.6.26-rc5-mm2: OOM with 1G free swap
    ... OOM condition happened with 1G free swap. ... 4G RAM, 1G swap partition, normally LTP survives during much, much higher ... Call Trace: ... 675611 total pagecache pages ...
    (Linux-Kernel)
  • Re: 2.6.0-test9 - poor swap performance on low end machines
    ... >> Well I was considering adding the swap pressure to this algorithm but I ... It wont be as aggressive as setting the swappiness ... > The test compile started in a similar way to the compile when using your ... detriment of other tasks that are on the runqueue and still need ram. ...
    (Linux-Kernel)