|
|
Log in / Subscribe / Register

Tratt: Fast Enough VMs in Fast Enough Time

Tratt: Fast Enough VMs in Fast Enough Time

Posted Feb 10, 2012 23:41 UTC (Fri) by daglwn (guest, #65432)
In reply to: Tratt: Fast Enough VMs in Fast Enough Time by khim
Parent article: Tratt: Fast Enough VMs in Fast Enough Time

The trace cache was not a tracing JIT and any sense. It wasn't even a JIT. It simply stored pre-decoded micro-ops as a trace (in the sense of branches going a certain way) in the instruction cache. It did not attempt to do the kind of semantic optimization a JIT would do. It simply elided branches. If the branch predictor generated a sequence of predictions that mapped to a previously-seen trace, the trace cache would feed the micro-ops directly to the core.

The trace cache failed because predicting multiple branches ahead of time is a failed exercise. You'll end up backtracking and flushing the pipeline a whole lot. Hence the power drain.

A closer analogue to a JIT would be a hardware value predictor. Those never really took off either because predicting anything other than 0 is pretty tough.


The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:

Note: you can avoid this step in the future by logging into your LWN account.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds