Posts Tagged ‘speed’

pthread mutex vs pthread spinlock

Update 06/16/2009: On several occasions, commentators to this article pointed out that this post is somewhat incomplete. Therefore, before I continue, I would like to make some things clear. Before considering the code below, please note that spinlocks are totally useless on uni-processor computers. This is due to a nature of spinlocks, which I will […]

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 […]