Skip to content

Qubes 4 Admin API is way too inefficient #3293

@qubesuser

Description

@qubesuser

Qubes OS version:

4.0-rc2

Steps to reproduce the behavior:

  1. Run "time qvm-ls"

Expected behavior:

The output should be shown instantly, with time spent under 100ms.

Actual behavior:

It takes more than 2 seconds on my machine.

General notes:

The current Qubes API design that requires a call for each property just doesn't work.

A single call should exist and be used to get all data for all VMs or for any set of VMs (including a single one).

Proposed design:

  1. Add the API calls to qubesd
  2. Whenever a property of a VM is requested, get all of the VM data and cache it
  3. Add a method to precache the properties of a set of VMs, change clients to use
  4. Add a method to discard all or a set of properties for a VM, change "dynamic" clients to use it

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: coreThis issue pertains to a Qubes core component.P: defaultPriority: default. Default priority for new issues, to be replaced given sufficient information.r4.1-dom0-cur-test

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions