<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Computer - 分类 - Victor's Code Journey</title><link>http://www.victorchu.info/categories/computer/</link><description>Computer - 分类 - Victor's Code Journey</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><managingEditor>victorchu0610@outlook.com (victorchutian)</managingEditor><webMaster>victorchu0610@outlook.com (victorchutian)</webMaster><lastBuildDate>Tue, 11 Mar 2025 19:10:04 +0800</lastBuildDate><atom:link href="http://www.victorchu.info/categories/computer/" rel="self" type="application/rss+xml"/><item><title>系统性能分析-CPU耗时定位</title><link>http://www.victorchu.info/posts/2025/03/34494ba4/</link><pubDate>Tue, 11 Mar 2025 19:10:04 +0800</pubDate><author><name>victorchutian</name></author><guid>http://www.victorchu.info/posts/2025/03/34494ba4/</guid><description><![CDATA[<div class="featured-image">
                <img src="/feature-images/computer.webp" referrerpolicy="no-referrer">
            </div><p>上篇博客介绍了 <a href="/post/2024/09/c8c5ed6/" rel="">CPU异常分析的工具和方法</a>。本文将介绍如何定位 CPU 耗时。</p>]]></description></item><item><title>系统性能分析-CPU-异常分析</title><link>http://www.victorchu.info/posts/2024/09/c8c5ed6/</link><pubDate>Wed, 18 Sep 2024 19:40:00 +0800</pubDate><author><name>victorchutian</name></author><guid>http://www.victorchu.info/posts/2024/09/c8c5ed6/</guid><description><![CDATA[<div class="featured-image">
                <img src="/feature-images/computer.webp" referrerpolicy="no-referrer">
            </div><p>本文记录一些分析 CPU 性能问题的工具&amp;方法。</p>]]></description></item><item><title>CPU分支预测对程序性能的影响</title><link>http://www.victorchu.info/posts/2022/12/3032d41a/</link><pubDate>Tue, 13 Dec 2022 11:33:54 +0800</pubDate><author><name>victorchutian</name></author><guid>http://www.victorchu.info/posts/2022/12/3032d41a/</guid><description><![CDATA[<div class="featured-image">
                <img src="/feature-images/computer.webp" referrerpolicy="no-referrer">
            </div><p>执行下面这段代码，你会发现排序的数组总是比未排序的数组计算快。</p>]]></description></item><item><title>CPU流水线简介</title><link>http://www.victorchu.info/posts/2022/12/efefddd2/</link><pubDate>Thu, 08 Dec 2022 16:54:46 +0800</pubDate><author><name>victorchutian</name></author><guid>http://www.victorchu.info/posts/2022/12/efefddd2/</guid><description><![CDATA[<div class="featured-image">
                <img src="/feature-images/computer.webp" referrerpolicy="no-referrer">
            </div><p>本文是CPU 流水线的简介。</p>]]></description></item><item><title>What Every Programmer Should Know Computer 002</title><link>http://www.victorchu.info/posts/2022/07/9b389bc5/</link><pubDate>Tue, 26 Jul 2022 14:41:28 +0800</pubDate><author><name>victorchutian</name></author><guid>http://www.victorchu.info/posts/2022/07/9b389bc5/</guid><description><![CDATA[<div class="featured-image">
                <img src="/feature-images/computer.webp" referrerpolicy="no-referrer">
            </div><div class="details admonition note open">
    <div class="details-summary admonition-title">
        <span class="icon"><svg class="icon"
    xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path d="M497.9 142.1l-46.1 46.1c-4.7 4.7-12.3 4.7-17 0l-111-111c-4.7-4.7-4.7-12.3 0-17l46.1-46.1c18.7-18.7 49.1-18.7 67.9 0l60.1 60.1c18.8 18.7 18.8 49.1 0 67.9zM284.2 99.8L21.6 362.4.4 483.9c-2.9 16.4 11.4 30.6 27.8 27.8l121.5-21.3 262.6-262.6c4.7-4.7 4.7-12.3 0-17l-111-111c-4.8-4.7-12.4-4.7-17.1 0zM124.1 339.9c-5.5-5.5-5.5-14.3 0-19.8l154-154c5.5-5.5 14.3-5.5 19.8 0s5.5 14.3 0 19.8l-154 154c-5.5 5.5-14.3 5.5-19.8 0zM88 424h48v36.3l-64.5 11.3-31.1-31.1L51.7 376H88v48z"/></svg></span>未完待续<span class="details-icon"><svg class="icon"
    xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 512"><!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"/></svg></span>
    </div>
    <div class="details-content">
        <div class="admonition-content">持续更新中&hellip;</div></div></div>
<p>上一篇我们介绍了早期计算机和现代计算机构成位的不同硬件，计算机最底层的抽象“从硬件层抽象出二进制值”，以及二进制值的简单计算(和对应的门电路)。这一篇文章，将介绍一些更复杂的门电路(Gate Combinations )。</p>
<blockquote>
  <p>复杂门电路的重要设计思想：Design small circuits to be used in a bigger circuit。</p>

</blockquote>]]></description></item><item><title>What Every Programmer Should Know Computer 001</title><link>http://www.victorchu.info/posts/2022/07/231ca7f/</link><pubDate>Mon, 25 Jul 2022 16:43:06 +0800</pubDate><author><name>victorchutian</name></author><guid>http://www.victorchu.info/posts/2022/07/231ca7f/</guid><description><![CDATA[<div class="featured-image">
                <img src="/feature-images/computer.webp" referrerpolicy="no-referrer">
            </div><p>本文的目的是快速了解计算机系统。文章标题模仿了《What Every Programmer Should Know About Memory》</p>]]></description></item><item><title>操作系统:进程&amp;线程&amp;协程</title><link>http://www.victorchu.info/posts/2022/05/5211c8b3/</link><pubDate>Sat, 14 May 2022 15:07:33 +0800</pubDate><author><name>victorchutian</name></author><guid>http://www.victorchu.info/posts/2022/05/5211c8b3/</guid><description><![CDATA[<div class="featured-image">
                <img src="/feature-images/computer.webp" referrerpolicy="no-referrer">
            </div><p>本文会介绍操作系统中的进程,线程和协程。</p>
<p><img class="tw-inline" loading="lazy" src='/posts/2022/05/5211c8b3/cover.webp'    height="494" width="493"></p>]]></description></item><item><title>网络 IO 模型</title><link>http://www.victorchu.info/posts/2021/03/e424f5f0/</link><pubDate>Mon, 08 Mar 2021 14:25:00 +0800</pubDate><author><name>victorchutian</name></author><guid>http://www.victorchu.info/posts/2021/03/e424f5f0/</guid><description><![CDATA[<div class="featured-image">
                <img src="/feature-images/net.webp" referrerpolicy="no-referrer">
            </div><p>在《UNIX网络编程》中介绍了5种I/O模型：阻塞I/O、非阻塞I/O、I/O复用、SIGIO、异步I/O; Unix的I/O模型，一个输入操作通常包括两个不同的阶段：</p>
<ul>
<li>等待数据准备好；</li>
<li>从内核向进程复制数据。</li>
</ul>
<p>对于一个套接字的输入操作,第一步通常涉及等待数据从网络到达，当所等待分组到达时，被复制到内核的某个缓冲区;第二步把数据从内核缓冲区复制到应用进程缓冲区。</p>
<p>网络应用需要处理的无非就是两大类问题，网络IO，数据计算。相对于后者，网络IO的延迟，给应用带来的性能瓶颈大于后者。网络IO的模型大致有如下几种：</p>
<ul>
<li>阻塞IO（bloking IO）</li>
<li>非阻塞IO（non-blocking IO）</li>
<li>多路复用IO（multiplexing IO）</li>
<li>信号驱动式IO（signal-driven IO）</li>
<li>异步IO（asynchronous IO）</li>
</ul>]]></description></item><item><title>RAID技术</title><link>http://www.victorchu.info/posts/2021/02/f1f49001/</link><pubDate>Thu, 18 Feb 2021 22:44:46 +0800</pubDate><author><name>victorchutian</name></author><guid>http://www.victorchu.info/posts/2021/02/f1f49001/</guid><description><![CDATA[<div class="featured-image">
                <img src="/feature-images/storage.webp" referrerpolicy="no-referrer">
            </div><p>RAID （ Redundant Array of Independent Disks ）即独立磁盘冗余阵列，通常简称为磁盘阵列。简单地说， RAID 是由多个独立的高性能磁盘驱动器组成的磁盘子系统，从而提供比单个磁盘更高的存储性能和数据冗余的技术。</p>]]></description></item><item><title>操作系统-IO</title><link>http://www.victorchu.info/posts/2021/02/d9090a0a/</link><pubDate>Tue, 16 Feb 2021 20:14:27 +0800</pubDate><author><name>victorchutian</name></author><guid>http://www.victorchu.info/posts/2021/02/d9090a0a/</guid><description><![CDATA[<div class="featured-image">
                <img src="/feature-images/computer.webp" referrerpolicy="no-referrer">
            </div><p>先介绍下系统的IO原型架构。CPU 通过内存总线(memory bus)连接到系统内存。显卡或者其他高性能 I/O 设备通过常规的I/O 总线(I/O bus)连接到系统，在许多现代系统中会是 PCI 或它的衍生形式。最后，更下面是外围总线(peripheral bus)，比如 SCSI、SATA 或者 USB。它们将最慢的设备连接到系统，包括磁盘、鼠标及其他类似设备。</p>
<p><figure><img  loading="lazy" src='/posts/2021/02/d9090a0a/architecture.webp'    height="286" width="350"><figcaption class="image-caption">IO原型架构</figcaption>
</figure></p>
<p>考虑物理布局及造价成本。越快的I/O 设备的总线越短，因此高性能的内存总线没有足够的空间连接太多设备。另外，在工程上高性能总线的造价非常高。所以，系统的设计采用了这种分层的方式，这样可以让要求高性能的设
备（比如显卡）离 CPU 更近一些，低性能的设备离 CPU 远一些。将磁盘和其他低速设备连到外围总线的好处很多，其中较为突出的好处就是你可以在外围总线上连接大量的设备。</p>]]></description></item></channel></rss>