It’s great that we’re now in an era of computing where we have an immense and vast amount of computational power at the edge of our fingertips, but it’s also a burden because it leaves us vulnerable to writing software that consumes far more CPU, memory, and I/O than necessary.<p>Does anyone know of software that allows you to test with certain (CPU, RAM, I/O) thresholds in place? And also, what about monitoring tools to see how much CPU, memory, and I/O a program consumes when run?
Well you can always launch your software inside a limited VM, I'm thinking of cgroups for limiting CPU if a VM is unfeasible.<p>Limiting network bandwidth (or introducing random packet drops etc.) can be done with pf.<p>Monitoring CPU/MEM load is best done with htop (if you're interested in long term metrics, look for Nagios).<p>Short term IO (HDD!) load is best done via iotop. Oh, and iftop is your friend for on-demand monitoring of network.