News for hackers. Stuff that matters.
Re:Intel SA-00145: Lazy FP State Restore by kinghajj on Wednesday June 13, 2018 @08:16PM (#17308188)
What are your thoughts on the Mill CPU team's claims re: their ISA allowing compilers feasibly to schedule operations statically?
Re:Intel SA-00145: Lazy FP State Restore by Taniwha on Wednesday June 13, 2018 @08:53PM (#17308371)
you can do this to some degree on most CPU's - moving loads away from their results being used - compilers, esp on RISC machines with lots of registers, do this today

VLIW machines allow you to provide hints about instruction level parallelism without all the superscalar on-the-fly analysis of instruction level data dependencies (so the hardware can do all that rescheduling on the fly).

I think that if interlock-free software scheduled CPUs allowed us to reach 20GHz clock speeds where complex superscalar machines were stuck at 3GHz we'd all be jumping ship - but they're not

Re:Intel SA-00145: Lazy FP State Restore by AstralStorm on Wednesday June 13, 2018 @11:18PM (#17308995)
Essentially the CPU is running a JIT branch optimization and speculative loads which cannot ever be matched by static optimization. The interesting part is that any JIT compiler that is so dynamic in performance will have these problems.

The solution might be to actually prevent some kind of security important code from being optimized in this way. Say, forcing full cache sync in-order execution for parts of code with no resource sharing between cores.

Re:Intel SA-00145: Lazy FP State Restore by Taniwha on Thursday June 14, 2018 @03:06PM (#17314446)
hmm ... I wonder if there are JiT compilers with smallish caches that are susceptible to these attacks (but over much larger time scales)
Re:Intel SA-00145: Lazy FP State Restore by blattimwind on Thursday June 14, 2018 @08:39AM (#17311152)
> I think that if interlock-free software scheduled CPUs allowed us to reach 20GHz clock speeds where complex superscalar machines were stuck at 3GHz we'd all be jumping ship - but they're not

Additionally, realize that clock speeds are not a relevant performance metric. Maybe, perhaps, it's possible for a software scheduled CPU to run at 2*n GHz, but that's not interesting, if it's slower in real-world workloads than todays tech at n GHz. And for breadth-deployment in data centers we're mostly looking at throughput per Watt. CPUs with high clock speeds don't do well in that area because semiconductor physics.

Re:Intel SA-00145: Lazy FP State Restore by Taniwha on Thursday June 14, 2018 @03:05PM (#17314429)
right, that's why we don't have really high clock speeds - that's not the point here
Re:Intel SA-00145: Lazy FP State Restore by Symmetry on Thursday June 14, 2018 @11:39AM (#17312453)
They execute everything in order on a fairly short pipeline but they engage in speculative execution just like everyone else. Here's their talk on their branch predictor.

https://millcomputing.com/docs/prediction/

There's a lot less mischief you can get up to when you only execute a couple of instructions beyond a mispredicted branch rather than a hundred but mischief can't be theoretically ruled out entirely.