TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How to turn off x86 Pipelining

9 点作者 vegetablepotpie11 个月前
Product Owner wants to reduce work-in-progress (WIP). After a long conversation with a micro architecture guy, to make a long story short, I have a user story to turn off instruction pipelining on our production servers.<p>The story I have is only 1 story point so I need something that will not take more than a day to implement. So I need something that I can change to our software and nothing weird like changing BIOS settings or anything like that where I need to get IT involved.

10 条评论

fragmede11 个月前
you&#x27;re being hazed, this isn&#x27;t a real task. you can&#x27;t globally turn off instruction pipelining on x86, but even if you could that wouldn&#x27;t be 1 point. You can do some stuff in a specific program to disable pipelining, but then you have to performance test that and there&#x27;s no way that&#x27;s a 1 point thing. Your choice is to suffer quietly, or make so much noise (email everyone in IT giving the person&#x27;s name that told you to do this, exposing them) that they regret giving you this task.<p>though, you haven&#x27;t given enough context, so I could be totally off base. if you&#x27;re working on a program and there&#x27;s a particular part that you&#x27;ve been tasked to examine, you could put the appropriate x86 asm around that code to disable pipelining, which is an interesting idea, but that&#x27;s still some heavy deep optimization work that would a lot more analysis than just &quot;disable pipelining&quot;. they spent a lot of money to put it in CPUs for a reason.
elmerfud11 个月前
I submit to you that there should have been a research spike of 8 to 13 points which was done first . The results of that spike would be your story and the preceding spike would have given you the implementation information. Even if the implementation is only 1 point, the documentation around why this is done would be more than 1 point. Because if you&#x27;re not documenting in extreme detail on why this is done you&#x27;re building tech debt because no one will remember.<p>The reason I say there needs to be a very detailed research spike is because this is almost always the wrong solution to whatever the underlying problem is. A 1 point story with no implementation details means this came about from some pontificating around theory without any actual a&#x2F;b testing.<p>Sorry I don&#x27;t have the answer to this specific thing other than you say it seems your entire process is broken here and you need a architect or sr engineer to push back on this. At minimum to provide implementation details but ideally to actually have the research to support it.
shoo11 个月前
<p><pre><code> as hypothetical product owner given i heard about the benefits of minimising WIP to improve cashflow in manufacturing processes and given i believe what is best in context A is also best in unrelated context B provided similar words are used when i heard that our production CPUs use pipelining, which is a form of WIP instructions for the processor then i wanted to disable it so that we can unlock the cash trapped in our production server CPU instruction pipelines</code></pre>
codingdave11 个月前
If you don&#x27;t know how you are solving this problem, how did it get pointed as a 1 point story?<p>There is a definitely a process problem going on in your organization if you are here asking this question. Either you should have gotten this answer from your &quot;long conversation with a micro architecture guy&quot; before pointing the story, or your PO should not have said this story is ready. Or both.
toast011 个月前
I don&#x27;t think this is possible. It&#x27;s certainly not desirable.<p>The closest you might be able to come is working to disable as much of the l1&#x2F;l2&#x2F;l3 caches, but I don&#x27;t know if youncan do that in userland.<p>You might be able to do OS settings to run your cpu at a very low clock rate and pretend that&#x27;s similar.<p>Even ancient chips like the 8088 and 6502 had some pipelining.
jacobp10011 个月前
Sounds like they just want to know what the impact is - and don’t want you to spend too long since it’s only 1 point. Just say you’re not sure it can be done easily if at all, and ask how much time they want you to spend on the task
tuckerpo11 个月前
There may be some MSRs that you can poke to read about the state of pipelining but I highly doubt it can be disabled on x86 (or any superscalar architecture, really).
RecycledEle11 个月前
It is impossible to turn off instruction pipelining.<p>If it were possible, it would be vastly more complicated than changing BIOS settings.
brudgers11 个月前
<i>Product Owner wants to reduce work-in-progress (WIP).</i><p>What is the <i>specific</i> problem they are trying to solve?<p>What parts of the <i>actual implementation</i> are contributing to that problem?<p>Which contributing parts are less important than solving the problem?<p>Or to put it another way, turning off x86 pipelining is probably an X creating an XY problem.<p>Good luck.
lifeinthevoid11 个月前
No offence, but I have trouble imaging a profitable company where this scenario has taken place. Very weird question and context.
评论 #40650432 未加载