httperf on Linux

Monday, 04. 16. 2012  –  Category: stash, sw

“httperf is a tool for measuring web server performance. It provides a flexible facility for generating various HTTP workloads and for measuring server performance.” Set open files to 65535 via ulimit -n Recompile httperf with /usr/include/bits/typesizes.h’s __FD_SETSIZE dialled up to 65535 (( http://gom-jabbar.org/articles/2009/02/04/httperf-and-file-descriptors )) Twiddle the TCP stack for faster socket recycling (( http://www.speedguide.net/articles/linux-tweaking-121 )) […]

Directory sizes and filesystems

Monday, 03. 19. 2012  –  Category: sw

kyero@fs02 ~/log $ du -hs . 1.7M kyero@fs02 ~/log $ ls | wc -l 24 kyero@fs02 ~/log $ ls -ild . 909313 drwxr-xr-x 2 kyero kyero 1630208 Mar 19 05:25 . This log directory was allowed to grow indefinitely (ahem) until I trimmed it this morning. Now it is mostly empty (1.7MB), but the directory […]

pf on OS X 10.7

Wednesday, 09. 14. 2011  –  Category: sw

Today’s the first day that my new laptop, which runs OS X 10.7 (Lion), will sit on an untrusted network so I figured it was time to port my firewall rules across from the old one, that ran OS X 10.6 (Snow Leopard). I cut my UNIX teeth at a cryptoanarchist shop whose culture of […]