文章分类 -  内核

摘要:From : https://www.the-paper-trail.org/post/2008-11-27-consensus-protocols-two-phase-commit/ For the next few articles here, I’m going to write about 阅读全文
posted @ 2021-01-14 21:36 CobbLiu 阅读(78) 评论(0) 推荐(0) 编辑
摘要:The majority of modern Linux distributions default to the ext4 filesystem, just as previous Linux distributions defaulted to ext3, ext2, and—if you go 阅读全文
posted @ 2020-03-06 20:33 CobbLiu 阅读(224) 评论(0) 推荐(0) 编辑
摘要:Suppose, not entirely hypothetically, that you want to test how well some new storage hardware and disks stand up to a lot of write cache flush operat 阅读全文
posted @ 2020-03-03 10:47 CobbLiu 阅读(868) 评论(0) 推荐(0) 编辑
摘要:futex (fast userspace mutex) 是Linux的一个基础构件,可以用来构建各种更高级别的同步机制,比如锁或者信号量等等,POSIX信号量就是基于futex构建的。大多数时候编写应用程序并不需要直接使用futex,一般用基于它所实现的系统库就够了。 futex的性能非常优异,它 阅读全文
posted @ 2019-12-26 23:46 CobbLiu 阅读(523) 评论(0) 推荐(0) 编辑
摘要:Linux Block 层在 Linux 内核设计之初就作为几大子系统存在,当然这也是得益于他的前辈 Unix 等优秀的设计。作为 IO 子系统的中间层,他为上层输出接口,为下层提供数据,像个勤劳的小蜜蜂,本文介绍通用块层中的最具传奇色彩的 bio,他就像是一个原子,是在整个 block 层的最小单 阅读全文
posted @ 2019-12-03 10:32 CobbLiu 阅读(3497) 评论(0) 推荐(0) 编辑
摘要:The basic container for block I/O within the kernel is the bio structure, which is defined in <linux/bio.h>. This structure represents block I/O opera 阅读全文
posted @ 2019-12-03 10:30 CobbLiu 阅读(226) 评论(0) 推荐(0) 编辑
摘要:自旋锁的初衷:在短期间内进行轻量级的锁定。一个被争用的自旋锁使得请求它的线程在等待锁重新可用的期间进行自旋(特别浪费处理器时间),所以自旋锁不应该被持有时间过长。如果需要长时间锁定的话, 最好使用信号量。 单处理器的自旋锁: 首先,自旋锁的目的如果在系统不支持内核抢占时,自旋锁的实现也是空的,因为单 阅读全文
posted @ 2019-12-03 10:05 CobbLiu 阅读(822) 评论(0) 推荐(0) 编辑
摘要:概述 LINUX 内核中 SCSI 子系统由 SCSI 上层,中间层和底层驱动模块 [1] 三部分组成,主要负责管理 SCSI 资源和处理其他子系统,如文件系统,提交到 SCSI 子系统中的 IO 请求。因此,理解 SCSI 子系统的 IO 处理机制对理解整个 SCSI 子系统就显的十分重要,同时也 阅读全文
posted @ 2019-11-20 16:48 CobbLiu 阅读(1847) 评论(0) 推荐(0) 编辑
摘要:In previous posts on vm.swappiness and using RAM disks we talked about how the memory on a Linux guest is used for the OS itself (the kernel, buffers, 阅读全文
posted @ 2019-11-04 15:14 CobbLiu 阅读(309) 评论(0) 推荐(0) 编辑
摘要:The page cache caches pages of files to optimize file I/O. The buffer cache caches disk blocks to optimize block I/O.Prior to Linux kernel version 2.4 阅读全文
posted @ 2019-10-24 16:51 CobbLiu 阅读(465) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示