Message ID | ba294dff-812a-bfc2-a43c-286f99aee0b8@sberdevices.ru |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2934772wru; Tue, 15 Nov 2022 12:50:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf7RUj/mrBXLMd4FzLb4L3zQJvDS+Eoc87XFJAPtOCcizKWGwIUVFJaLLXxXglzlvMu6I9cj X-Received: by 2002:a05:6402:4003:b0:467:897d:eb09 with SMTP id d3-20020a056402400300b00467897deb09mr13512768eda.60.1668545459808; Tue, 15 Nov 2022 12:50:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668545459; cv=none; d=google.com; s=arc-20160816; b=1HCpvNwYqeZ/ON/e/T5EwqOLB1iWIJGsDzsPaVFz3dAD2s/hwTftdPVSg/4VSpNDSt O2StKoo7Cj93Vkytkh3BP7GjXzTirCMcb2CLcuczk33i65gGOC7eKV/lWlpxNumzfTfB 2aep2Puu7HuY07aMGjRH27Ay/RxpdIVbAAPGUx1OBcA33KSDYNw/dchWmzrb/HkxMObY 6+8CsPJwZW5WbjMmCQ0lyAjojhPI1QMwVK0oFNzG+GPyCNlkY92QhrwNdpiYkXEgCo0Q yx/xY32KVNkzjqz8YUB3rbTCiJrwXfmeC/tRDc77XiZg1Y1FK6fYTVl5yZ/sXU8vlUH6 l+Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=JPGfohbosaUAmtObAbhNd5nTyTEewTH4tnrJ4R/k/CE=; b=08MYrsgWHlFdvy4LWwAkLjqEdZO6Pu8MmhtyyYA7lW3iO1cH/Tma/mQD5GIK3GbjVM Lq++XBFn7WgGMlXDVv1UNzDpRPgIu72m852io136yaV51EgiD+PB7APA0x+8G1zGtuFw 87aZsOHHn0tjqkfoxozB1bE/OIwBkbh6Hst6G1yXGnlz1Ym0zM17MHxr3EVp+846MQym +tcW1zoBqAoYrJXaCJrTBa1Sn0QbfVMZwPRbYb8cmKUUySXjvdbFu95e6BZB7eIjZuSl tJ+y+Ubzl095ickq/tog1jtSUx1B4+//c6bURAWAYWWPJ8UZczWuNfVrjL4OoCZ0iOWh WSyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=fYvCNb4y; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k2-20020a1709063e0200b007ade0bd0306si10353865eji.227.2022.11.15.12.50.36; Tue, 15 Nov 2022 12:50:59 -0800 (PST) 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=@sberdevices.ru header.s=mail header.b=fYvCNb4y; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232474AbiKOUsO (ORCPT <rfc822;maxim.cournoyer@gmail.com> + 99 others); Tue, 15 Nov 2022 15:48:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229633AbiKOUsM (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 15 Nov 2022 15:48:12 -0500 Received: from mx.sberdevices.ru (mx.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FDE826489; Tue, 15 Nov 2022 12:48:09 -0800 (PST) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mx.sberdevices.ru (Postfix) with ESMTP id 3E6FB5FD07; Tue, 15 Nov 2022 23:48:07 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1668545287; bh=JPGfohbosaUAmtObAbhNd5nTyTEewTH4tnrJ4R/k/CE=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=fYvCNb4yFSo9DbBpdE4sS+9hMchiqxV+TSqt7DoH1pNqnBoHHQGPUxO4B/yiWcFh8 SILVsDThKjYG5hoJu2Qql6Wd8RdaHzg4CgPlOQwgAu7pstu6598iMHR9lx5dNN7g+2 dXyf3B9TUm1N1TAXmVdJesuil0wrzKKqwZOo09ndg5zoRCyEaYSjJicyijplNyxqQ8 Xqd2wbKV3gY4GN2vZIxZFS8mXtWXGQXqNegvWb5+AuDnCJ5OYijm+WsWyT38q9YGlt qmxqs+2h3Nm1zRL5FqAYwMOaQLAYlI8fkvcFF1CQ0fI5kRjsl6n1o/DWyndiR5Fl0y 9ry2QilmgLTug== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mx.sberdevices.ru (Postfix) with ESMTP; Tue, 15 Nov 2022 23:48:05 +0300 (MSK) From: Arseniy Krasnov <AVKrasnov@sberdevices.ru> To: Stefano Garzarella <sgarzare@redhat.com> CC: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "netdev@vger.kernel.org" <netdev@vger.kernel.org>, "virtualization@lists.linux-foundation.org" <virtualization@lists.linux-foundation.org>, Bobby Eshleman <bobby.eshleman@gmail.com>, kernel <kernel@sberdevices.ru>, Krasnov Arseniy <oxffffaa@gmail.com> Subject: [RFC PATCH v1 0/3] test/vsock: update two tests and add new tool Thread-Topic: [RFC PATCH v1 0/3] test/vsock: update two tests and add new tool Thread-Index: AQHY+TOPXsnrO4Inj0K6247YFI64dQ== Date: Tue, 15 Nov 2022 20:48:05 +0000 Message-ID: <ba294dff-812a-bfc2-a43c-286f99aee0b8@sberdevices.ru> Accept-Language: en-US, ru-RU Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.16.1.12] Content-Type: text/plain; charset="utf-8" Content-ID: <FB6E3890E470E74D815897843DED993B@sberdevices.ru> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-KSMG-Rule-ID: 4 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiPhishing: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 1.1.2.30, bases: 2022/11/15 16:23:00 #20571948 X-KSMG-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749596724293449060?= X-GMAIL-MSGID: =?utf-8?q?1749596724293449060?= |
Series |
test/vsock: update two tests and add new tool
|
|
Message
Arseniy Krasnov
Nov. 15, 2022, 8:48 p.m. UTC
Since there is work on several significant updates for vsock(virtio/ vsock especially): skbuff, DGRAM, zerocopy rx/tx, so I think that this patchset will be useful. This patchset updates vsock tests and tools a little bit. First of all it updates test suite: two new tests are added. One test is reworked message bound test. Now it is more complex. Instead of sending 1 byte messages with one MSG_EOR bit, it sends messages of random length(one half of messages are smaller than page size, second half are bigger) with random number of MSG_EOR bits set. Receiver also don't know total number of messages. Message bounds control is maintained by hash sum of messages length calculation. Second test is for SOCK_SEQPACKET - it tries to send message with length more than allowed. I think both tests will be useful for DGRAM support also. Third thing that this patchset adds is small utility to test vsock performance for both rx and tx. I think this util could be useful as 'iperf', because: 1) It is small comparing to 'iperf()', so it very easy to add new mode or feature to it(especially vsock specific). 2) It is located in kernel source tree, so it could be updated by the same patchset which changes related kernel functionality in vsock. I used this util very often to check performance of my rx zerocopy support(this tool has rx zerocopy support, but not in this patchset). Patchset was rebased and tested on skbuff patch from Bobby Eshleman: https://lore.kernel.org/lkml/20221110171723.24263-1-bobby.eshleman@bytedance.com/ All 3 patches are from my previous big patchset for virtio/vsock rx zerocopy - they are not related to zerocopy, so Stefano suggested to exclude them from patchset. Arseniy Krasnov(3): test/vsock: rework message bound test test/vsock: add big message test test/vsock: vsock_perf utility tools/testing/vsock/Makefile | 1 + tools/testing/vsock/vsock_perf.c | 386 +++++++++++++++++++++++++++++++++++++++ tools/testing/vsock/vsock_test.c | 62 +++++++ 3 files changed, 449 insertions(+) -- 2.25.1