Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1204734rwi; Fri, 14 Oct 2022 14:44:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5QwbBuL/6vP6P+K56OrvTDnCNkJnZ/AMorXtWqZbLu/DLNs63i2r9yXRk5tcY2v0tTICCt X-Received: by 2002:a05:6402:1856:b0:458:db1e:20ec with SMTP id v22-20020a056402185600b00458db1e20ecmr6121535edy.14.1665783885127; Fri, 14 Oct 2022 14:44:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665783885; cv=none; d=google.com; s=arc-20160816; b=r4MOXnYj2LBhyYiwKYYIIinjEeA/dT6iixmxa/qpqNVsesVAh3T56XIysKDmCFdzYI Q1YJP/R53Sowdf1l2TdKz4tNE4/vp+ccaWUSZ6ip2pGCZmteqPlfXc2FeYFBt4BymiVy YZ9YbKwr0RylO98kZ8Y7gl4mPU3O8LHS4OvACEo1GSf52lrhb/HccGBV65gbmjAgRzBM SnB0vsuknfBgzTTmJfrav0hTY93xXGAX9qOH1hGyaxPfTlNZnTlOZ+Ty90lH+Kks76Wk QeEpHiC6ZMN4FONLMIQWT6G5xc4pR87Bl3EwDKcUnJnIK9uM+z26PSSL7Co6i2kxkAYT Fv4w== 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=tKq14h3L8DuFvFIc1/toFN9il0HrAJZRTsymLOESL+4=; b=wUvkgeFehCLn0luwZX+9xcmEt8rjnEeO4KCPMFVJkR+vtXo758IrlnMRIVOfwNltsd DG74bmQJVvpo3DNe5QgA4YMTkS0juOVh+t7pPb/lUMfoZSaZbK7kNDU2AZezV3f6sJ9/ ZFeleGyj7S/ajZsoacd/AI0T36ZBDImAp+EmKMYvZrN8mwZKiuM+xeKR2fFteL5xzkRJ Ry2tKISNfbODr4R2HcTNkcJStlMzkryo1LJqNJh8fygFBdn+f3OT/mFU/UdnJlxoQHxQ /x3yQi9ukaDv6Nvsx7twq2l7yo/s7as/b+PeleXcqNU62g7KbcYCahHQ4+s9dlQQY7l5 Bfig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=mySxM6vS; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qk19-20020a1709077f9300b007807e3f6766si3068912ejc.581.2022.10.14.14.44.19; Fri, 14 Oct 2022 14:44:45 -0700 (PDT) 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=pass header.i=@google.com header.s=20210112 header.b=mySxM6vS; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229908AbiJNVWQ (ORCPT + 99 others); Fri, 14 Oct 2022 17:22:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229865AbiJNVWG (ORCPT ); Fri, 14 Oct 2022 17:22:06 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D092D1DD886 for ; Fri, 14 Oct 2022 14:21:56 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id by36so7477975ljb.4 for ; Fri, 14 Oct 2022 14:21:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=tKq14h3L8DuFvFIc1/toFN9il0HrAJZRTsymLOESL+4=; b=mySxM6vSz9WNpDWgs9WvCAaiMLUE7dK/EUmo+cDPFzHdu82YZFloiRCAnmWbkQiCOo r4pclB/Xuz16mfrbhGtTe8xXyiRB3H7SXGYljmk32wxqSPi6j1alBSM3xpICqiTxlsz3 AV2TCkvdvDG2AwoLFus2/mVUhCWLm6IRNd2dAv3mHMDrtzfY2AmTQ9+I7nyv1YjpafdF pzoZrtB6fkoef41u6egJXsmJYyD/xkmSX/6UGxBvq2TN/5KWz3I0olnQdxeytoYgdcgg q/27Cx8HWO7SshXib5JwcYgCbnpMGBkmO8FLc16qtJNPtTXMO6SR/kDpdFWR8ALX8gt4 eDJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=tKq14h3L8DuFvFIc1/toFN9il0HrAJZRTsymLOESL+4=; b=Xu3RZL7+Rdw6qoNSnQ7eSIsnYqLyi7GopthoYfHiqdre6SvO/B7lLha6/gVoF2SnBz gZ5mwiw0xJwdAdXPD/Ug2hZSRSP7g8Kf4JZGZnDDxjzrXVILfDJZfCxxxoumlq6tw/ig gYCE/rqaw8ig/Rqk2jGn4xzj8Gh2yl4moQbOg+vfI9RHUXjnN8KprHzhR6BPWRoivGb9 b4qcvI3LKXReZbfmemVoimfslLFoS8AVvDALc7iSpIhovAm9ou8XroPd2jLhD0hCZ5FU kNLEZhRSctCYIF2St7NlxqoEv8mweopFwhXUN3mnJC/PdvQnAhgPC4M12hPDcUm3/7N2 OVag== X-Gm-Message-State: ACrzQf2xdaWq6xFDQ3F8R/llaQp2pMkauJqeZ8lK9COJlTMs7wDAYZJE Okl4AuAuHPyhCR3Cz2ShMA0Ss+6N9cFKlEpIbjgShMP237A= X-Received: by 2002:a2e:9547:0:b0:26b:fb41:f60a with SMTP id t7-20020a2e9547000000b0026bfb41f60amr2609653ljh.295.1665782514418; Fri, 14 Oct 2022 14:21:54 -0700 (PDT) MIME-Version: 1.0 References: <20221010220538.1154054-1-vipinsh@google.com> In-Reply-To: From: Vipin Sharma Date: Fri, 14 Oct 2022 14:21:17 -0700 Message-ID: Subject: Re: [PATCH v5 0/5] dirty_log_perf_test vCPU pinning To: Sean Christopherson , "Wang, Wei W" Cc: David Matlack , "andrew.jones@linux.dev" , "pbonzini@redhat.com" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 On Fri, Oct 14, 2022 at 12:03 PM Sean Christopherson wrote: > > On Fri, Oct 14, 2022, Vipin Sharma wrote: > > On Fri, Oct 14, 2022 at 9:55 AM David Matlack wrote: > > > > > > On Fri, Oct 14, 2022 at 9:34 AM Sean Christopherson wrote: > > > > > > > > On Fri, Oct 14, 2022, Wang, Wei W wrote: > > > > > Just curious why not re-using the existing tools (e.g. taskset) to do the pinning? > > > > > > > > IIUC, you're suggesting the test give tasks meaningful names so that the user can > > > > do taskset on the appropriate tasks? The goal is to ensure vCPUs are pinned before > > > > they do any meaningful work. I don't see how that can be accomplished with taskset > > > > without some form of hook in the test to effectively pause the test until the user > > > > (or some run script) is ready to continue. > > > > > > A taskset approach would also be more difficult to incorporate into > > > automated runs of dirty_log_perf_test. > > > > > > > > > > > Pinning aside, naming the threads is a great idea! That would definitely help > > > > debug, e.g. if one vCPU gets stuck or is lagging behind. > > > > > > +1 > > > > I also like the idea. > > > > Sean: > > Do you want a v6 with the naming patch or you will be fine taking v5, > > if there are no changes needed in v5, and I can send a separate patch > > for naming? > > Definitely separate, this is an orthogonal change and I don't think there will be > any conflict. If there is a conflict, it will be trivial to resolve. But since > Wei provided a more or less complete patch, let's let Wei post a formal patch > (unless he doesn't want to). Sounds good!