Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1847478pxy; Thu, 29 Apr 2021 16:24:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAPlA5mVwMUMJ2nSFijsf6toqGwbMAmUYLOVWaBpw+xtZO1mGQ1jYpeqT9NdluPT6vd3i/ X-Received: by 2002:a17:90a:fd92:: with SMTP id cx18mr2258634pjb.209.1619738697685; Thu, 29 Apr 2021 16:24:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619738697; cv=none; d=google.com; s=arc-20160816; b=zPJUtLBXTSh0hknM2Kjj25lS5BfNKNvXyG8cfWwOPIbD/L7ddjBBX31ZsioJoDT338 Mzi0RIQQM/9zPLZy0b6e1DzvmEI/zVZyzRBmYdiE9jB4Yjf5qwtKPSpOmw685p3HJ0dF y9m+vdrvSfb+yd9FxlPqLlCYUkBixpxPNjDDdN7k3MaqlzAU4jQxM/poiE4StfoNcXxK TTQYu02oKqkGc5eDO8FiPwRu1LbXSfG5PHV4M1mbwB3FU+Tj9N3TrilhV+Fvff5bANrN jTgodCseDxiHH6nqgU/Cs8dodhuCqesUW68GewpjX2fnGyVyxlYsmHgQnEHhl8sxqIAc UXIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=GQ8Jf74PNstibeAaTzLNuJjv1ieRo/LrsZj4933jgH4=; b=n4TYT/U9gcIFM1YrHnMzTjdOpr1SH2E5c2+S7PlbSVTVJkkYR5O88AF2vBlf6xHDuP aJ9f9NaCHoX9EWVni5ZH3tnP2UvVDF/qYbnG9YHVSb2Hy7v/y4x9pES/DGOQGgPhtR5F ErI6C3PNwamThGiuZOPpl6jwgPppLwPl8g0Y3wCyTiI2CDp3P+pOJX7PiTaDV+t/GWEt 4xp3UqUiwDEz/6dCkNYHAucItB8gUgl8dHBAUpwhH902h+gfaGW/DEu32XczTNDkarhv fndv55UoxIgxPr6Uzt0lXN73VIMXJ2kZLTgbIbpvkPTnmHbnJarsTuwPp1OLp9rIQ3il Gdmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ioEyWjw0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d12si184593pgk.423.2021.04.29.16.24.43; Thu, 29 Apr 2021 16:24:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ioEyWjw0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229844AbhD2XXH (ORCPT + 99 others); Thu, 29 Apr 2021 19:23:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229582AbhD2XXG (ORCPT ); Thu, 29 Apr 2021 19:23:06 -0400 Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2CD5C06138B for ; Thu, 29 Apr 2021 16:22:19 -0700 (PDT) Received: by mail-qk1-x729.google.com with SMTP id d19so33292427qkk.12 for ; Thu, 29 Apr 2021 16:22:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GQ8Jf74PNstibeAaTzLNuJjv1ieRo/LrsZj4933jgH4=; b=ioEyWjw0cDzGlWrSG3mnYuKT4D6gfMlwiW8DXYIjsB2B43S9kxcicSkdFWR/0Z6WOU SFl87W1FC4HYmPMKWb4t7H6lBhTBDkpV6gBpadi9DjvTC0nEWuq68NuiKO6TUSxsEi5p LLJ8rQAff+O29Rz4aCPz09oj5rhwS0CRCjzdNcvdDualg06ZfIF8Ik8ce0bgYHA5TJIb eZqQyneiYDh+uILhkNHTchuzp0qdcM+VasBgBb8g98vw3TPdUKSwDP/tvgY1/r7mXECb zRG2tZkYRE6vUp6V0Gdyj4cT4xiBJWyNNue80NDGnnyDFOl1zEXnBOz6eSJtLxEuqzGO NSgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GQ8Jf74PNstibeAaTzLNuJjv1ieRo/LrsZj4933jgH4=; b=FRUH+xewiLZCWRwKBkxtit4Ef2ZxvebwnsHNVYGZNu2x9QtaokfC6aXFooJb9/tgI4 32krTX+M2LOjSolRiznsDshhgqPCrseOkBivEkVZPtmMQQtg0GuonPbjGxQ64SFiG+56 SD3ApQ2PEfDx0+50Y1hOJF1l91kFskWaOTKpjBddOdr4ByDjNz0VrQ1K5fWMg3Ws2nic gE7GqMF5rQobf1hjxXqbpKQiosm9Gqw8sR4r5FKrWmMOh86O/ccpbs0ziiC7l/SGSFdI oXLsSp79QdEAQtJ1CtqVw9DibeGLbm3bCwOmo33k3dey3cvx6o9r9OkzfaM7NY0FaKsP 3vcg== X-Gm-Message-State: AOAM530debZ6b4+X9wEMlKlGJL3GtKi0/AOey9dPLf8mxuPJsZWLO09G mpeAE+C4F70LrOQpzovhxYPa+r7PE8OStG11EmXa+Q== X-Received: by 2002:a37:41ce:: with SMTP id o197mr2365869qka.122.1619738535821; Thu, 29 Apr 2021 16:22:15 -0700 (PDT) MIME-Version: 1.0 References: <20210422120459.447350175@infradead.org> <20210422123308.196692074@infradead.org> <5c289c5a-a120-a1d0-ca89-2724a1445fe8@linux.intel.com> In-Reply-To: From: Josh Don Date: Thu, 29 Apr 2021 16:22:04 -0700 Message-ID: Subject: Re: [PATCH 04/19] sched: Prepare for Core-wide rq->lock To: Don Hiatt Cc: Aubrey Li , Aubrey Li , Peter Zijlstra , Joel Fernandes , "Hyser,Chris" , Ingo Molnar , Vincent Guittot , Valentin Schneider , Mel Gorman , linux-kernel , Thomas Gleixner Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 29, 2021 at 2:09 PM Don Hiatt wrote: > > On Thu, Apr 29, 2021 at 1:48 PM Josh Don wrote: > > > > On Wed, Apr 28, 2021 at 9:41 AM Don Hiatt wrote: > > > > > > I'm still seeing hard lockups while repeatedly setting cookies on qemu > > > processes even with > > > the updated patch. If there is any debug you'd like me to turn on, > > > just let me know. > > > > > > Thanks! > > > > > > don > > > > Thanks for the added context on your repro configuration. In addition > > to the updated patch from earlier, could you try the modification to > > double_rq_lock() from > > https://lkml.kernel.org/r/CABk29NuS-B3n4sbmavo0NDA1OCCsz6Zf2VDjjFQvAxBMQoJ_Lg@mail.gmail.com > > ? I have a feeling this is what's causing your lockup. > > > > Best, > > Josh > > Hi Josh, > > I've been running Aubrey+Peter's patch (attached) for almost 5 hours > and haven't had a single issue. :) > > I'm running a set-cookie script every 5 seconds on the two VMs (each > vm is running > 'sysbench --threads=1 --time=0 cpu run' to generate some load in the vm) and > I'm running two of the same sysbench runs on the HV while setting cookies > every 5 seconds. > > Unless I jinxed us it looks like a great fix. :) > > Let me know if there is anything else you'd like me to try. I'm going > to leave the tests running > and see what happens. I update with what I find. > > Thanks! > > don That's awesome news, thanks for validating. Note that with Aubrey's patch there is still a race window if sched core is being enabled/disabled (ie. if you alternate between there being some cookies in the system, and no cookies). In my reply I posted an alternative version to avoid that. If your script were to do the on-off flipping with the old patch, you'd might eventually see another lockup.