Issue flushing deferred write data on Eject

Found a bug? Report here
Post Reply
Walker
Level 1
Level 1
Posts: 2
Joined: Tue Feb 15, 2022 7:50 am

Issue flushing deferred write data on Eject

Post by Walker »

Windows OS: Windows 10 Version 21H1 (19043.1526) but also tested on older versions
Hardware Information
    CPU: Intel I7-9700
    Main Board: HP EliteDesk G5
    Memory: 32GB
    Hard Drives: 1xNVME, external USB SSD, external USB FLASH for testing
PrimoCache Version: 3.2.0 and 4.2.0
Screenshot(s) of your PrimoCache's main dialog showing cache configuration and statistics:
FancyCcV_2022-02-21_08-38-25.png
FancyCcV_2022-02-21_08-38-25.png (78.63 KiB) Viewed 2508 times
Problem Description:

The "HP EliteDesk G5" is a "Mini PC" with no room for internal expansion. All expansion is via USB Hard drives or Flash drives.

Since upgrading from 3.2.0 to 4.2.0 I've noticed the following new behaviour, however rolling back to v3.2.0 hasn't fixed it, so it could also be a windows 10 update which caused the new behaviour
  • Right clicking on a drive letter in explorer (USB Flash) and selecting "Eject" will cause the drive to eject immediately, discarding write cache (and corrupting the flash drive)
  • Right clicking on "Safely Remove Hardware and Eject Media" (SRH) and selecting the drive will flush the disk and eject the drive cleanly.
  • This one seems much harder to reproduce. It happens regularly, just not on command. -- Right clicking on SRH and selecting the drive while the drive is "in use" will display "This device is currently in use". Once that occurs, flushing write data to the disk becomes impossible. Clicking "Flush the deferred write-data to disk" in the PrimoCache GUI causes it to become unresponsive, while TaskManager performance tab shows no disk I/O (and no attempt to flush the write data). Unplugging the drive will release Primocache from its hung state (and lose deferred write-data).
Has anyone else seen this behaviour? Is it a configuration issue? or possibly a drive or shim which is affecting PrimoCache?

Thanks
User avatar
Support
Support Team
Support Team
Posts: 3623
Joined: Sun Dec 21, 2008 2:42 am

Re: Issue flushing deferred write data on Eject

Post by Support »

Since Windows 10 1809, Windows changes the default policy for usb disk devices from "Better Performance" to "Quick Removal". However, it seems that this is not the cause of different behaviours between Eject and SRH. We have reported this problem to our R&D and will do further study on it.
Thanks.
Post Reply