From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263325AbTDGIWC (for ); Mon, 7 Apr 2003 04:22:02 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263328AbTDGIWC (for ); Mon, 7 Apr 2003 04:22:02 -0400 Received: from smtpde02.sap-ag.de ([155.56.68.170]:1420 "EHLO smtpde02.sap-ag.de") by vger.kernel.org with ESMTP id S263325AbTDGIWB (for ); Mon, 7 Apr 2003 04:22:01 -0400 From: Christoph Rohland To: Hugh Dickins Cc: =?iso-8859-1?q?J=F6rn?= Engel , CaT , , Subject: Re: PATCH: allow percentile size of tmpfs (2.5.66 / 2.4.20-pre2) Organisation: Development SAP J2EE Engine Date: Mon, 07 Apr 2003 10:32:58 +0200 In-Reply-To: (Hugh Dickins's message of "Wed, 2 Apr 2003 22:04:10 +0100 (BST)") Message-ID: User-Agent: Gnus/5.090016 (Oort Gnus v0.16) XEmacs/21.4 (Native Windows TTY Support (Windows), cygwin32) References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SAP: out X-SAP: out X-SAP: out X-SAP: out X-SAP: out Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi Hugh, On Wed, 2 Apr 2003, Hugh Dickins wrote: > Don't blame Christoph for that, one of these days I'll face up to > my responsibilities and make swapoff fail (probably get itself > OOM-killed) instead of having everything else OOM-killed. The hooks for the accounting would solve this easily: the swapoff hook would realize that there is not enough space left for the tmpfs instance and simply return an error. So swapoff would fail. We would not even stress the vm to swapin all pages until realizingthat there is not enough memory left. Greetings Christoph