Swap on zvol - recommendable?

Luke Marsden luke-lists at hybrid-logic.co.uk
Sun Feb 12 15:12:23 UTC 2012


> On Feb 6, 2012, at 11:57 AM, Patrick M. Hausen wrote:
> 
> > Hi, all,
> > 
> > is it possible to make a definite statement about swap on zvols?
> > 
> > I found some older discussions about a resource starvation
> > scenario when ZFS arc would be the cause of the system
> > running out of memory, trying to swap, yet the ZFS would
> > not be accessible until some memory was freed - leading to
> > a deadlock.
> > 
> > Is this still the case with RELENG_8? The various Root on
> > ZFS guides mention both choices (decicated or gmirror
> > partition vs. zvol), yet don't say anything about the respective
> > merits or risks. I am aware of the fact that I cannot dump to
> > a raidz2 zvol ...
> > 

On Tue, 2012-02-07 at 20:53 +0100, Peter Ankerstål wrote:
> I can just tell you I had this problem still in 8.1 and it was a HUGE
> problem. System stalled every two weeks or so. Now when the swap is
> moved away from zfs it works fine.
> 

I can confirm that this is still a problem on 8.2 and 9.0.

-- 
CTO, Hybrid Logic
+447791750420  |  +1-415-449-1165  | www.hybrid-cluster.com 




More information about the freebsd-stable mailing list