Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753478AbYJDKNX (ORCPT ); Sat, 4 Oct 2008 06:13:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752301AbYJDKNL (ORCPT ); Sat, 4 Oct 2008 06:13:11 -0400 Received: from viefep18-int.chello.at ([213.46.255.22]:39905 "EHLO viefep12-int.chello.at" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752297AbYJDKNJ (ORCPT ); Sat, 4 Oct 2008 06:13:09 -0400 X-SourceIP: 213.46.9.244 Subject: Re: [PATCH 00/32] Swap over NFS - v19 From: Peter Zijlstra To: "Luiz Fernando N. Capitulino" Cc: Linus Torvalds , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, trond.myklebust@fys.uio.no, Daniel Lezcano , Pekka Enberg , Neil Brown , David Miller In-Reply-To: <20081003141731.37bda8f3@doriath.conectiva> References: <20081002130504.927878499@chello.nl> <20081003141731.37bda8f3@doriath.conectiva> Content-Type: text/plain Date: Sat, 04 Oct 2008 12:13:07 +0200 Message-Id: <1223115187.28938.19.camel@twins> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1708 Lines: 51 On Fri, 2008-10-03 at 14:17 -0300, Luiz Fernando N. Capitulino wrote: > Em Thu, 02 Oct 2008 15:05:04 +0200 > Peter Zijlstra escreveu: > > | Patches are against: v2.6.27-rc5-mm1 > | > | This release features more comments and (hopefully) better Changelogs. > | Also the netns stuff got sorted and ipv6 will now build and not oops > | on boot ;-) > | > | The first 4 patches are cleanups and can go in if the respective maintainers > | agree. > | > | The code is lightly tested but seems to work on my default config. > | > | Let's get this ball rolling... > > What's the best way to test this? Create a swap in a NFS mount > point and stress it? What I do is boot with mem=256M, then swapoff -a; swapon /net/host/$path/file.swp; the file.swp I created using dd and mkswap on the remote host. I then run 2 cyclic loops on anonymous memory sized 96mb, and run 2 cyclic loops on file backed memory on the same NFS mount (eg /net/host/$path/file[12]), also sized 96mb That gives a memory footprint of 4*96=384mb and will thus rely on paging quite heavily. While this is on-going you can have a little deamon that listens and accepts connections and reads from them. On a 3rd machine, start say a 1000 connections to this deamon that continuously write stuff to it. Then on you NFS host do something like: /etc/init.d/nfs stop go for lunch and when you're back do: /etc/init.d/nfs start and see if all comes back up again ;-) -- 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/