Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp828478rwb; Thu, 12 Jan 2023 12:56:41 -0800 (PST) X-Google-Smtp-Source: AMrXdXttg70qhZPgg0VrdO5J28G+F/Q5GIv8pBh6IAEwlhMhBkvibLpB8rtRBub0G9Yt2srbK9TG X-Received: by 2002:a17:906:a842:b0:816:ef2a:631a with SMTP id dx2-20020a170906a84200b00816ef2a631amr65925259ejb.31.1673557001592; Thu, 12 Jan 2023 12:56:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673557001; cv=none; d=google.com; s=arc-20160816; b=cnxiM+DLIWBHUtjay1wHqpzrrSbuTP9ta/Ov2anshAwFaVGqO54aXu8bHJJHF6Maay WEkMMYhasHFh3dcWGJmj09hNC3guVwIDiQQ2nLUTXlOGJ1/Ov4rbqNYSggLbE2Q/S+hG 3gnXPWIQT5TjJIVEnyWwi31EDGU/3itnWPIs+U+7AsiCuiw1ZHD/oYU/2xF8+kQIkd+c t32t2U1Ih4MSnii3lZR7TrJerIGdNTq4mZBYD/m0Wf7u95mGemTbRBybBppUQrfLBuSd gRoPsLa6uoqpRtCKzmfwPnUacivLQIDevjT9aBorJ3ry7X1/VUSIV850FKal7luBTKFF 8J9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:to:from:subject:cc :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=DS/Kvzt/qNs7Z9DbMBc2mRs3VEgx04oG5ifmJRDTcL4=; b=O/daEL1bs9srhr6QFW86gyeLOygz/qCaHkwja4o5vFGWvuguFUlmsRW1PiWg15W1OF t+oy7YeGuws83fzcG+cyo84fIiIoOEepkfHfwIr4q3s87ryJEQM0yy4ZTKZuDG2ZaQzK na5Fn4oVQcsvNsj8u/YkGrKgSSFWV2WGtl1vUzdoyIUNb0pH4/UL7f2oOZUxqUzVuQwO YOn1Sm/8OeEonGZ9YTZiXE9pXG3Tf52984VnvU8IYr/TKnK/Oy5glizf641zSL06qjn4 0GE5k2z0Bs1qqUPwMXE/6ghh6vY2yZetKdAabDbATb+rL+rTMwON4bkhyUC3Skv97Hbv 8nPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hardclanz.org header.s=default header.b=BsLIdNWh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb12-20020a170907960c00b0084c3ce2f3dbsi20763483ejc.633.2023.01.12.12.56.29; Thu, 12 Jan 2023 12:56:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@hardclanz.org header.s=default header.b=BsLIdNWh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232994AbjALTy2 (ORCPT + 50 others); Thu, 12 Jan 2023 14:54:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240344AbjALTxz (ORCPT ); Thu, 12 Jan 2023 14:53:55 -0500 Received: from sr40.hostlife.net (sr40.hostlife.net [185.43.220.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 487E9C16 for ; Thu, 12 Jan 2023 11:52:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=hardclanz.org; s=default; h=In-Reply-To:References:To:From:Subject:Cc: Message-Id:Date:Content-Type:Content-Transfer-Encoding:Mime-Version:Sender: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=DS/Kvzt/qNs7Z9DbMBc2mRs3VEgx04oG5ifmJRDTcL4=; b=BsLIdNWhuWDaRUZeXFuEr9vQFF vFCsExi6d0qrPQYcRctj07hki+bP0Ck+k5OEAoK6QJuSFMvKWuZlS02fd7tmw3gD/AoG0HkEhchSE XkIqzcLg4oG4w0R4eXNlnFk84mSCRhcpScCs+Q/U80Pk0MiDMn+2FNZmuyqNVilFKVC2yvsktSa2e 5YlxLO/CcTvgqdXvMdsJUWzbiR8CP4imb5K9W4+oih9Yl0U0Wsb/XVUZHGAoyHSnubliPfQVpzVc6 +2YtM87ZNPqGeCV0HoKFdqkjeXFCdKwVrwknPSjbdxlr51M+yhJx8r9qOXMZ4Qw/XZyo5H69iJmbC uOiDqeSA==; Received: from [109.225.40.181] (port=57284 helo=localhost) by sr40.hostlife.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.95) (envelope-from ) id 1pG3d4-00AgM4-ER; Thu, 12 Jan 2023 20:52:49 +0100 Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 12 Jan 2023 22:52:51 +0300 Message-Id: Cc: Subject: Re: [RESEND RFC] SIGOOM Proposal From: "Arseniy Lesin" To: "Theodore Ts'o" X-Mailer: aerc 0.12.0 References: In-Reply-To: X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sr40.hostlife.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - hardclanz.org X-Get-Message-Sender-Via: sr40.hostlife.net: authenticated_id: emptiedsoul@hardclanz.org X-Authenticated-Sender: sr40.hostlife.net: emptiedsoul@hardclanz.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > It's actually worse than this. The problem is space in the signal > mask. Yeah, i've realized it right after sending my letter first time. I am going to use Willy's approach to use prctl() to enable process to choose a signal for OOM event. > AIX had a similar SIGDANGER signal which was sent to all processes > when memory was low. By default, it was ignored, but processes that > were aware of it could use this as an opportunity to shrink their > memory footprint. Now should we go the same way and send SIGOOM to all receiving processes or keep it targeted? Make it configurable? Thanks.