Get flash to fully experience Pearltrees
Questions 1. What are the different ways to check the load average on a system? vmstat, top, uptime, w, procinfo ================================ ================================ Bonus - Describe the 3 values that top/uptime shows 1-minute, 5-minute and 15-minute load averages ================================ ================================ 2. What are the different running states of a SOLARIS system?
With multi-core processors sitting idle most of the time and workloads always increasing, it's important to have easy ways to make the CPUs earn their money's worth. My colleague Georgios Gousios told me today how the Unix xargs command can help in this regard. The GNU xargs command that comes with Linux and the one distributed with FreeBSD support a -P option through which one can specify the number of jobs to run in parallel. Using this flag (perhaps in conjunction with -n to limit the number of arguments passed to the executing program), makes it easy to fire commands in parallel in a controlled fashion. Georgios sent me an example, where he sped up a job by almost seven times through this technique.
This page shows common errors that Bash programmers make. The following examples are all flawed in some way: 1. for i in $(ls *.mp3)