Posts Tagged ‘cache’

What is direct I/O anyway?

Few days ago I’ve written a post explaining how to do a direct I/O in Python. But then I thought that it might be a good idea to explain what direct I/O is. So, here we go. As surprising as it is, when you write some information to the disk, it doesn’t get there immediately. […]

Swap vs. no swap

Table of contents Introduction The obvious Memory leaks Hibernation The less obvious I/O cache Bottom line IntroductionBACK TO TOC This short article deals with simple question. How exactly lack of swap partition affects Linux’s performance. What would happen if you turn the swap off? The obviousBACK TO TOC Memory leaksBACK TO TOC The obvious price […]

New article – Aligned vs. unaligned memory access

This concludes a long research that I’ve made. I wanted to know if unaligned memory access is really that bad, or not a big deal. Eventually I made some quiet interesting discoveries. Read on.

Aligned vs. unaligned memory access

Table of contents Introduction The obvious Memory leaks Hibernation The less obvious I/O cache Bottom line Introduction The theory Measurements Implementation Meet the hardware Implementation details The code The results Conclusions Postscript IntroductionBACK TO TOC So many times I’ve heart people mentioning aligned memory access. I even protected memory alignment considerations when argued over some […]

SMP affinity and proper interrupt handling in Linux

Introduction Hardware interrupts has always been expensive. Somehow these small pieces of software consume so much CPU power and hardware and software engineers has always been trying to change this state of affairs. Some significant progress has been made. Still hardware interrupts consume lots of CPU power. You will rarely see effects of interrupt handling […]