Is the performance of Win11 reading not removable medium through UAS better than that of removable medium?

大林 孙 0 Reputation points
2024-09-14T03:17:26.3633333+00:00

I have a linux embedded device that uses UAS func to expose its storage to the PC. When it is set to non-removable media, the PC read performance is 200MB/s better than when it is set to removable media. Why is this? Is there a way to improve the performance when set to removable media?

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,640 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Q&A Assist
    2024-09-14T03:17:26.38+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Based on the information provided in the context, the performance of reading non-removable medium through UAS is better than that of removable medium. This is because I/O queuing is disabled on a particular driver stack for removable storage devices to ensure that data can be written as much as possible, while it is enabled on devices that are recognized as fixed disk. Therefore, the next I/O request is made after waiting for each I/O request to complete, resulting in lower throughput than a fixed disk. Unfortunately, there is no way to improve the performance when set to removable media.


    References:

    0 comments No comments

  2. Yanhong Liu 9,755 Reputation points Microsoft Vendor
    2024-09-16T03:07:13.42+00:00

    Hello,

    Thank you for posting in Q&A forum.

    The performance difference you're observing between non-removable and removable media in Windows 11 may be attributed to several factors, including system optimizations, caching policies, and driver behavior. Here are a few potential reasons and solutions:

    1. Caching Policies: Windows may apply different caching strategies based on whether the device is marked as removable or non-removable. Non-removable devices typically benefit from more aggressive caching and write-back policies, which can significantly enhance read and write performance.
    2. Driver Optimization: Windows might load different drivers or apply different optimizations based on how the device is classified. Non-removable media might receive more favorable treatment in terms of resource allocation and priority.
    3. System Resource Allocation: Non-removable media might be given higher priority or more consistent access to system resources compared to removable media. This means it may get more CPU time and priority for I/O operations.

    To improve the performance of your removable media, you can try the following:

    1. Optimize Caching Policy: You can manually adjust the caching policy for the removable device in Windows:
      • Open "Device Manager."
      • Locate the removable device under "Disk drives."
      • Right-click the device and select "Properties."
      • Go to the "Policies" tab and choose "Better performance." Note that this may increase the risk of data loss in case of an unexpected shutdown.
    2. Ensure Driver Updates: Make sure all relevant drivers (including USB and storage drivers) are up to date. Check for any specific drivers provided by your embedded device's manufacturer.
    3. Use High-Quality USB Ports: Ensure the device is connected to a high-speed USB port to maximize potential throughput.

    Best Regards,

    Yanhong Liu

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.


  3. Yanhong Liu 9,755 Reputation points Microsoft Vendor
    2024-09-16T03:09:26.24+00:00

    Hello,

    The performance difference you're observing between non-removable and removable media in Windows 11 may be attributed to several factors, including system optimizations, caching policies, and driver behavior. Here are a few potential reasons and solutions:

    1. Caching Policies: Windows may apply different caching strategies based on whether the device is marked as removable or non-removable. Non-removable devices typically benefit from more aggressive caching and write-back policies, which can significantly enhance read and write performance.
    2. Driver Optimization: Windows might load different drivers or apply different optimizations based on how the device is classified. Non-removable media might receive more favorable treatment in terms of resource allocation and priority.
    3. System Resource Allocation: Non-removable media might be given higher priority or more consistent access to system resources compared to removable media. This means it may get more CPU time and priority for I/O operations.

    To improve the performance of your removable media, you can try the following:

    1. Optimize Caching Policy: You can manually adjust the caching policy for the removable device in Windows:
      • Open "Device Manager."
      • Locate the removable device under "Disk drives."
      • Right-click the device and select "Properties."
      • Go to the "Policies" tab and choose "Better performance." Note that this may increase the risk of data loss in case of an unexpected shutdown.
    2. Ensure Driver Updates: Make sure all relevant drivers (including USB and storage drivers) are up to date. Check for any specific drivers provided by your embedded device's manufacturer.
    3. Use High-Quality USB Ports: Ensure the device is connected to a high-speed USB port to maximize potential throughput.

    Best Regards,

    Yanhong Liu

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.