Page 1 of 2

L2 cache cleared on sleep

Posted: Mon Aug 07, 2017 2:39 pm
by minhgi
PrimoCache version: 3.0.0 beta
Cache Settings: 1GB L1 / 32GB L2 / integrated cache strategy with 10 sec defer write
Windows OS: Windows 10 Creator updates
Hardware Information (CPU/Motherboard/Memory/Harddisks): Lenovo Yoga12 / Broadwell i7-5600U / 8GB memory / 1TB Toshiba
Description:

L2 cache would get cleared when laptop sleep and L1 memory cache is enabled. The laptop would attempt sleep but it would hard shutdown after 5 minutes attempting to sleep. To work around the bug, and make the laptop sleep normally, I would have to do this work arround. I would enable flush l1 on sleep, enable invisible memory, and hybrid sleep, then let it hybrid sleep once. Wake up the laptop and disable the hybrid sleep, that when laptop would go into into s3 sleep normally. Wierd. Disabling L1 cached completely will remediate the problem as well.

When hybrid sleep is used, the sleep function work fine. Waking up the laptop and reboot the it, the boot time is slower than a cold reboot, that cached, as if some of the boot cached get push out of L2 during hybrid sleep. Work ok for normal desktop since hybrid sleep is the default sleep mode.

This have been tested on 3 different laptops brand. Lenovo \ Dell \ HP. Since the 3.0.0 beta release, I have been using the hybrid sleep for the laptop but this getting frustrating since I want my laptop to use the L1, sleep fast, and boot fast.

Re: L2 cache cleared on sleep

Posted: Fri Aug 11, 2017 6:58 am
by Support
This problem does not happen in 2.x versions, right?
Could you help us test the case in which L2 writing cache is disabled (that is, L2 is only used for reading cache)?
Thank you very much!

Re: L2 cache cleared on sleep

Posted: Fri Aug 11, 2017 10:07 am
by minhgi
From my past usage of v2, it normal S3 sleep had been working, but this was introduce with v3 beta and Windows 10 Anniversary Edition. I did the following test, with these setting enable.

Setup 1: Normal sleep, L2 Read Cache, Flush to L1 on hybrid sleep
Result: Normal sleep fail

Setup 2: Hybrid sleep, L2 Read Cache, Flush to L1 on hybrid sleep
Result: Hybrid sleep work

I am not sure what is happening with the normal sleep even when read only L2 was enabled. I have tested setup twice and provided the two minidumps.

Re: L2 cache cleared on sleep

Posted: Mon Aug 14, 2017 1:47 pm
by minhgi
update to l2 boot cache data getting push out after 3rd or 4th hybrid sleep. On full reboot, about 2GB of boot cache was cleared and have to be recache. It a waste of good data since without it, the boot time is just like booting straight from the hard drive. The program data still remain cached on the laptop. Anyway, I hope that the issue for normal S3 sleep get fix.

Re: L2 cache cleared on sleep

Posted: Mon Aug 14, 2017 4:02 pm
by Support
We checked the dump files and see the cause of the problem. However, we still don't know why the normal sleep fails but hybrid sleep works and why it also works when L1 cache is disabled. We're still checking this problem and will update the topic when we find anything.

Re: L2 cache cleared on sleep

Posted: Thu Aug 17, 2017 8:36 pm
by Jaga
I don't use Sleep mode anymore because of issues like this (not just with Primocache). It's just too problematic with many devices/drivers out there.

Re: L2 cache cleared on sleep

Posted: Fri Aug 18, 2017 12:25 pm
by minhgi
Yah...Windows 10 Anniversary sure great but break allot of drivers. Anyway, if we don't report any bug and not try to get it fix, well it eventually be become annoying when performance degrade after several sleeps.

Maybe I should migrate to SSD complete. My L2 is actually a 256GB m2. sata. Don't know, I still like hearing the hard drive making noise when it read/write since it sound like it actually working/appealing. May be I still old school.

Re: L2 cache cleared on sleep

Posted: Sat Aug 19, 2017 3:42 pm
by Jaga
No, you're not that old school. I still remember (and like) the flashing dot in the upper corner of the screen indicating HDD activity. I think that went back to Windows 95/98/98se.

I think Sleep mode (at it's core) is problematic. Advanced tools like Primocache have a hard time becoming compatible. It would be nice, but I'm not pushing for it.

Re: L2 cache cleared on sleep

Posted: Wed Sep 20, 2017 2:50 pm
by minhgi
Hi Support. Please mark this issue as fixed. Awaiting for the final stable release and hope to see new features added as well.

Re: L2 cache cleared on sleep

Posted: Thu Sep 21, 2017 4:10 am
by Support
@minhgi, Many thanks for the help on this issue. We'll integrate the fix into the next release.