Message ID | 20230814063428.4111206-1-zhangpeng362@huawei.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 01E6EC001B0 for <linux-mm@archiver.kernel.org>; Mon, 14 Aug 2023 06:34:47 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1598D8E0002; Mon, 14 Aug 2023 02:34:45 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 109018E0001; Mon, 14 Aug 2023 02:34:45 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id ECA668E0003; Mon, 14 Aug 2023 02:34:44 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id D5EC08E0002 for <linux-mm@kvack.org>; Mon, 14 Aug 2023 02:34:44 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id AE6D6160A31 for <linux-mm@kvack.org>; Mon, 14 Aug 2023 06:34:44 +0000 (UTC) X-FDA: 81121746888.16.C4D6BDD Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by imf19.hostedemail.com (Postfix) with ESMTP id B2CD01A0002 for <linux-mm@kvack.org>; Mon, 14 Aug 2023 06:34:40 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf19.hostedemail.com: domain of zhangpeng362@huawei.com designates 45.249.212.189 as permitted sender) smtp.mailfrom=zhangpeng362@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1691994882; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=9TCXWBYoK3+rc6lDRtB588B4SBHnrhaMevslBxEdet0=; b=rJIcGfND6faSDbXZnpwn+PJrNBRHkSOA2EYANPe4zQ09MhH2F6yVzHtDGT3D4iZehaU4Bq Ydf99PYXmOLxnOU9qnqQSqcusaZPsu4ORMf78HhM5y4Xw922TldnK95gKuiAgA4b5DB7Gb xdknwUp8gP62Alnsy8pZ/vGLmt7b08U= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf19.hostedemail.com: domain of zhangpeng362@huawei.com designates 45.249.212.189 as permitted sender) smtp.mailfrom=zhangpeng362@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1691994882; a=rsa-sha256; cv=none; b=SIbAk4mkX6xXI1v7wQwwIDW4dQMvGOUeIXd86uAk1kiScdKxoOM6gFHiuKi5I2Rdyo8ivK El3gD6wMz+9HqlBDNYGwlwDGOAQaYZAsG+CB10O3AbE15A6++zhzdb9NyHCchlOODsHjB9 NwIb7oLXbOw3kOIDN9TW2U6l/MVfcAA= Received: from kwepemm600020.china.huawei.com (unknown [172.30.72.56]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4RPPgc2bPhz2Bd70; Mon, 14 Aug 2023 14:31:40 +0800 (CST) Received: from localhost.localdomain (10.175.112.125) by kwepemm600020.china.huawei.com (7.193.23.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Mon, 14 Aug 2023 14:34:34 +0800 From: Peng Zhang <zhangpeng362@huawei.com> To: <linux-mm@kvack.org> CC: <mhocko@suse.com>, <shakeelb@google.com>, <akpm@linux-foundation.org>, <wangkefeng.wang@huawei.com>, <sunnanyong@huawei.com>, ZhangPeng <zhangpeng362@huawei.com> Subject: [PATCH 0/2] mm: oom: terminate the oom_evaluate_task() loop early Date: Mon, 14 Aug 2023 14:34:26 +0800 Message-ID: <20230814063428.4111206-1-zhangpeng362@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemm600020.china.huawei.com (7.193.23.147) X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: B2CD01A0002 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: fuu3gi1nqej87rjicbe6hdbb7uu7tiag X-HE-Tag: 1691994880-831576 X-HE-Meta: U2FsdGVkX19021nFQIAE02aVY7E3PNDaHh3oxsQhKAGNgffurg7quh7PTR8K1tO7tso5GppUYP/ccXjFamKCJTXV/IQgV0OqX45tJYaOFj18QHhvQ76GnnOOSv2d85dqLkDD8TD+6VIpik3+fRDKakqZoNVZVX10oaRmqkMqOTevXl6dubn0NyytDFgin+CzycaF5HJXGDtCobXuspoUT6QFw1OHfwAPdf3eRqgC+7X30ZBnqS3yaJ2qkHqA97wr4RAmY3gkQ4j5PgexwdmLp6Wfvg6bAPRSC9QdcyrxlTZT6ZvyE2AIDJa3CdpFqeapCxHSNZ1vN/yDFE1SMObpQ3pwXbe0hJvu+tGSQtq1vDZNFMtOykshwpYK2xMSCMzfF5qmEZCXHHePH3UiRhaKomE0LYQYFsRoEaODMlaxsyCtfWNprOpIF55zsc20+Zs+cOFvzqZHKHzakpE53Et1a8dpLS5YLFENyNlpKD0UiuhsQ7YCLCOW6kVKUmQHJ1DHuW78Mp6ZvPyMJzKZpFvhHjRtbeL+NjEK5nMtJl9/CFZd9JyTskgGX8aSBU3m6ETlzQfAjstHR33/OHSQKD8e1Iv1323fBprrkDoaTtIonH1TrMm7zXjEl63t57tJSEMc5ZWUX1EhKrl6+jUj2LiQwukQpjf7J+nRckqMxPOqLrF7OGNQ/9ta31irwEDuBZUqCz49vy7L4D4A1J80TtXq98Chaj/bQzkwDpyMyY7L13JUDEdjqTxRL8arzLPzqC78hz/w9xyOiQ4k1g18fu4Wd7U9H/USpI1+7A2EcDnRotBMmOtGy1oRXnz4VixBHFP6YPQ1UPXv9bTb4ZWsX8jzLjAr/gtCqdnKLbT2wYVqhnCzJ99m2abqc4WTtfjiozz+yEuN30v61JniqERvqyFjPu8iaC2INKtRh8VOIQQK4YjESPQYMAcrvxpbt0s3xrg0wOb02PEp5I+whO90PeN fVVK6hIk uGxmsMZa+KS6QyoWRsKqZ8j68NjUqhs3zx55J9a5ktFWmt1YgeAt4fcXCO7kB7K1VKRdYwHGhjzJvSy9wCA9UGAoP8rymZziunVQzMXw+jY1pOA4GjexntOrcjZUiW+/nI4hzBgFeawvyZtq97PkcNMJ3tTgd6GmkNL+/LrDQiZC+mv5/20eRqbwO2Ox1ITDlHbs9 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000019, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
mm: oom: terminate the oom_evaluate_task() loop early
|
expand
|
From: ZhangPeng <zhangpeng362@huawei.com> This patch series improves the performance of select_bad_process() by terminating the oom_evaluate_task() loop early (if points == LONG_MAX). ZhangPeng (2): mm: oom: remove unnecessary goto in oom_evaluate_task() mm: oom: terminate the oom_evaluate_task() loop early mm/oom_kill.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)