lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2ff5424f-7fb0-4e67-a521-e309c870f229@linuxfoundation.org>
Date: Thu, 31 Oct 2024 16:03:52 -0600
From: Shuah Khan <skhan@...uxfoundation.org>
To: lizhe <sensor1010@....com>, gregkh@...uxfoundation.org,
 linus.walleij@...aro.org, stern@...land.harvard.edu, ok@...ecdesign.ee,
 mathias.nyman@...el.com, b-liu@...com, valentina.manea.m@...il.com,
 shuah@...nel.org, i@...ithal.me, niko.mauno@...sala.com, dvyukov@...gle.com,
 andreyknvl@...il.com, tj@...nel.org, viro@...iv.linux.org.uk,
 christophe.jaillet@...adoo.fr, stanley_chang@...ltek.com, sylv@...v.io,
 lee@...nel.org, colin.i.king@...il.com
Cc: linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
 Shuah Khan <skhan@...uxfoundation.org>
Subject: Re: [PATCH] usb:core: Remove unused parameter struct usb_hcd *hcd in
 usb_hcd_unlink_urb_from_ep

On 10/30/24 07:25, lizhe wrote:
> 
> Hi, Shuah Khan
> 
> 
> *This sounds like this change isn't required? *
> 
> **not, hcd in usb_hcd_unlink_urb_from_ep() is a redundant operation, although the cost of a single instance is minimal, the cumulative cost can be significant,
> 
> such as when copying a large file to a USB drive.

I am not convinced this change helps. I would rather keep
the hcd argument to keep the api balanced and be able to
debug a problem that requires the hcd to urb association.

What are the performance numbers you are seeing with and
without your patch when copying a large file to a USB drive?

> 
> *Right. Can you quantify the overhead?*
> 
> Quantifying it is merely to illustrate the benefits it brings
> 
> because removing it has no drawbacks, the benefits of removing HCD are obvious,
> 

There are drawbacks as pointed out in the above paragraph.
The benefits of removing HCD are not obvious to me. Maybe
you can provide them by answering the performance numbers
with and without your patch when copying a large file to a
USB drive keeping all other variables the same.

thanks,
-- Shuah

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ