Created
October 25, 2013 03:32
-
-
Save CNG/d984165f5cf5486500fe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@app:/var/tmp# /usr/bin/time -v cat www1/error.log www1/error.log.1 www2/error.log www2/error.log.1 | sed -r -n 's/^\[(\w)\w+ (\w+ \w+).+/\2 \1/p' | awk '{count[$1]++}END{for(j in count) print j" "count[j]}' FS=: | sort; | |
Command being timed: "cat www1/error.log www1/error.log.1 www2/error.log www2/error.log.1" | |
User time (seconds): 0.37 | |
System time (seconds): 19.54 | |
Percent of CPU this job got: 3% | |
Elapsed (wall clock) time (h:mm:ss or m:ss): 8:55.67 | |
Average shared text size (kbytes): 0 | |
Average unshared data size (kbytes): 0 | |
Average stack size (kbytes): 0 | |
Average total size (kbytes): 0 | |
Maximum resident set size (kbytes): 724 | |
Average resident set size (kbytes): 0 | |
Major (requiring I/O) page faults: 0 | |
Minor (reclaiming a frame) page faults: 226 | |
Voluntary context switches: 537215 | |
Involuntary context switches: 1040 | |
Swaps: 0 | |
File system inputs: 0 | |
File system outputs: 0 | |
Socket messages sent: 0 | |
Socket messages received: 0 | |
Signals delivered: 0 | |
Page size (bytes): 4096 | |
Exit status: 0 | |
Oct 13 S 2198488 | |
Oct 14 M 4062749 | |
Oct 15 T 967136 | |
Oct 16 W 855014 | |
Oct 17 T 1214569 | |
Oct 18 F 833179 | |
Oct 19 S 99956 | |
Oct 20 S 105028 | |
Oct 21 M 201541 | |
Oct 22 T 53299 | |
Oct 23 W 42709 | |
Oct 24 T 29857 | |
root@app:/var/tmp# /usr/bin/time -v cat www1/error.log www1/error.log.1 www2/error.log www2/error.log.1 | sed -r -n 's/^\[(\w)\w+ (\w+ \w+).+/\2 \1/p' | sort | uniq -c; | |
Command being timed: "cat www1/error.log www1/error.log.1 www2/error.log www2/error.log.1" | |
User time (seconds): 0.12 | |
System time (seconds): 26.18 | |
Percent of CPU this job got: 5% | |
Elapsed (wall clock) time (h:mm:ss or m:ss): 8:39.02 | |
Average shared text size (kbytes): 0 | |
Average unshared data size (kbytes): 0 | |
Average stack size (kbytes): 0 | |
Average total size (kbytes): 0 | |
Maximum resident set size (kbytes): 728 | |
Average resident set size (kbytes): 0 | |
Major (requiring I/O) page faults: 0 | |
Minor (reclaiming a frame) page faults: 227 | |
Voluntary context switches: 536546 | |
Involuntary context switches: 1275 | |
Swaps: 0 | |
File system inputs: 0 | |
File system outputs: 0 | |
Socket messages sent: 0 | |
Socket messages received: 0 | |
Signals delivered: 0 | |
Page size (bytes): 4096 | |
Exit status: 0 | |
2198488 Oct 13 S | |
4062749 Oct 14 M | |
967136 Oct 15 T | |
855014 Oct 16 W | |
1214569 Oct 17 T | |
833179 Oct 18 F | |
99956 Oct 19 S | |
105028 Oct 20 S | |
201541 Oct 21 M | |
53299 Oct 22 T | |
42709 Oct 23 W | |
29857 Oct 24 T |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment