server_info
resource_tracker.server_info
#
Detect server hardware (CPU count, memory amount, disk space, GPU count and VRAM amount) via procfs
and nvidia-smi
.
Functions:
Name | Description |
---|---|
get_total_memory_mb |
Get total system memory in MB from |
get_gpu_info |
Get GPU information using |
get_server_info |
Collects important information about the Linux server. |
get_total_memory_mb
#
Get total system memory in MB from /proc/meminfo
.
Source code in resource_tracker/server_info.py
get_gpu_info
#
Get GPU information using nvidia-smi
command.
Returns:
Type | Description |
---|---|
dict
|
A dictionary containing GPU information:
|
Source code in resource_tracker/server_info.py
get_server_info
#
Collects important information about the Linux server.
Returns:
Type | Description |
---|---|
dict
|
A dictionary containing server information:
|