42720a70bc
Native, self-contained Cockpit page (plain HTML/JS, no build step) that polls nvidia-smi via cockpit.spawn to show live GPU utilization, memory, temperature, power, fan speed, ~5min history sparklines, and the list of processes using the GPU. No background systemd service; data collection only happens while the page is open.
35 lines
1.0 KiB
HTML
35 lines
1.0 KiB
HTML
<!doctype html>
|
|
<html lang="es">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>GPU</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" href="style.css">
|
|
</head>
|
|
<body>
|
|
<div id="error-banner" class="error-banner" hidden></div>
|
|
|
|
<div id="gpu-container" class="gpu-container"></div>
|
|
|
|
<section class="process-section">
|
|
<h2>Procesos usando la GPU</h2>
|
|
<table class="process-table">
|
|
<thead>
|
|
<tr>
|
|
<th>PID</th>
|
|
<th>Proceso</th>
|
|
<th>Memoria (MB)</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="process-table-body">
|
|
<tr class="empty-row"><td colspan="3">Sin procesos activos</td></tr>
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
|
|
<!-- cockpit.js: ruta relativa estable servida por el propio Cockpit (pkg/base1/cockpit.js) -->
|
|
<script src="../base1/cockpit.js"></script>
|
|
<script src="gpu.js"></script>
|
|
</body>
|
|
</html>
|