Maciej Wiercinski – blog

Development and research by Maciej Wiercinski – Linux, MySQL, PHP.

  • HOME
  • About

Archive for the ‘ Linux ’ Category

Performance issues with Debian’s timezone database PHP patch

  • March 16th, 2011
  • Posted in Linux . PHP

I have recently been debugging Apache2/PHP5 (running with mpm_prefork what turned out to be important later) server suffering for very high load spikes. Load was completely CPU related, there was almost no IO operations performed during peak times and surprisingly significant part of CPU time was spent in the kernel (about 20%) mode. [ READ MORE ]

Tunnelling individual user’s traffic through remote server with Linux using GRE, NAT and iptables.

  • September 24th, 2010
  • Posted in Linux

I had a need to route a particular process’ traffic through remote server in order to be let in by third parties firewalls. Most flexible way to do so in was to mark the traffic per account basis. Fortunately Linux allows you to do so using owner match in iptables. In my instance user account [ READ MORE ]

Real time log based statistics

  • April 16th, 2010
  • Posted in Linux

Some time ago I came across a need to generate real time statistics of how many emails do our Exim installations send per second. Didn’t want to go into reconfiguring exim itself, thus I wrote a simple C program, that follows syslog generated file, does little parsing on a timestamp, and writes stats to disks [ READ MORE ]

Tags

amazon android apache apc aws cloud debian dns ec2 elasticsearch exim godaddy iproute2 iptables Linux mpm_prefork mysql mysql enterprise nat networking oracle PHP ssl

Blogroll

  • Andrew Johnstone
  • Wojciech Naruniec

—

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
  • Copyright ©  2010-2011  Maciej Wiercinski – blog
  • Theme designed by mono-lab
  • Powered by WordPress