Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
ext4 mballoc之buddy算法
buddy bitmap 根据 Ext4文件系统介绍 理论篇 nginux的博客 CSDN博客 我们知道磁盘上有1block 大小 默认4K data block bitmap 每bit位代表一个block的使用情况 1代表占用 0代表空闲
文件系统与存储
Linux
操作系统基本原理
文件系统
Linux源码编译开启cgroup blk限制io性能
编译选项 内核5 9 General Setup gt Control Group support gt io controller Enable the block layer gt Block layer bio throttling
文件系统与存储
cgroup
linux操作系统
内核
ext4 buddy块分配算法源码剖析
概述 ext4 buddy块分配算法的函数是ext4 mb regular allocator 阅读本文之前需要先看下ext4 mballoc之buddy算法 nginux的博客 CSDN博客 ext4 mb regular allocat
文件系统与存储
Linux
linux操作系统
内核
文件系统
buffer_head数据结构
内核版本 5 9 0 数据结构 Historically a buffer head was used to map a single block within a page and of course as the unit of I O
文件系统与存储
Linux
操作系统基本原理
文件系统
Linux read的核心函数generic_file_buffered_read
内核 5 9 0 流程图 generic file buffered read一种调用路径 cat某个文件触发 0 ondemand readahead mapping 0xffff888005c61340 ra 0xffff8880059
文件系统与存储
文件系统
Linux内核
IO
Linux vfs各种operation操作介绍
1 ext4文件系统定义的各种操作 普通文件操作 const struct file operations ext4 file operations llseek ext4 llseek read iter generic file rea
文件系统与存储
Linux
操作系统基本原理
文件系统
linux的dirty page回写磁盘过程中是否允许并发写入更新page?
概述 众所周知Linux内核write系统调用采用pagecache机制加速写入过程 避免write系统调用长时间block应用进程 用户态进程执行write调用的时候 内核只是将用户态buffer copy到内核的pagecache当中
内存子系统
文件系统与存储
Linux
服务器
Linux内核
Linux bio数据结构
数据结构 main unit of I O for the block layer and lower layers ie drivers and stacking drivers struct bio struct bio bi next
文件系统与存储
Linux
操作系统基本原理
文件系统
ext4 delay allocation之ext4_writepages页回写源码剖析
概述 ext4 write写入pagecache之后 再合适的时机会回写到磁盘 ext4文件系统中是通过ext4 writepages写入磁盘 本来将在源码角度分析该过程 建议先参照ext4 delay allocation数据结构 ngi
文件系统与存储
Linux
文件系统
Linux内核
Ext4文件系统介绍 - 理论篇
Overview ext4文件系统分割成多个block groups 为了解决碎片化问题 block allocator尽量将一个文件的block放在一个group中 block groups的size通过sb s blocks per g
文件系统与存储
Linux
文件系统
Linux内核
IO
Linux 读文件 - readahead预读算法
顺序读场景 intmain charc 4096 intin 1 in open news txt O RDONLY intindex 0 while read in c 4096 4096 printf index d len ld n
文件系统与存储
Linux
操作系统基本原理
文件系统
新文件创建inode分配路径
0 ext4 new inode handle 0x0
文件系统与存储
文件系统
Linux
存储