Skip to content

🚩 Scan-cache tool: select columns, sort by size, csv-style output #1024

@Wauplin

Description

@Wauplin

Originally from @stas00 on slack (internal link):

If I may add a few bonus feature requests:

  1. be able to select columns
  2. be able to sort by size
  3. csv-style output, so that it can be sorted in many ways by the user - the current output is probably ok to be parsed and resorted, but it'd be much easier to work with a structured output.

e.g. could model after nvidia-smi's options where one can choose what cols to output and it's csv comma separated output.
Example:

$ nvidia-smi --query-gpu=timestamp,name,pci.bus_id,driver_version,pstate,pcie.link.gen.max,pcie.link.gen.current,temperature.gpu,utilization.gpu,utilization.memory,memory.total,memory.free,memory.used --format=csv -l 1

timestamp, name, pci.bus_id, driver_version, pstate, pcie.link.gen.max, pcie.link.gen.current, temperature.gpu, utilization.gpu [%], utilization.memory [%], memory.total [MiB], memory.free [MiB], memory.used [MiB]
2022/08/31 10:00:46.528, NVIDIA A100 80GB PCIe, 00000000:01:00.0, 515.65.01, P0, 4, 4, 31, 0 %, 0 %, 81920 MiB, 79856 MiB, 1254 MiB
2022/08/31 10:00:46.530, NVIDIA GeForce GTX 1070 Ti, 00000000:02:00.0, 515.65.01, P0, 3, 3, 55, 1 %, 2 %, 8192 MiB, 4927 MiB, 3158 MiB
2022/08/31 10:00:47.531, NVIDIA A100 80GB PCIe, 00000000:01:00.0, 515.65.01, P0, 4, 4, 31, 0 %, 0 %, 81920 MiB, 79856 MiB, 1254 MiB
2022/08/31 10:00:47.532, NVIDIA GeForce GTX 1070 Ti, 00000000:02:00.0, 515.65.01, P0, 3, 3, 55, 1 %, 2 %, 8192 MiB, 4927 MiB, 3158 MiB

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions