Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 2 Nov 2001 08:00:41 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 2 Nov 2001 08:00:32 -0500 Received: from ns.ithnet.com ([217.64.64.10]:30219 "HELO heather.ithnet.com") by vger.kernel.org with SMTP id ; Fri, 2 Nov 2001 08:00:19 -0500 Date: Fri, 2 Nov 2001 14:00:01 +0100 From: Stephan von Krawczynski To: Lorenzo Allegrucci Cc: torvalds@transmeta.com, riel@conectiva.com.br, linux-kernel@vger.kernel.org Subject: Re: new OOM heuristic failure (was: Re: VM: qsbench) Message-Id: <20011102140001.7c995186.skraw@ithnet.com> In-Reply-To: <3.0.6.32.20011031185529.01fc4310@pop.tiscalinet.it> In-Reply-To: <3.0.6.32.20011031185529.01fc4310@pop.tiscalinet.it> Organization: ith Kommunikationstechnik GmbH X-Mailer: Sylpheed version 0.6.4 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart_Fri__2_Nov_2001_14:00:01_+0100_087a06f0" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org This is a multi-part message in MIME format. --Multipart_Fri__2_Nov_2001_14:00:01_+0100_087a06f0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hello Lorenzo, please find attached next vmscan.c patch which sums up the delayed swap_out (first patch), the fix for not swapping when nr_pages is reached, and (new) the idea to swap more pages in one call to swap_out if priority gets higher. I have not the slightest idea what all this does to the performance. Especially the "more" swap_out code is a pure try-and-error type of thing. Can you do some testing please? Thanks, Stephan --Multipart_Fri__2_Nov_2001_14:00:01_+0100_087a06f0 Content-Type: application/octet-stream; name="vmscan-patch2" Content-Disposition: attachment; filename="vmscan-patch2" Content-Transfer-Encoding: base64 LS0tIGxpbnV4LW9yaWcvbW0vdm1zY2FuLmMJVGh1IE5vdiAgMSAxNTozMzo1OCAyMDAxCisrKy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oKLQkJCWlmICgtLW1heF9tYXBwZWQgPj0gMCkKLQkJCQljb250aW51ZTsKKwkJ CWlmIChtYXhfbWFwcGVkID4gMCkKKwkJCQltYXhfbWFwcGVkLS07CisJCQljb250aW51ZTsKIAot CQkJLyoKLQkJCSAqIEFsZXJ0ISBXZSd2ZSBmb3VuZCB0b28gbWFueSBtYXBwZWQgcGFnZXMgb24g dGhlCi0JCQkgKiBpbmFjdGl2ZSBsaXN0LCBzbyB3ZSBzdGFydCBzd2FwcGluZyBvdXQgbm93IQot CQkJICovCi0JCQlzcGluX3VubG9jaygmcGFnZW1hcF9scnVfbG9jayk7Ci0JCQlzd2FwX291dChw cmlvcml0eSwgZ2ZwX21hc2ssIGNsYXNzem9uZSk7Ci0JCQlyZXR1cm4gbnJfcGFnZXM7CiAJCX0K IAogCQkvKgpAQCAtNTE0LDYgKzUwOCwxNCBAQAogCQlicmVhazsKIAl9CiAJc3Bpbl91bmxvY2so JnBhZ2VtYXBfbHJ1X2xvY2spOworCisJLyoKKwkgKiBBbGVydCEgV2UndmUgZm91bmQgdG9vIG1h bnkgbWFwcGVkIHBhZ2VzIG9uIHRoZQorCSAqIGluYWN0aXZlIGxpc3QsIHNvIHdlIHN0YXJ0IHN3 YXBwaW5nIG91dCAtIGRlbGF5ZWQhCisJICogLXNrcmF3CisJICovCisJaWYgKG1heF9tYXBwZWQ9 PTAgJiYgbnJfcGFnZXM+MCkKKwkJc3dhcF9vdXQocHJpb3JpdHksIGdmcF9tYXNrLCBjbGFzc3pv bmUpOwogCiAJcmV0dXJuIG5yX3BhZ2VzOwogfQo= --Multipart_Fri__2_Nov_2001_14:00:01_+0100_087a06f0-- - 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/