Tag Info

Hot answers tagged

5

This should work: loadval=$(sar -u 1 10 | awk '{print 100-$8}')


3

Your processor is not a quad-core, it's a dual-core with Hyper-Threading: Intel.com: ARK | Intel® Core™ i7-4500U Processor (4M Cache, up to 3.00 GHz). Accordingly, sudo lshw -C cpu tells this as well: configuration: cores=2 enabledcores=2 threads=4 This means that the processor has two physical cores, but each physical core is virtualized from Intel's ...


1

time command will give you the run time, with user/total/spu breakdown, which is the other factor you wanted. Memory is trickier and you may need to run a parallel command to monitor that. Can you include commands in your script(s)?



Only top voted, non community-wiki answers of a minimum length are eligible