本文主要包括以下内容的介绍
计算机架构
软件性能设计原则(不要让硬件成为瓶颈):
CDN Cache系统模型设计
Net 模块设计
• 完美hash( Perfect Hash Function )
• PHF场景&作用
• DIRECT IO写裸盘、绕过FS、不使用page cache
• 顺序写/随机读,stripe 8MB/block 512B
• mem_buf在内存做写合并
• 省去open和close系统调用
• MemTotal = LowTotal + HighTotal
• MemFree = LowFree + HighFree
• Slab = SReclaimable + SUnreclaimable
• Active = Active(anon) + Active(file)
• Inactive = Inactive(anon) + Inactive(file)
• Buffers + Cached = Active(file) + Inactive(file)
• AnonPages + Buffers + Cached = Active + Inactive
• SwapTotal = SwapFree + SwapCached