I'm trying to find the best way to use 'top' as semi-permanent instrumentation in the development of a box running embedded Linux. (The instrumentation will be removed from the final-test and production releases.)
My first pass is to simply add this to init.d:top -b -d 15 >/tmp/toploop.out &
This runs top in "batch" mode every 15 seconds. Let's assume that /tmp has plenty of space...
Questions:
- Is 15 seconds a good value to choose for general-purpose monitoring?
- Other than disk space, how seriously is this perturbing the state of the system?
- What other (perhaps better) tools could be used like this?
Thanks in advance for your answers!