Why the InvertPageDown/Up function do cache flush

34 views
Skip to first unread message

mark tsai

unread,
Jul 22, 2022, 3:44:45 AMJul 22
to stressapptest-discuss
Why the InvertPageDown/Up function need cache flush?

Wasn't it assume on a SMP system? 
Or will other testing thread use the page which the inversion thread use to do some io operation?

As when I remove the cache operation in  InvertPageDown/Up, the data inversion thread become 35% faster on my arm64 platform.

Nick Sanders

unread,
Jul 22, 2022, 12:42:45 PMJul 22
to stressappt...@googlegroups.com
Since multiple passes of invert are done on the same page in sequence, and that page may be smaller than cache size. it's possible that the speedup is due to the inverts never actually making it to DRAM. It depends on your specific system config.

--

---
You received this message because you are subscribed to the Google Groups "stressapptest-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stressapptest-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/stressapptest-discuss/86e917f6-dde9-4371-909d-749ab73cee66n%40googlegroups.com.

mark tsai

unread,
Jul 24, 2022, 9:36:25 PMJul 24
to stressapptest-discuss

Hi Nick,

> it's possible that the speedup is due to the inverts never actually making it to DRAM

I think you're right, I will try to do more investigation.
Thanks for your kindly reply!
Reply all
Reply to author
Forward
0 new messages