个人简介

Echo Blog


江湖无名 安心练剑
  • Memory 内存知识-29-NUMA 内存策略与 swapping
    Swapping and Policies If physical memory runs out, the system has to drop clean pages and save dirty pages to swap. The Linux swap implementation discards(丢弃) node information when it writes page...
    2019-05-10 03:08:59 | Memory
  • Memory 内存知识-29-NUMA 内存策略
    Memory Policy The idea behind defining a memory policy is to allow existing code to work reasonably well in a NUMA environment without major modifications. The policy is inherited by child proces...
    2019-05-10 03:08:59 | Memory
  • Memory 内存知识-29-NUMA 概览
    NUMA For NUMA programming everything said so far about cache optimizations applies as well. The differences only start below that level. NUMA introduces different costs when accessing different ...
    2019-05-10 03:08:59 | Memory
  • Memory 内存知识-28-多线程优化之并发
    Multi-Thread Optimizations When it comes to multi-threading, there are three different aspects of cache use which are important: Concurrency Atomicity Bandwidth T...
    2019-05-10 03:08:59 | Memory
  • Memory 内存知识-28-多线程优化之带宽
    Bandwidth Considerations When many threads are used, and they do not cause cache contention by using the same cache lines on different cores, there still are potential(潜在的) problems. Each process...
    2019-05-10 03:08:59 | Memory
  • Memory 内存知识-28-多线程优化之原子性
    Atomicity Optimizations If multiple threads modify the same memory location concurrently, processors do not guarantee any specific result(处理器不保证任何特定结果). This is a deliberate(商榷) decision made to ...
    2019-05-10 03:08:59 | Memory
  • Memory 内存知识-27-Prefetch 预取
    Prefetching 目的 The purpose of prefetching is to hide the latency of a memory access. 直接预取,可以隐藏内存访问的延迟。 The command pipeline and out-of-order (OOO) execution capabilities of today’s processors c...
    2019-05-10 03:08:59 | Memory
  • Memory 内存知识-26-024-TLB 访问优化
    Optimizing TLB Usage There are two kinds of optimization of TLB usage. 降低程序使用的 page 数量 The first optimization is to reduce the number of pages a program has to use. This automatically results i...
    2019-05-10 03:08:59 | Memory