13 items | 5 visits
Ways and tools to be used for profiling and bench marking
Updated on Feb 14, 12
Created on Feb 14, 12
Category: Computers & Internet
URL:
Column
Explanation
User time (seconds)
This is the number of seconds of CPU spent by the application.
System time (seconds)
This is the number of seconds spent in the Linux kernel on behalf of the application.
Elapsed (wall-clock) time (h:mm:ss or m:ss)
This is the amount of time elapsed (in wall-clock time) between when the application was launched and when it completed.
Percent of CPU this job got
This is the percentage of the CPU that the process consumed as it was running.
Major (requiring I/O) page faults
The number of major page faults or those that required a page of memory to be read from disk.
Minor (reclaiming a frame) page faults
The number of minor page faults or those that could be filled without going to disk.
Swaps
This is the number of times the process was swapped to disk.
Voluntary context switches
The number of times the process yielded the CPU (for example, by going to sleep).
Involuntary context switches:
Page size (bytes)
Exit status
A memory leak, technically, is an ever-increasing usage of memory by an application.
With common desktop applications, this may go unnoticed, because a process typically frees any memory it has used when you close the application.
However, In the client/server model, memory leakage is a serious issue, because applications are expected to be available 24×7. Applications must not continue to increase their memory usage indefinitely, because this can cause serious issues. To monitor such memory leaks, we can use the following commands.
You could execute strace on a program that is already running using the process id. First, identify the PID of a program using ps command.
For example, if you want to do strace on the firefox program that is currently running, identify the PID of the firefox program.
A system call involves a mode switch (user mode to kernel mode) but does not necessarily mean a context switch (this depends on OS): http://en.wikipedia.org/wiki/Context_switch
list of performance tools
13 items | 5 visits
Ways and tools to be used for profiling and bench marking
Updated on Feb 14, 12
Created on Feb 14, 12
Category: Computers & Internet
URL: