Dennis Huang

@lkmem

學習 linux kernel 中! memory management

Joined on Sep 21, 2016

  • tags: `stv Project name: OpenTasks Team member 109598074 黃國豪 Table of Contents 新增任務 OT-01 ==Test Case Specification ID:==
     Like  Bookmark
  • void ConsoleOutput::PutInt(int num) { ASSERT(putBusy == FALSE); char str[13]; int size = sprintf(str, "%d\n", num); WriteFile(writeFileNo, str, size); putBusy = TRUE; kernel->interrupt->Schedule(this, ConsoleTime, ConsoleWriteInt); }
     Like  Bookmark
  • 要求 Gitlab Docker Jenkins Docker Multi-dockerized wbds on a single Host http redirect to https 環境 Ubuntu Server 20.04
     Like  Bookmark
  • Assignment 3 std::ifstream ifile(argv[1]); std::string input((std::istreambuf_iterator<char>(ifile)), (std::istreambuf_iterator<char>() )); Terminal(std::string input):_input(input) { std::regex re("(\n|\r)+"); input = std::regex_replace(input, re, " "); }
     Like  Bookmark
  • 記憶體是 Kernel 裡最複雜的一個章節,就讓我們一起體會他的奧妙 前面的介紹著重在 physical memory 是如何管理,後面則是 virtual kernel memory space 的記憶體管理,virtual user space 會在另外的章節提到 NUMA 首先, memory 有分為 uniform memory access(UMA) 跟 non-uniform memory access(NUMA)兩種 UMA: 每個 processor accesses memory 的速度都是一樣的 NUMA: 每個 processor accesses memory 的速度不一樣,local 的比較快,以下圖為例 圖[1] Node
     Like  Bookmark
  • void do_something() { ... #ifdef CONFIG_WORK_HARD do_work_fast(); #else do_work_at_your_leisure(); #endif ... }
     Like  Bookmark