gyoza.resources#

Cooperative resource reservation updates from inside an operation.

class gyoza.resources.GyozaResources[source]#

Bases: object

Emit reservation updates through the existing Gyoza event stream.

set_reservation(*, ram_mb=None, vram_mb=None)[source]#

Declare remaining reservations after physically freeing memory.

Omitted fields are unchanged. The master currently rejects increases. This emits an asynchronous event; returning does not confirm acceptance.

Return type:

None

Parameters:
  • ram_mb (int | None)

  • vram_mb (int | None)

gyoza_resources is exported from gyoza. Its set_reservation method emits an asynchronous update of the remaining RAM/VRAM reservation. It does not allocate or free physical memory, and the master rejects increases.