[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: more ram/swap on leisner, please?



On Thu, Jan 03, 2008 at 07:28:17PM +0100, David Fokkema wrote:
> 
> On Wed, 2008-01-02 at 21:32 +0100, Lennert Buytenhek wrote:
> > On Wed, Jan 02, 2008 at 02:17:46PM -0600, Bill Gatliff wrote:
> > 
> > > >>Ok, I've set up a 5GB swap over NBD.  If the system reboots, it won't 
> > > >>automagically reattach it.
> > > >>
> > > >>The kernel is NOT running the nbd swap patch, so I don't know if the 
> > > >>system will deadlock under stress, or not...
> > > >
> > > >It most likely will...
> > > 
> > > Older kernels definitely would.  But the mailing lists aren't
> > > so clear about the current state of things,
> > 
> > The issue of network swap deadlocking has not been fixed so far.
> > 
> > 
> > > and I can't seem to find the patches either...
> > 
> > Peter Zijlstra and Daniel Phillips have been posting patches to fix
> > the underlying issue, but those have not been merged yet, as far as
> > I know.
> 
> >From http://nbd.sourceforge.net/

Yes, I should really update that page...

> Current state: It currently works. Network block device seems to be
> pretty stable. It was originaly thought that it is impossible to swap
> over TCP. This turned out not to be true, though the patch required to
> make it safe has not been forward-ported to any reasonably recent
> kernel.

This is true, I guess.

> If you want swapping to work, first make nbd working. (You'll have to
> mkswap on server; mkswap tries to fsync which will fail.)

That's not correct. Oops.

> Now, you have a version which mostly works. Ask me for kreclaimd if
> you see deadlocks.

I've not ever seen "kreclaimd". Hmm.

Large parts of the text on those pages were written by Pavel Macheck
(the "me" in the above paragraphs), who's not been involved with NBD in
years. Sorry for the confusion.

-- 
<Lo-lan-do> Home is where you have to wash the dishes.
  -- #debian-devel, Freenode, 2004-09-22


Reply to: