原创 使用kdb和kgdb調試Linux內核(1)

This article was firstly published from http://oliveryang.net. The content reuse need include the original link.

原创 使用kdb和kgdb調試Linux內核(2)

This article was firstly published from http://oliveryang.net. The content reuse need include the original link.

原创 x86 TSC使用的那些坑

This article was firstly published from http://oliveryang.net. The content reuse need include the original link.

原创 以太網卡雜記之MAC和PHY

網卡工作在osi的最後兩層,物理層和數據鏈路層。   物理層的芯片稱之爲PHY。物理層定義了數據傳送與接收所需要的電與光信號、線路狀態、時鐘基準、數據編碼和電路等,並向數據鏈路層設備提供標準接口。   以太網卡中數據鏈路層的芯片稱之爲MA

原创 Linux調度器性能分析 - 1

This article was firstly published from http://oliveryang.net. The content reuse need include the original link.

原创 Linux 塊設備驅動 (3)

1. 背景 在 Linux Block Driver - 2 中,我們在 Sampleblk 驅動創建了 Ext4 文件系統,並做了一個簡單的 fio 測試。 本文將繼續之前的實驗,圍繞這個簡單的 fio 測試,探究 Linux 塊設備驅

原创 Hyper-V 虛擬設備簡介

This article was firstly published from http://oliveryang.net. The content reuse need include the original link. Simi

原创 Linux 塊設備驅動 (5)

1. 背景 本系列文章整體脈絡回顧, Linux Block Driver - 1 介紹了一個只有 200 行源碼的 Sampleblk 塊驅動的實現。 Linux Block Driver - 2 中,在 Sampleblk 驅動創建

原创 Linux文件系統基礎(3)

本文首發於 http://oliveryang.net,轉載時請包含原文或者作者網站鏈接。 文件系統 mount 和 Super Block Samplefs day2 的代碼涉及到了文件系統 mount 和 Super Blo

原创 Linux 塊設備驅動 (4)

1. 背景 讓我們梳理一下本系列文章整體脈絡。 首先,Linux Block Driver - 1 介紹了一個只有 200 行源碼的 Sampleblk 塊驅動的實現。 然後,在 Linux Block Driver - 2 中,我們在

原创 數據保護的那點兒事兒(1)

本文首發於http://oliveryang.net,轉載時請包含原文或者作者網站鏈接。 數據保護的那點兒事兒 數據保護就是保護數據使其免於數據損壞(Data Corruption)和數據丟失(Data Loss)的過程。常見的數據保

原创 Linux 塊設備驅動 (2)

1. 背景 在 Linux Block Driver - 1 中,我們實現了一個最簡塊設備驅動 Sampleblk。這個只有 200 多行源碼的塊設備驅動利用內存創建了標準的 Linux 磁盤。我們在基於 Linux 4.6.0 內核的環

原创 Linux NUMA優化(1)

本文首發於http://oliveryang.net,轉載時請包含原文或者作者網站鏈接。 x86 NUMA的那些概念 1. 多處理器架構 理解NUMA的概念首先要熟悉多處理器計算機系統的幾個重要概念。 1.1 SMP vs. AMP

原创 Linux 塊設備驅動 (6)

1. 背景 本系列文章整體脈絡回顧, Linux Block Driver - 1 介紹了一個只有 200 行源碼的 Sampleblk 塊驅動的實現。 Linux Block Driver - 2 中,在 Sampleblk 驅動創建

原创 Linux內核搶佔機制 - 實現

本文首發於 http://oliveryang.net,轉載時請包含原文或者作者網站鏈接。 本文主要圍繞 Linux 內核調度器 Preemption 的相關實現進行討論。其中涉及的一般操作系統和 x86 處理器和硬件概念,可能也適用