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 Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4831AC433F5 for ; Fri, 4 Mar 2022 15:01:19 +0000 (UTC) Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94.2) (envelope-from ) id 1nQ9Qd-00077A-2w; Fri, 04 Mar 2022 10:01:11 -0500 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nQ9Qa-00076v-9S for kernelnewbies@kernelnewbies.org; Fri, 04 Mar 2022 10:01:08 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 16B5B3201D6A; Fri, 4 Mar 2022 10:01:07 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 04 Mar 2022 10:01:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; bh=WiArk/7rjYTt8m376ypIsC4vWJab9WHWPVYa2z Iim4c=; b=TZ3LJeM6STgffnfQfhjlGE+AcBE0HTgYnTqx36eUcvCEd9/OyEWMnH i/3uvSyhObmPZPbWKigk1vhy1GMFnXoYIVgV0CB28yP0Mti4e1P6r3/cQ5+0vWF/ KJsXZxJd7IBbXgOrDbArdAqdYdAolJn7xnmU7a4Tm4HMw9cqjduDQX5yYCTumeAN 0hEYfUi9whDU/hsPBNkcYLb4JW3jlMvp8GekJStrpmrAltxnkrqFdDHWlFZn+D3p jxkwi3v4i82h20oCht/i4BhVFRZ/OmbGpHvtu93FuRBHYURY6MsWZTvjHh2Bf8/4 Iye2aby5Ok/OPmctC8P59XpxcmpjSkhw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=WiArk/7rjYTt8m376 ypIsC4vWJab9WHWPVYa2zIim4c=; b=Gn7IG+eQ8mwHmfj3TiCcw3J2zh/c9he+E Z9DWwQko3znp4WaVPSrgxEvwYc9d/08T3yyG/w8yTqYgcWhC43KpUC1Qo4bftWIa iLFgJ6iDEyjEooX+xwDVDz1cBo5ZPGW54nYNGzoCcBh5abagIjfc7bDsgW9DsUm5 c1XfkJLv7T6t0kJOMZ6hk2ra4Aj9DIQe2maCILjLIx1UTLxsVY/h8kkhZmsvqUQk pRrXU9PchW1tyo/qt2EvsXECUPiiR5i5LDGm0uDjPPHPXSLEOxC23aJPK5fhbh7l RWQSgdUc+cGgW7hE/LfCAbrEqMPGqw+gEy+EOSggIoAXYNKdR8+xg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddruddtkedgjeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdortddttddvnecuhfhrohhmpefirhgvghcu mffjuceoghhrvghgsehkrhhorghhrdgtohhmqeenucggtffrrghtthgvrhhnpeevhefgje eitdfffefhvdegleeigeejgeeiffekieffjeeflefhieegtefhudejueenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhrohgrhh drtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 4 Mar 2022 10:01:05 -0500 (EST) Date: Fri, 4 Mar 2022 16:01:04 +0100 From: Greg KH To: Mithran B Subject: Re: USB CDC performance test Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Cc: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org On Fri, Mar 04, 2022 at 08:06:55PM +0530, Mithran B wrote: > On Fri, 4 Mar 2022 at 19:48, Greg KH wrote: > > > On Fri, Mar 04, 2022 at 04:27:50PM +0530, Mithran B wrote: > > > Hello, > > > > > > In Host and Gadget systems, enabled the USB CDC drivers. > > > Then nodes are created as /dev/ttyAcm0 and /dev/ttyGs0. > > > Then opened the nodes and write and read back the data. > > > It is working. > > > > > > I want to test the performance of this interface and drivers. > > > Do we have any utility for this? > > > How to do the performance test? > > > > What exactly do you want to measure? Determine that first before trying > > to find a test for that. Without knowing what you want to measure, it's > > hard to tell you how to measure it :) > > > > good luck! > > > > greg k-h > > > > Thank you. > I want to send the data at the rate of 5mbps from Host device to target > device using USB CDC - ACM. > In termios functions, how to configure this 5mbps as baud rate and USB > payload size, i.e. packet > size to be in 2K bytes. There is no "baud rate" for usb cdc devices, really, as you have tried this already, right? Just send the data as fast as you can, with the largest chunks of data that you have (do not send it byte by byte to the kernel), and you should be fine. Are you sure that your device can handle that type of data rate? That's almost always the limiting factor. good luck! greg k-h _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies