| Author(s): | Ian Hinder |
| Date: | 2010/04/06 11:00:00 |
Thorn SystemStatistics collects information about the system on which a Cactus process is running and stores it in Cactus variables. These variables can then be output and reduced using the standard Cactus methods such as IOBasic and IOScalar.
When running a Cactus simulation, there are often features of the system on which it is running which can affect the simulation. For example, Cactus processes take a certain amount of memory, and if this exceeds the memory available on the system, the Cactus process will either start to swap, significantly reducing performance, or will terminate. It can be useful to determine quantities such as memory usage of a Cactus process, and that is the purpose of this thorn. The thorn currently provides grid arrays which are filled with memory-related information.
This thorn has no parameters.
The resulting screen output would look like this:
and the reduced scalar output in systemstatistics::process_memory_mb.maximum.asc would look like this:
Implements:
systemstatistics
| Group Names | Variable Names | Details | |
| process_memory | compact | 0 | |
| maxrss | description | Process memory statistics | |
| majflt | dimensions | 1 | |
| arena | distribution | CONSTANT | |
| ordblks | group type | ARRAY | |
| hblks | size | 1 | |
| hblkhd | stagger type | NONE | |
| uordblks | tags | Checkpoint=”no” | |
| fordblks | timelevels | 1 | |
| keepcost | variable type | INT | |
| process_memory_mb | compact | 0 | |
| maxrss_mb | description | Run memory statistics in MB | |
| majflt_mb | dimensions | 1 | |
| arena_mb | distribution | CONSTANT | |
| ordblks_mb | group type | ARRAY | |
| hblks_mb | size | 1 | |
| hblkhd_mb | stagger type | NONE | |
| uordblks_mb | tags | Checkpoint=”no” | |
| fordblks_mb | timelevels | 1 | |
| keepcost_mb | variable type | INT | |
| process_memory_kb | compact | 0 | |
| maxrss_kb | description | Run memory statistics in KB | |
| majflt_kb | dimensions | 1 | |
| arena_kb | distribution | CONSTANT | |
| ordblks_kb | group type | ARRAY | |
| hblks_kb | size | 1 | |
| hblkhd_kb | stagger type | NONE | |
| uordblks_kb | tags | Checkpoint=”no” | |
| fordblks_kb | timelevels | 1 | |
| keepcost_kb | variable type | INT | |
This section lists all the variables which are assigned storage by thorn AEIThorns/SystemStatistics. Storage can either last for the duration of the run (Always means that if this thorn is activated storage will be assigned, Conditional means that if this thorn is activated storage will be assigned for the duration of the run if some condition is met), or can be turned on for the duration of a schedule function.
| Always: | |
| process_memory | |
| process_memory_mb | |
| process_memory_kb | |
CCTK_ANALYSIS
systemstatistics_collect
collect system statistics
| Language: | c | |
| Options: | global | |
| Type: | function | |