How do I enable FFMPEG logging and where can I find the FFMPEG log file?

FFmpeg does not write to a specific log file, but rather sends its output to standard error. To capture that, you need to either capture and parse it as it is generated redirect standard error to a file and read that afterward the process is finished Example for std error redirection: ffmpeg -i myinput.avi {a-bunch-of-important-params} … Read more

Caveats of select/poll vs. epoll reactors in Twisted

For very small numbers of sockets (varies depending on your hardware, of course, but we’re talking about something on the order of 10 or fewer), select can beat epoll in memory usage and runtime speed. Of course, for such small numbers of sockets, both mechanisms are so fast that you don’t really care about this … Read more

How do you do load testing and capacity planning for databases?

Disk & RAM Capacity Planning Planning disk and memory capacity for a database server is a black art. More is better. Faster is better. As general guidelines I offer the following: You want more disk space than you’ll EVER need. Take your best estimate of how much disk space you’ll need for the next 3-5 … Read more

vSphere education – What are the downsides of configuring VMs with *too* much RAM?

vSphere’s memory management is pretty decent, though the terms used often cause a lot of confusion. In general, memory over-commit should be avoided as it creates exactly this type of problem. However, there are times when it cannot be avoided, so forewarned is forearmed! What are the downsides of overcommitting and over-configuring resources (specifically RAM) … Read more

How do you do load testing and capacity planning for web sites?

The short answer is: Nobody can answer this question except you. The long answer is that benchmarking your specific workload is something that you need to undertake yourself, because it’s a bit like asking “How long is a piece of string?”. A simple one-page static website could be hosted on a Pentium Pro 150 and … Read more