Posts tagged How to build scalable Linux applications
Following are some of the tips to improve overall performance of Linux application. It also includes tips for scalability of multi-threaded Linux application.
Reduce number of system calls
Any system call in user space application requires context switching to kernel mode and back to user mode. So the number system calls made in your most frequently executed code may adversely affect your application’s performance.
Unlike Mutex, Futex library attempts to avoid system calls whenever possible. This will improve the performance of the application.
Use Compare and Swap (CAS) and Lockless data structures
This is tricky and getting it right is difficult. However this will More >