Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If BOLT can work directly on binaries, is there anything stopping it from being integrated as a kernel module into the OS, so that binaries are continually being profiled and optimized?

It seems to me that an optimized OS image could be also be created.



That doesn't seem like it would be profitable. Profiling the running process, processing the profile, and then relinking the binary on a single host wouldn't pay off compared to profiling in the large, relinking the program once and redeploying it at scale. Peak optimization is expensive.


First, if it worked without intervention it could be used on desktop and mobile OSs, not just servers.

Second, I already mentioned what you suggested.


Relinking binaries running on a phone sounds even less profitable. How much battery energy are you willing to waste here?


This isn't a linker, so there is no re-linking.

> even less profitable

What does this mean? If a company like google restructured their binaries to get a 15% speedup, that would be huge.

> How much battery energy are you willing to waste here?

What waste is happening? This doesn't have to happen on the phone. Even then, android already does optimization passes when phones are plugged in.


My phone runs approximately zero new binaries every day. I'd happily let my phone optimize itself while charging so that netflix, youtube, or other heavy CPU users use less battery.


You seem awfully desperate to guess at the limitations of a technique you knew nothing about a day ago.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: