2026-01-08 21:07:15 +08:00

143 lines
7.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>關於仿真過程CPU的使用率 | HiAPI-C# 2025 </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="title" content="關於仿真過程CPU的使用率 | HiAPI-C# 2025 ">
<link rel="icon" href="../../../../img/HiAPI.favicon.ico">
<link rel="stylesheet" href="../../../../public/docfx.min.css">
<link rel="stylesheet" href="../../../../public/main.css">
<meta name="docfx:navrel" content="../../../../toc.html">
<meta name="docfx:tocrel" content="../../toc.html">
<meta name="docfx:rel" content="../../../../">
<meta name="loc:inThisArticle" content="In this article">
<meta name="loc:searchResultsCount" content="{count} results for &quot;{query}&quot;">
<meta name="loc:searchNoResults" content="No results for &quot;{query}&quot;">
<meta name="loc:tocFilter" content="Filter by title">
<meta name="loc:nextArticle" content="Next">
<meta name="loc:prevArticle" content="Previous">
<meta name="loc:themeLight" content="Light">
<meta name="loc:themeDark" content="Dark">
<meta name="loc:themeAuto" content="Auto">
<meta name="loc:changeTheme" content="Change theme">
<meta name="loc:copy" content="Copy">
<meta name="loc:downloadPdf" content="Download PDF">
<script type="module" src="./../../../../public/docfx.min.js"></script>
<script>
const theme = localStorage.getItem('theme') || 'auto'
document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
</script>
</head>
<body class="tex2jax_ignore" data-layout="" data-yaml-mime="">
<header class="bg-body border-bottom">
<nav id="autocollapse" class="navbar navbar-expand-md" role="navigation">
<div class="container-xxl flex-nowrap">
<a class="navbar-brand" href="../../../../index.html">
<img id="logo" class="svg" src="../../../../img/HiAPI.logo.png" alt="">
</a>
<button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation">
<i class="bi bi-three-dots"></i>
</button>
<div class="collapse navbar-collapse" id="navpanel">
<div id="navbar">
<form class="search" role="search" id="search">
<i class="bi bi-search"></i>
<input class="form-control" id="search-query" type="search" disabled placeholder="Search" autocomplete="off" aria-label="Search">
</form>
</div>
</div>
</div>
</nav>
</header>
<main class="container-xxl">
<div class="toc-offcanvas">
<div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel">
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#tocOffcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<nav class="toc" id="toc"></nav>
</div>
</div>
</div>
<div class="content">
<div class="actionbar">
<button class="btn btn-lg border-0 d-md-none" type="button" data-bs-toggle="offcanvas" data-bs-target="#tocOffcanvas" aria-controls="tocOffcanvas" aria-expanded="false" aria-label="Show table of contents">
<i class="bi bi-list"></i>
</button>
<nav id="breadcrumb"></nav>
</div>
<article data-uid="">
<h1 id="關於仿真過程cpu的使用率">關於仿真過程CPU的使用率</h1>
<h2 id="仿真的運算線程">仿真的運算線程</h2>
<p>時序資料的計算是單線程同一時間只使用一個CPU核心其他資料則可以平行計算。</p>
<h3 id="幾何移除">幾何移除</h3>
<p>幾何移除是單線程因為按照次序切削才能得到正確的CWE刀具工件接觸面。幾何移除後的工件幾何表面是淡粉色通常代表該處的物理量尚未計算完成。</p>
<h3 id="物理計算">物理計算</h3>
<p>切削力的計算在取得CWE之後因其不受計算次序影響一般模式下為多線程計算。力矩等物理量也會在這個步驟多線程計算。</p>
<p>溫度的計算必須是時序,所以又會收斂至單線程。</p>
<p>整個加工仿真的計算過程就這樣分分合合,一個步被計算完成後會在該步著上指定指標的顏色。</p>
<h2 id="cpu的使用率">CPU的使用率</h2>
<h3 id="幾何解析度大時">幾何解析度大時</h3>
<p>幾何解析度大的時候,幾何移除較物理計算快,所以仿真過程會看到一大片的淡粉色跟在刀具後面跑。未計算完成的步數有數量限制,幾何移除在該數量內才會運行。所以在物理計算跟不上幾何移除的速度時,粉色步數會維持固定數量。</p>
<p>這種情況主要是CPU的多核運算物理計算比較容易看到CPU多核使用率偏高。</p>
<p><img src="geom-quick.png" alt="幾何解析度大時"></p>
<h3 id="幾何解析度小時">幾何解析度小時</h3>
<p>幾何解析度小的時候,幾何移除較物理計算慢,所以幾乎看不到淡粉色。</p>
<p>這種情況主要是CPU的單核運算幾何計算</p>
<p><img src="geom-slow.png" alt="幾何解析度小時"></p>
<h3 id="平衡狀態">平衡狀態</h3>
<p>如果幾何解析度剛好使得幾何計算與物理計算不互相拖累,那淡粉色區域會出現並在某個長度內變化。此時物理計算不會拖累幾何計算,通常幾何計算才是運算速度的瓶頸。</p>
<h3 id="cpu未跑滿的情況">CPU未跑滿的情況</h3>
<p>CPU沒有跑滿原因可能包含:</p>
<ul>
<li>作業系統為了確保GUI能即時反應預留空間不讓跑。如Windows桌面軟體(如WPF)會把非GUI的執行緒優先權降一個等級。</li>
<li>軟硬件吞吐量對該程序已達極限。
偵測的CPU使用量未達100%但是其他機能如Cache、匯流速度已滿系統環境的智慧功能如CPU預測指令失誤(Branch Misprediction)也不會包含在偵測的CPU使用量中。</li>
</ul>
<p>這部分目前沒有解法。</p>
</article>
<div class="contribution d-print-none">
</div>
<div class="next-article d-print-none border-top" id="nextArticle"></div>
</div>
<div class="affix">
<nav id="affix"></nav>
</div>
</main>
<div class="container-xxl search-results" id="search-results"></div>
<footer class="border-top text-secondary">
<div class="container-xxl">
<div class="flex-fill">
<span> Copyright © 2025 <a href='https://superhightech.com.tw'>Tech Coordinate</a>. All rights reserved. <a href='https://superhightech.com.tw'>超級高科技股份有限公司</a> © 2025 版權所有 </span>
</div>
</div>
</footer>
</body>
</html>