From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1D67FC11F69 for ; Fri, 2 Jul 2021 14:18:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EE42F61435 for ; Fri, 2 Jul 2021 14:18:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233075AbhGBOV3 (ORCPT ); Fri, 2 Jul 2021 10:21:29 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:32330 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232834AbhGBOV2 (ORCPT ); Fri, 2 Jul 2021 10:21:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1625235536; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7Tmnk6NTqIwQaw9HO12m6EJuJudAO8fFlW1SWYpJaZU=; b=UObia4gWuxmNFTkchUrywcFcQbJuUW4XDuRHzmX/2V5wUqeXUzkSfSHhxwuSVIKkLMk7Sc zK33mL+C5DmYb3QrPYBYEErTbWsrEqpafMSyd7H9g1g5KS6UVWBXvOt+hkztBjabwYSReR BSw9KmZfSCY4DOHgtvyr+j2MEwJ1rhU= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-160-N1vnDGbpN3ivjoH3O-nwTg-1; Fri, 02 Jul 2021 10:18:55 -0400 X-MC-Unique: N1vnDGbpN3ivjoH3O-nwTg-1 Received: by mail-wm1-f72.google.com with SMTP id 13-20020a1c010d0000b02901eca51685daso6321625wmb.3 for ; Fri, 02 Jul 2021 07:18:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=7Tmnk6NTqIwQaw9HO12m6EJuJudAO8fFlW1SWYpJaZU=; b=bXW7m1iH00Nj0wkTnZ7Q5BLMZ64Y2H6vvrbc/fUD+GaLBI/ejBzEiaZXzE+YNlKxBb u7ezNhDz6va0D/+d9BBQ8kpuX83wK2N/enRsSLyt0dbTYKBAcgYDzPos852RiWwsbfTj 07CiBHneM7I6lTLQZEP+M2ckeDeKsBruTGhnoVfHnKVmOOt6jfMDFYF30/eKlpugwYCr RITFTa/AaHd7bXude945WaQVfhtllDnXLxXfyEA0ycStShvutK7/ifln/K99lMOBUEXw +5dSPivnE0N6oKzmcCxJeTM8zQkJULftecLuixh/pgHDPZ1Y37MvM1Ots5BW1Q+0fi2u IIsg== X-Gm-Message-State: AOAM531Gcu5s+I834XIImFABLfaCfSTrzUKxhhMz1ARURb6amPtA/dd+ hHIo7A6Wtdfi5NZtrIb2denSjpsTrlXPyO6u4QUhBNNebgpOISI1hcDGeGPHokBF+b2/KG45UY0 H+g4jrT5Q8L6CYtCYDiitM66r X-Received: by 2002:a5d:6cca:: with SMTP id c10mr6354685wrc.166.1625235533952; Fri, 02 Jul 2021 07:18:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOrt5j3Tz6hpHgUZechMmvug4vqpFGOeg7tNyylDFDYJIBJWiPhZTe1usBN5qw3c9nmrTYww== X-Received: by 2002:a5d:6cca:: with SMTP id c10mr6354671wrc.166.1625235533812; Fri, 02 Jul 2021 07:18:53 -0700 (PDT) Received: from redhat.com ([2.55.4.39]) by smtp.gmail.com with ESMTPSA id w13sm3653960wrl.47.2021.07.02.07.18.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jul 2021 07:18:41 -0700 (PDT) Date: Fri, 2 Jul 2021 10:18:37 -0400 From: "Michael S. Tsirkin" To: Yunsheng Lin Cc: Jason Wang , davem@davemloft.net, kuba@kernel.org, brouer@redhat.com, paulmck@kernel.org, peterz@infradead.org, will@kernel.org, shuah@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linuxarm@openeuler.org Subject: Re: [PATCH net-next v3 1/3] selftests/ptr_ring: add benchmark application for ptr_ring Message-ID: <20210702101730-mutt-send-email-mst@kernel.org> References: <1625142402-64945-1-git-send-email-linyunsheng@huawei.com> <1625142402-64945-2-git-send-email-linyunsheng@huawei.com> <91bcade8-f034-4bc7-f329-d5e1849867e7@huawei.com> <20210702042838-mutt-send-email-mst@kernel.org> <661a84bc-e7c5-bc21-25ac-75a68efa79ca@huawei.com> <1fed53f1-f882-ca67-8876-ca6702dcd9cd@redhat.com> <06f0dc67-d614-30d3-6dcc-f2446cb6030b@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <06f0dc67-d614-30d3-6dcc-f2446cb6030b@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 02, 2021 at 05:54:42PM +0800, Yunsheng Lin wrote: > On 2021/7/2 17:04, Jason Wang wrote: > > > > [...] > > > > > > >> I understand that you guys like to see a working testcase of virtio. > >> I would love to do that if I have the time and knowledge of virtio, > >> But I do not think I have the time and I am familiar enough with > >> virtio to fix that now. > > > > > > So ringtest is used for bench-marking the ring performance for different format. Virtio is only one of the supported ring format, ptr ring is another. Wrappers were used to reuse the same test logic. > > > > Though you may see host/guest in the test, it's in fact done via two processes. > > > > We need figure out: > > > > 1) why the current ringtest.c does not fit for your requirement (it has SPSC test) > > There is MPSC case used by pfifo_fast, it make more sense to use a separate selftest > for ptr_ring as ptr_ring has been used by various subsystems. > > > > 2) why can't we tweak the ptr_ring.c to be used by both ring_test and your benchmark > > Actually that is what I do in this patch, move the specific part related to ptr_ring > to ptr_ring_test.h. When the virtio testing is refactored to work, it can reuse the > abstract layer in ptr_ring_test.h too. Sounds good. But that refactoring will be up to you as a contributor. > > > > If neither of the above work, we can invent new ptr_ring infrastructure under tests/ > > > > Thanks > > > > > >> > >> > > > > . > >