Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2092531pxb; Fri, 25 Mar 2022 10:57:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOCdK7Z62OwN3XFSzg7ZJYQG0CmlAGYqRWuqroT+VStIWaxXz5dLKE3JTzaTOv8Btjro9J X-Received: by 2002:aa7:88d6:0:b0:4fa:ba98:4f5d with SMTP id k22-20020aa788d6000000b004faba984f5dmr11392863pff.5.1648231068388; Fri, 25 Mar 2022 10:57:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648231068; cv=none; d=google.com; s=arc-20160816; b=uc1RqeXDDHIPuAhL7xPFSyayXEG4tN5reDr4ufdFbYtMgZCQoLT7DiR9h2YzwWXDiW K1+/Wf5pSfZ4vg3+KlX+ILsprunea0gPDzBapWPm711USCEnA73SLGWRzw4uMLca144N biqRUf0iD5M1xBJb9rgAZwC8dntynR6DXfB4EXosC8sUzzMQ6loagcXg+yIdrqIPKxDm oAE6pNRWaPEMT0OWPlbE7Vd4wcWjHRKRTMGpr1JTZVibpvbrCx6x0qll3xH2mmIWI8EJ iUUEaZErE1tQl/E6WqUx4DwBwKR6nT1/mJlQs/TSMUk0/3shF4w3yhCahVb5wqUl8orZ wY3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=645Y/OtWrXfu94ghKzgX/CYbJeHjL6KM1tOHVX36Llw=; b=farRjxUgFQsZB/Ec4zpgfJjTFAi7XxKqdndKUfZ3W/NqFiVDv7YSaySWHDMwBdibPK xttGrMLwfU7c/ZTKAM/6RVfipSVmrYFtL9YvEozpRz88Gi8NbQTtAfyatP71vwEi64wK zhRgxx0Dq9maXVmyP9DPyg/1TPDXBVFA1xHzI62zCz65ZzCdCc9ZGn+qAzieg54hgV5e rh84QlhMOk3HLdxmiiVXCbXnS/aa/5subXlky0inwa/MMfCTIawGYUYhI9Hf3h90lWnL 4SNn4LHQDVDz5dsjGOeoBV+uBoXWMf2T6KQXvOaowNeeQXw6uPyuEpMF89ymS6H06Dr8 KxoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gqi31fET; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id m23-20020aa79017000000b004fa3a8e007asi3139339pfo.305.2022.03.25.10.57.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 10:57:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gqi31fET; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 420F2122213; Fri, 25 Mar 2022 10:37:17 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358950AbiCYQqT (ORCPT + 99 others); Fri, 25 Mar 2022 12:46:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356626AbiCYQqR (ORCPT ); Fri, 25 Mar 2022 12:46:17 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7BF9E3B038 for ; Fri, 25 Mar 2022 09:44:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1648226682; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=645Y/OtWrXfu94ghKzgX/CYbJeHjL6KM1tOHVX36Llw=; b=gqi31fETvZTVfob8BwFHWktM7Dasp8+2Zwwmp6gz5uIGcPgUNJIc1QcXiP47iHABycu5pT 3Eer5KeCFn4nIBZMpZ7ejaUbl9Ot307TqlwSVY3wh2N5904Om2fwMoCsUcjLQrLZZxByYD N3XAnZ8kLTXtmzyjy0gcyD3jJpBRyhU= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-330-HScAVXZTN_-2Y2yNBxpRZg-1; Fri, 25 Mar 2022 12:44:41 -0400 X-MC-Unique: HScAVXZTN_-2Y2yNBxpRZg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 34372280D417; Fri, 25 Mar 2022 16:44:40 +0000 (UTC) Received: from jsavitz-csb.redhat.com (unknown [10.22.33.7]) by smtp.corp.redhat.com (Postfix) with ESMTP id 33E5640CF8EC; Fri, 25 Mar 2022 16:44:39 +0000 (UTC) From: Joel Savitz To: linux-kernel@vger.kernel.org Cc: Joel Savitz , Jonathan Corbet , Andrew Morton , Vlastimil Babka , Mel Gorman , Dave Hansen , Suren Baghdasaryan , Mike Rapoport , "zhangyi (F)" , Charan Teja Reddy , linux-doc@vger.kernel.org Subject: [PATCH] Documentation/sysctl: document page_lock_unfairness Date: Fri, 25 Mar 2022 12:44:37 -0400 Message-Id: <20220325164437.120246-1-jsavitz@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 commit 5ef64cc8987a ("mm: allow a controlled amount of unfairness in the page lock") introduced a new systctl but no accompanying documentation. Add a simple entry to the documentation. Signed-off-by: Joel Savitz --- Documentation/admin-guide/sysctl/vm.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/admin-guide/sysctl/vm.rst b/Documentation/admin-guide/sysctl/vm.rst index f4804ce37c58..747e325ebcd0 100644 --- a/Documentation/admin-guide/sysctl/vm.rst +++ b/Documentation/admin-guide/sysctl/vm.rst @@ -62,6 +62,7 @@ Currently, these files are in /proc/sys/vm: - overcommit_memory - overcommit_ratio - page-cluster +- page_lock_unfairness - panic_on_oom - percpu_pagelist_high_fraction - stat_interval @@ -754,6 +755,14 @@ extra faults and I/O delays for following faults if they would have been part of that consecutive pages readahead would have brought in. +page_lock_unfairness +==================== + +This value determines the number of times that the page lock can be +stolen from under a waiter. After the lock is stolen the number of times +specified in this file (default is 5), the "fair lock handoff" semantics +will apply, and the waiter will only be awakened if the lock can be taken. + panic_on_oom ============ -- 2.27.0