Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757703AbXJaOd5 (ORCPT ); Wed, 31 Oct 2007 10:33:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755099AbXJaOdq (ORCPT ); Wed, 31 Oct 2007 10:33:46 -0400 Received: from winds.org ([68.75.195.9]:44680 "EHLO winds.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754075AbXJaOdp (ORCPT ); Wed, 31 Oct 2007 10:33:45 -0400 X-Greylist: delayed 1837 seconds by postgrey-1.27 at vger.kernel.org; Wed, 31 Oct 2007 10:33:45 EDT Date: Wed, 31 Oct 2007 10:03:07 -0400 (EDT) From: Byron Stanoszek X-X-Sender: gandalf@winds.org To: Nick Piggin cc: David Miller , a.p.zijlstra@chello.nl, torvalds@linux-foundation.org, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, trond.myklebust@fys.uio.no Subject: Re: [PATCH 00/33] Swap over NFS -v14 In-Reply-To: <200710311504.24016.nickpiggin@yahoo.com.au> Message-ID: References: <20071030160401.296770000@chello.nl> <200710311426.33223.nickpiggin@yahoo.com.au> <20071030.213753.126064697.davem@davemloft.net> <200710311504.24016.nickpiggin@yahoo.com.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2023 Lines: 47 On Wed, 31 Oct 2007, Nick Piggin wrote: > On Wednesday 31 October 2007 15:37, David Miller wrote: >> From: Nick Piggin >> Date: Wed, 31 Oct 2007 14:26:32 +1100 >> >>> Is it really worth all the added complexity of making swap >>> over NFS files work, given that you could use a network block >>> device instead? >> >> Don't be misled. Swapping over NFS is just a scarecrow for the >> seemingly real impetus behind these changes which is network storage >> stuff like iSCSI. > > Oh, I'm OK with the network reserves stuff (not the actual patch, > which I'm not really qualified to review, but at least the idea > of it...). > > And also I'm not as such against the idea of swap over network. > > However, specifically the change to make swapfiles work through > the filesystem layer (ATM it goes straight to the block layer, > modulo some initialisation stuff which uses block filesystem- > specific calls). > > I mean, I assume that anybody trying to swap over network *today* > has to be using a network block device anyway, so the idea of > just being able to transparently improve that case seems better > than adding new complexities for seemingly not much gain. I have some embedded diskless devices that have 16 MB of RAM and >500MB of swap. Its root fs and swap device are both done over NBD because NFS is too expensive in 16MB of RAM. Any memory contention (i.e needing memory to swap memory over the network), however infrequent, causes the system to freeze when about 50 MB of VM is used up. I would love to see some work done in this area. -Byron -- Byron Stanoszek Ph: (330) 644-3059 Systems Programmer Fax: (330) 644-8110 Commercial Timesharing Inc. Email: byron@comtime.com - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/