Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2394334lqz; Tue, 2 Apr 2024 16:46:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX6R6E8bKZ2psdraUqKJHxle/FHQ6APPw3oyKhPmwpzSxoukSdKJ+Q1UL9YARa/iP4Cs0q9eFhEfLZCGhvXWDt3AJj5n1IHrJKYUbdGCA== X-Google-Smtp-Source: AGHT+IFxkJ6AzYwg3uFtxNdlhBpBPyHhaUBfF76LfrTb3tiq5dj8yCMLAqdaWRmEOQ2KECQRlP1G X-Received: by 2002:a05:6122:2026:b0:4d4:3ec6:421e with SMTP id l38-20020a056122202600b004d43ec6421emr12159635vkd.4.1712101588639; Tue, 02 Apr 2024 16:46:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712101588; cv=pass; d=google.com; s=arc-20160816; b=ZXwCKwdBI+HLu2IJPPXfqewVtwMwQq8PBtPC+lLsGMwtU/cDVmMg0Aup+XVBaOWmMU 7PUUCH9YtAiutIYGs+kM/FUDx9ziVP4iVMPPH9UceiIUS7Hqgx794EXxpW87T7imfeAR rW9YU2GCwxydO4YwQk2uulhd3StCe3+AmKF/WK0U03Nxvu9K6OrPPWxu/+E1CBXGaShx Ax14CZWpDxjk4mZ+veq3ulhQEvpWOGky9szPjD48qFLKDIIdaX0p6K35dby6CvTd2VHZ HDHzQ8dz8hteDpYY9g/yHT9KI8P1hCw/sY2IQPJYg+foxUIJcL0vHdnKfVTLPIIJPvhx WU7g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=YUNb1EO5EhlkTVd2eVYclB+K26JgugQcOcoodC1uf8I=; fh=FqhU4zb4qWF4vPBruA6mS4u8z4phpPtpq06IkicuF1w=; b=0/aFo1tW8L6DZmEfqzv3t05wKPWSUjF1I/6RckhVwvmmy8qzB4B6uRli1H93NeoneK uXCIkXILxmsM+tj3fTGevgUN8yKjAGoCEBdjtDrZ4qaGCKNrgi8zFW8f6z/nsZZsjbCn MUjhpsaF6/t/vl40eshEeFQMfMVh2j3bsvS2FWBfTAicjMjGJk721yNIM06eo8GqipOo xfmeqHOJjr9xCReo/kkXzuqiBL49aJruSYNmasS8Kkp2Fw4FP4VX2KWtJhg68utxI89y ydUYrzq6xJoMN30OPczPWFrzqMPDP4SpTsPGS8LZxSAwXTBbs37/9T1GCHBBquxHyAsg 4gfw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=avX4J5MT; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-128841-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128841-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id da16-20020a05621408d000b00690afd34f3esi752744qvb.28.2024.04.02.16.46.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 16:46:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128841-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=avX4J5MT; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-128841-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128841-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 51DB41C225CA for ; Tue, 2 Apr 2024 23:46:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4A2F786248; Tue, 2 Apr 2024 23:46:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="avX4J5MT" Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C14292260B for ; Tue, 2 Apr 2024 23:46:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712101582; cv=none; b=MPs8Oc/TZ/bkkoUMTruyNmJ0F8z1z26B+Nso7ajMDW+LQe82vWTucmgTsH81KVHeA5t2oD0z3kqkLQtwvJ8RFDS7UkHoe80TK10iDMibLDRA815UsHS/boNqyzIQdhueunUaD8YtaBo5NKyXAt0Ge9afGGoXi4BG+rRZKgJju3E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712101582; c=relaxed/simple; bh=8rjYFhZ2XZOMdRtdKWh5HY7bv+xevdxUD/lIqWYydlc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=foOCczAMF0qLz+M1TiMk34b8B9AcbIqriZwNOe6Ht9e1H6VQ5yTQrvx9AVeZgcUywMxP/4rT7sL2SjevFJZBwA8lKnuScE4eQBOoq5YpdYOzS8UAL6DMz6Kr9kxCR/NQGSOV/PZndQIizESCw4IeSnfWlW2CetjarI/dzdzigog= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=avX4J5MT; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-41549a13fabso17505e9.1 for ; Tue, 02 Apr 2024 16:46:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1712101579; x=1712706379; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=YUNb1EO5EhlkTVd2eVYclB+K26JgugQcOcoodC1uf8I=; b=avX4J5MT5tpRpo+mrOOp5qYjieJknCfCkWEpOXPVzT7uS5tSueI/7kIvZmdSLxBfYS Gi6tg+dO3RRNiOVNpy20RDGc4BsrfOBmyfGS83/q6HwZ3LNzQqYF67v48+qZEzjKZuP6 rpsMDD1e765ATdJpnC+Jgk4dpfMW1T0Tv3isrpamg2GdkT9im6mr+5ay1ygyAFIz7//G EERbK4P2SlzymvLhJEKj1K+swWUsxjS3xsbs9sFIavKvwYkiJYwienhSSKM0dE18gMO9 oQB5RUgg2fv72nXr0qdgvZrvBQ7riADWpMGCyBE1oDeJHlQFJn7HAElkT3NisVQkmlnK FyPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712101579; x=1712706379; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YUNb1EO5EhlkTVd2eVYclB+K26JgugQcOcoodC1uf8I=; b=L+X8o3u45/Mj5Y2YaWU+zaPWLvtV3LDyQP3jjLy56gWauLxfKQYb7nHYW3Vh4lXcC7 8z38YNb3h9gkqqS7TyR1b56/bfGNqFn7uROiEQXao8QbGTWPKekq7IZPIrhytlXylpW5 4SSeJ1nP+kv2HdEpRYeD4VcH+Kw/kvrpHGsbu7ObQ9eiicWXNDHpTQwObt55WzL9MxAl I6R9LK/3YH/ZQKB+mzHrOhQ2lGZaRLbNlv8VyLMgGvZ21Ed90t/XNOtyRgddk662SeGh ZUcWQ9yPR3uFcIdDyYE4xtNcXMaYXWy9p5VPn3vATM82rwnuxZthI1u6My22wOrfjQpp QmKw== X-Forwarded-Encrypted: i=1; AJvYcCUvEAxxW7TNNWfyAcICqOhhz3z1ozd4lyOHcLJUiT8lsBIohWGKC/dNw1pBAeeOA+vP5hOnHbsUzxx/pUZeBhJHSGmQS9eDDwlLj8tE X-Gm-Message-State: AOJu0Ywpjn+rTziBPIFXLdPHIg3zhbd5pY8xKqlaFft/thw/UaBVRMVB aO1Tdo4e5/kzKYYo1DAtA6Beh+hXY4kL+xAaL22CQDP12Rl+hk7oHJEORVkKbsCNnhwtquk04CS PtTn7xbDbF2GOSNwys317Lsu5lwGI/asQFxU= X-Received: by 2002:a05:600c:1c12:b0:415:615c:b98b with SMTP id j18-20020a05600c1c1200b00415615cb98bmr38387wms.5.1712101579027; Tue, 02 Apr 2024 16:46:19 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20230901010704.18493-1-bongkyu7.kim@samsung.com> In-Reply-To: <20230901010704.18493-1-bongkyu7.kim@samsung.com> From: John Stultz Date: Tue, 2 Apr 2024 16:46:06 -0700 Message-ID: Subject: Re: [PATCH v2 0/2] Make reader optimistic spinning optional To: Bongkyu Kim Cc: peterz@infradead.org, mingo@redhat.com, will@kernel.org, longman@redhat.com, boqun.feng@gmail.com, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Aug 31, 2023 at 6:07=E2=80=AFPM Bongkyu Kim wrote: > > This is rework of the following discussed patch. > https://lore.kernel.org/all/20230613043308.GA1027@KORCO045595.samsungds.n= et/ > > Changes from the previous patch > - Split to revert and modify patches > - Change according to Waiman Long's review > More wording to documentation part > Change module_param to early_param > Code change by Waiman Long's suggestion > > In mobile environment, reader optimistic spinning is still useful > because there're not many readers. In my test result at android device, > it improves application startup time about 3.8% > App startup time is most important factor for android user expriences. > So, re-enable reader optimistic spinning by this commit. And, > make it optional feature by cmdline. > > Test result: > This is 15 application startup performance in our exynos soc. > - Cortex A78*2 + Cortex A55*6 > - unit: ms (lower is better) > > Application base opt_rspin Diff Diff(%) > -------------------- ------ --------- ---- ------- > * Total(geomean) 343 330 -13 +3.8% > -------------------- ------ --------- ---- ------- > helloworld 110 108 -2 +1.8% > Amazon_Seller 397 388 -9 +2.3% > Whatsapp 311 304 -7 +2.3% > Simple_PDF_Reader 500 463 -37 +7.4% > FaceApp 330 317 -13 +3.9% > Timestamp_Camera_Free 451 443 -8 +1.8% > Kindle 629 597 -32 +5.1% > Coinbase 243 233 -10 +4.1% > Firefox 425 399 -26 +6.1% > Candy_Crush_Soda 552 538 -14 +2.5% > Hill_Climb_Racing 245 230 -15 +6.1% > Call_Recorder 437 426 -11 +2.5% > Color_Fill_3D 190 180 -10 +5.3% > eToro 512 505 -7 +1.4% > GroupMe 281 266 -15 +5.3% > Hey Bongkyu, I wanted to reach out to see what the current status of this patch set? I'm seeing other parties trying to work around the loss of the optimistic spinning functionality since commit 617f3ef95177 ("locking/rwsem: Remove reader optimistic spinning") as well, with their own custom variants (providing some substantial gains), and would really like to have a common solution. thanks -john