> That seems to point to the bios (re-?)initializing the drive into PIO (polled IO) mode instead of DMA mode. Does the BIOS have the sata ports set to AHCI mode? Is the BIOS up to date? Is the drive tray from a 3rd party, not Lenovo?
I've come to the conclusion that's not the BIOS itself(at least no alone), because the issue happens only after a Restart from within Windows 7 (or Linux) (so not a restart from BIOS eg. after a Save&Exit, or even after just a ctrl+alt+del at the bios or poweron password dialog). Furthermore, if I place only a Kingston (240G) SSD on ESATA port (with nothing else SATA connected, eg. on main drive bay OR optical drive bay) then it works fine until the first win7 Restart which then brings the random write speed down to 2.7MB/sec (around 670 IOPS). In BIOS mode is set to AHCI (instead of IDE). Now, if I do place a Samsung (840EVO 1TB) SSD on the ESATA port, no matter how many restarts, the speed slowdown doesn't happen! But if I place the Samsung on ODD bay (non-lenovo drive caddy), then after a win7 Restart, I experience the slowdown. But not if I place a Kingston SSD on ODD!
I don't know, it's weird!
BIOS is as up to date as they've released it (2011) https://pcsupport.lenovo.com/us/en/products/LAPTOPS-AND-NETBOOKS/IDEAPAD-Z-SERIES-LAPTOPS/IDEAPAD-Z575/downloads/DS027070
Keeping track of the issue here: https://gist.github.com/constantoverride/7fc7974eb0d5dd48f4ebe5bc84e623f3#gistcomment-2713815
Though I've stopped testing stuff for now, until (if ever) I get some better ideas.
Thanks for all the info, Brandan! Appreciate it.