Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 24 Mar 2002 11:41:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 24 Mar 2002 11:41:19 -0500 Received: from lightning.swansea.linux.org.uk ([194.168.151.1]:21775 "EHLO the-village.bc.nu") by vger.kernel.org with ESMTP id ; Sun, 24 Mar 2002 11:41:02 -0500 Subject: Re: [2.4.18] Security: Process-Killer if machine get's out of memory To: andihartmann@freenet.de (andreas) Date: Sun, 24 Mar 2002 16:57:32 +0000 (GMT) Cc: linux-kernel@vger.kernel.org (Kernel-Mailingliste) In-Reply-To: <3C9DC1F5.6010508@athlon.maya.org> from "andreas" at Mar 24, 2002 01:09:25 PM X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: From: Alan Cox Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org > I've got a basic question: > Would it be possible to kill only the process which consumes the most > memory in the last delta t? > Or does somebody have a better idea? At the point you hit OOM every possible heuristic is simply handwaving that will work for a subset of the user base. Fix the real problem and it goes away. My box doesn't OOM, the worst case (which I've never seen happen) is a task being killed by a stack growth failing to get memory. - 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/