Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

podman system df does not seem to report actual disk usage #16135

Closed
sjug opened this issue Oct 12, 2022 · 9 comments · Fixed by containers/common#1191, containers/common#1194 or #16211
Closed
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@sjug
Copy link
Contributor

sjug commented Oct 12, 2022

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)

/kind bug

Description

podman system df doesn't show actual disk usage of container images.

Looking to find the actual disk usage of the images on disk I tried the podman system df command.
The image size output was 50% larger than my entire virtual disk.

Steps to reproduce the issue:

  1. Pull many images that have common bases. I installed SNO on a VM with a 20G disk.

  2. Check podman system df

  3. See actual disk usage of images

Describe the results you received:

The size of images reported vastly exceeds disk capacity.

# podman system df
TYPE           TOTAL       ACTIVE      SIZE        RECLAIMABLE
Images         75          75          30.21GB     0B (0%)
Containers     0           0           0B          0B (0%)
Local Volumes  0           0           0B          0B (0%)

Describe the results you expected:

Actual disk usage information.

Additional information you deem important (e.g. issue happens only occasionally):

# lsblk
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        7.8G     0  7.8G   0% /dev
tmpfs           7.9G  168K  7.9G   1% /dev/shm
tmpfs           7.9G   61M  7.8G   1% /run
tmpfs           7.9G     0  7.9G   0% /sys/fs/cgroup
**/dev/vda4        20G   16G  3.6G  82% /sysroot**
tmpfs           7.9G  4.0K  7.9G   1% /tmp
/dev/vda3       350M  103M  225M  32% /boot
...

# du -shc /var/lib/containers/storage/overlay/*/diff
...
**11G     total**

Output of podman version:

Client:       Podman Engine
Version:      4.0.2
API Version:  4.0.2
Go Version:   go1.18

Built:      Wed Jun 15 08:06:29 2022
OS/Arch:    linux/amd64

Output of podman info:

Client:       Podman Engine                                   
Version:      4.0.2
API Version:  4.0.2                                           
Go Version:   go1.18                                          
                               
Built:      Wed Jun 15 08:06:29 2022
OS/Arch:    linux/amd64
[root@api-int storage]# podman info
host:         
  arch: amd64                                                 
  buildahVersion: 1.24.4
  cgroupControllers:
  - cpuset  
  - cpu 
  - cpuacct    
  - blkio   
  - memory
  - devices
  - freezer
  - net_cls
  - perf_event
  - net_prio
  - hugetlb
  - pids 
  - rdma                      
  cgroupManager: systemd
  cgroupVersion: v1
  conmon:                                                     
    package: conmon-2.1.2-2.rhaos4.11.el8.x86_64
    path: /usr/bin/conmon
    version: 'conmon version 2.1.2, commit: 2d84c39981acfc41e61c1c8b21ce9e8941ce41de'
  cpus: 4     
  distribution:
    distribution: '"rhcos"'
    version: "4.11"
  eventLogger: file                                           
  hostname: api-int.sno.ocp.lan
  idMappings:              
    gidmap: null                                              
    uidmap: null           
  kernel: 4.18.0-372.26.1.el8_6.x86_64
  linkmode: dynamic        
  logDriver: journald
  memFree: 878510080
  memTotal: 16797462528                                       
  networkBackend: cni                                         
  ociRuntime:
    name: runc     
    package: runc-1.1.2-1.rhaos4.11.el8.x86_64
    path: /usr/bin/runc                                       
    version: |-
      runc version 1.1.2
      spec: 1.0.2-dev
      go: go1.18
      libseccomp: 2.5.2
  os: linux
  remoteSocket:
    path: /run/podman/podman.sock
  security:
    apparmorEnabled: false
    capabilities: CAP_NET_RAW,CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
    rootless: false
    seccompEnabled: true
    seccompProfilePath: /usr/share/containers/seccomp.json
    selinuxEnabled: true
  serviceIsRemote: false
  slirp4netns:
    executable: /bin/slirp4netns
    package: slirp4netns-1.1.8-1.rhaos4.11.el8.x86_64
    version: |-
      slirp4netns version 1.1.8
      commit: d361001f495417b880f20329121e3aa431a8f90f
      libslirp: 4.4.0
      SLIRP_CONFIG_VERSION_MAX: 3
      libseccomp: 2.5.2
  swapFree: 0
  swapTotal: 0
  uptime: 2h 10m 29.51s (Approximately 0.08 days)
plugins:
  log:
  - k8s-file
  - none
  - passthrough
  - journald
  network:
  - bridge
  - macvlan
  - ipvlan
  volume:
  - local
registries:
  search:
  - registry.access.redhat.com
  - docker.io
store:
  configFile: /etc/containers/storage.conf
  containerStore:
    number: 0
    paused: 0
    running: 0
    stopped: 0
  graphDriverName: overlay
  graphOptions: {}
  graphRoot: /var/lib/containers/storage
  graphStatus:
    Backing Filesystem: xfs
    Native Overlay Diff: "true"
    Supports d_type: "true"
    Using metacopy: "false"
  imageCopyTmpDir: /var/tmp
  imageStore:
    number: 75
  runRoot: /run/containers/storage
  volumePath: /var/lib/containers/storage/volumes
version:
  APIVersion: 4.0.2
  Built: 1655280389
  BuiltTime: Wed Jun 15 08:06:29 2022
  GitCommit: ""
  GoVersion: go1.18
  OsArch: linux/amd64
  Version: 4.0.2

Package info (e.g. output of rpm -q podman or apt list podman or brew info podman):

podman-4.0.2-6.rhaos4.11.el8.x86_64

Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)

No, this is the latest version shipped with OCP. I tried to reproduce on a different host with RHEL 8.6 and podman 4.1.1; it seemed to still report disk usage the same way.

Additional environment details (AWS, VirtualBox, physical, etc.):
libvirt VM

@openshift-ci openshift-ci bot added the kind/bug Categorizes issue or PR as related to a bug. label Oct 12, 2022
@vrothberg
Copy link
Member

Thanks, @sjug! I recall some fixes in the past that went into the image-size calculation but need to track it down.

@vrothberg
Copy link
Member

I bet Podman's calculating images more than once.

@Luap99
Copy link
Member

Luap99 commented Oct 12, 2022

Please try with the latest version. I recall some fixes related to that.

@vrothberg
Copy link
Member

vrothberg commented Oct 12, 2022

No need to check the latest version IMO. No changes were made there in libimage. But what Podman is counting is the sum of the image sizes which can exceed the total disk size given images can share layers.

@vrothberg
Copy link
Member

That's at least my guess. The reports try to calculate that out but I bet there's a fart.

@vrothberg
Copy link
Member

@sjug can you share the output of podman system df -v? Note the -v

@vrothberg
Copy link
Member

Ok, I found an easy reproducer:

$ podman build -f ./contrib/podmanimage/upstream/Containerfile
$ TYPE           TOTAL       ACTIVE      SIZE        RECLAIMABLE
Images         12          0           3.82GB      3.82GB (100%)
Containers     0           0           0B          0B (0%)
Local Volumes  0           0           0B          0B (0%)
$ podman system df -v
Images space usage:

REPOSITORY                         TAG         IMAGE ID      CREATED     SIZE        SHARED SIZE  UNIQUE SIZE  CONTAINERS
registry.fedoraproject.org/fedora  latest      2ecb6df95994  2 months    168.8MB     168.8MB      0B           0
<none>                             <none>      c9cfae6b6b60  2 minutes   331.8MB     331.8MB      0B           0
<none>                             <none>      6dee41747d07  2 minutes   331.9MB     331.9MB      0B           0
<none>                             <none>      a1e6e13438ef  2 minutes   331.9MB     331.9MB      0B           0
<none>                             <none>      97c37722bc74  2 minutes   331.9MB     331.9MB      0B           0
<none>                             <none>      bd056a7f8221  2 minutes   331.9MB     331.9MB      0B           0
<none>                             <none>      852894a641f4  2 minutes   331.9MB     331.9MB      0B           0
<none>                             <none>      1aab03dc9fca  2 minutes   331.9MB     331.9MB      0B           0
<none>                             <none>      4068a7dbb808  2 minutes   331.9MB     331.9MB      0B           0
<none>                             <none>      adde08eb9d9c  2 minutes   331.9MB     331.9MB      0B           0
<none>                             <none>      77760e1bdf29  2 minutes   331.9MB     331.9MB      0B           0
<none>                             <none>      df4552aad552  2 minutes   331.9MB     331.9MB      199B         0
[...]
$ podman images
REPOSITORY                         TAG         IMAGE ID      CREATED        SIZE
<none>                             <none>      df4552aad552  3 minutes ago  332 MB
registry.fedoraproject.org/fedora  latest      2ecb6df95994  2 months ago   169 MB

That doesn't add up and the reported sizes in -v are wrong.

@sjug
Copy link
Contributor Author

sjug commented Oct 13, 2022

@sjug can you share the output of podman system df -v? Note the -v

$ podman system df -v
Images space usage:

REPOSITORY                                          TAG         IMAGE ID      CREATED     SIZE        SHARED SIZE  UNIQUE SIZE  CONTAINERS
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      94c8e62b33ee  13 days     275.4MB     0B           275.4MB      78
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      efc7a9f78bd6  3 weeks     349.7MB     0B           349.7MB      6
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      43343e7747f0  13 days     765.7MB     0B           765.7MB      5
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      4845047a0c0f  3 weeks     352MB       0B           352MB        1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      22c9c4e9719c  3 weeks     354.2MB     0B           354.2MB      3
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      ed75e479630b  3 weeks     359.1MB     0B           359.1MB      6
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      9e7f6ea08110  2 weeks     360MB       0B           360MB        3
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      ef0cc8864f12  3 weeks     357MB       0B           357MB        3
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      a57a930c2d32  3 weeks     350.4MB     0B           350.4MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      288994a09378  2 weeks     257.9MB     0B           257.9MB      2
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      2c46f2efcea3  3 weeks     365MB       0B           365MB        1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      e31f89ab95a8  3 weeks     447.2MB     0B           447.2MB      4
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      7e2a6dd95740  3 weeks     316.1MB     0B           316.1MB      28
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      875dcdfb165b  3 weeks     351.6MB     0B           351.6MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      63d294efe349  3 weeks     463.1MB     0B           463.1MB      2
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      f9dd008e2937  2 weeks     436.3MB     0B           436.3MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      b0ac50938d5b  3 weeks     411.7MB     0B           411.7MB      2
quay.io/openshift-release-dev/ocp-release           <none>      012e0a29e86e  8 days      340.5MB     0B           340.5MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      3e419c1316f0  3 weeks     283MB       0B           283MB        5
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      4173c6ff7379  9 days      1.003GB     0B           1.003GB      8
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      7eaa3aeb2088  3 weeks     493.1MB     0B           493.1MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      32db20430e12  3 weeks     379.1MB     0B           379.1MB      2
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      6c8f20f71e51  3 weeks     399.5MB     399.5MB      0B           1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      eb2574fb2c3d  3 weeks     332.2MB     0B           332.2MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      2e85a9c787e3  3 weeks     277.8MB     0B           277.8MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      cf1020b5dede  3 weeks     246.3MB     0B           246.3MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      3250992e9d3e  3 weeks     325MB       0B           325MB        1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      b661579e8dac  3 weeks     284.7MB     0B           284.7MB      4
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      8245ace0f5c4  3 weeks     357.3MB     0B           357.3MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      b7aee97526bc  3 weeks     310MB       0B           310MB        1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      ea3ac684f121  3 weeks     303.4MB     0B           303.4MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      25191ae18e53  3 weeks     428.9MB     0B           428.9MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      dfb3f7e6eb4e  3 weeks     353.4MB     0B           353.4MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      64d9e719a86d  3 weeks     250.9MB     0B           250.9MB      2
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      d21e997d08a1  3 weeks     321.2MB     0B           321.2MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      1ac38688f285  3 weeks     627.6MB     0B           627.6MB      5
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      4541a0892f2b  3 weeks     389.9MB     0B           389.9MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      c43698b16bb5  3 weeks     346.3MB     0B           346.3MB      1
registry.redhat.io/redhat/redhat-marketplace-index  v4.11       79e84d71d906  6 days      715.1MB     0B           715.1MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      afab69841c3a  3 weeks     411.3MB     0B           411.3MB      2
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      246d3ba3a38b  3 weeks     295.3MB     0B           295.3MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      ec105929af76  13 days     399.6MB     0B           399.6MB      1
registry.redhat.io/redhat/redhat-operator-index     v4.11       bd6669b064b4  51 minutes  927.7MB     0B           927.7MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      8b3b04ca1a2a  3 weeks     309.5MB     0B           309.5MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      50e9cb76c1c8  3 weeks     319.9MB     0B           319.9MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      7dd22f8c952c  3 weeks     379.8MB     0B           379.8MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      cb863ec33dca  3 weeks     325.6MB     0B           325.6MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      bbc6de57d1c0  3 weeks     356.5MB     0B           356.5MB      2
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      da813766bed0  3 weeks     353.6MB     0B           353.6MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      6173e73ebf9e  3 weeks     373.3MB     0B           373.3MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      163a7c7e688f  3 weeks     313.2MB     0B           313.2MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      ec933fbc0001  3 weeks     311.1MB     0B           311.1MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      e9a9eaf5045c  3 weeks     313.5MB     0B           313.5MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      2bdff5bd7afa  3 weeks     305.1MB     0B           305.1MB      2
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      e2a7c255aac0  3 weeks     355.4MB     0B           355.4MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      2947b7c1ab8e  13 days     330.5MB     0B           330.5MB      1
registry.redhat.io/redhat/community-operator-index  v4.11       aad4b3871c39  7 hours     728.7MB     0B           728.7MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      fdc9d1d8fddc  3 weeks     353.5MB     0B           353.5MB      2
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      98f9f9712148  3 weeks     353.7MB     0B           353.7MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      4b2fea29397b  3 weeks     322MB       0B           322MB        1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      57f73c960ef8  3 weeks     322MB       0B           322MB        1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      7d228fea2026  3 weeks     342.7MB     0B           342.7MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      4d9f4975eada  3 weeks     355.7MB     0B           355.7MB      2
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      2b6db7db17e5  2 weeks     334.3MB     0B           334.3MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      073e8f2c46b3  3 weeks     352.5MB     0B           352.5MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      d2fed43b3e57  3 weeks     337.4MB     0B           337.4MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      2e1b6a6e9581  3 weeks     316.2MB     0B           316.2MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      5ce0064ccdd4  3 weeks     557.2MB     0B           557.2MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      c1e3cbc561b6  3 weeks     355.9MB     0B           355.9MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      31db3693628d  3 weeks     407.7MB     0B           407.7MB      2
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      1f73d693bc3b  3 weeks     339MB       0B           339MB        1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      aecc3a5a7139  3 weeks     343.5MB     0B           343.5MB      2
registry.redhat.io/redhat/certified-operator-index  v4.11       45c008ab88f6  23 hours    771.4MB     0B           771.4MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      4208017ce901  3 weeks     357.6MB     0B           357.6MB      1
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      69e0e6bf67f3  3 weeks     1.239GB     399.5MB      840MB        1

Containers space usage:

CONTAINER ID  IMAGE       COMMAND     LOCAL VOLUMES  SIZE        CREATED     STATUS      NAMES

Local Volumes space usage:

VOLUME NAME  LINKS       SIZE
$ podman images
REPOSITORY                                          TAG         IMAGE ID      CREATED         SIZE
registry.redhat.io/redhat/redhat-operator-index     v4.11       bd6669b064b4  53 minutes ago  928 MB
registry.redhat.io/redhat/community-operator-index  v4.11       aad4b3871c39  7 hours ago     729 MB
registry.redhat.io/redhat/certified-operator-index  v4.11       45c008ab88f6  23 hours ago    771 MB
registry.redhat.io/redhat/redhat-marketplace-index  v4.11       79e84d71d906  6 days ago      715 MB
quay.io/openshift-release-dev/ocp-release           <none>      012e0a29e86e  8 days ago      341 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      4173c6ff7379  9 days ago      1 GB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      2947b7c1ab8e  13 days ago     331 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      ec105929af76  13 days ago     400 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      43343e7747f0  13 days ago     766 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      94c8e62b33ee  13 days ago     275 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      288994a09378  2 weeks ago     258 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      9e7f6ea08110  2 weeks ago     360 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      2b6db7db17e5  2 weeks ago     334 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      f9dd008e2937  2 weeks ago     436 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      1ac38688f285  3 weeks ago     628 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      63d294efe349  3 weeks ago     463 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      69e0e6bf67f3  3 weeks ago     1.24 GB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      6c8f20f71e51  3 weeks ago     399 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      c43698b16bb5  3 weeks ago     346 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      246d3ba3a38b  3 weeks ago     295 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      7e2a6dd95740  3 weeks ago     316 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      4208017ce901  3 weeks ago     358 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      50e9cb76c1c8  3 weeks ago     320 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      875dcdfb165b  3 weeks ago     352 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      6173e73ebf9e  3 weeks ago     373 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      ec933fbc0001  3 weeks ago     311 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      fdc9d1d8fddc  3 weeks ago     353 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      2c46f2efcea3  3 weeks ago     365 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      7d228fea2026  3 weeks ago     343 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      a57a930c2d32  3 weeks ago     350 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      7eaa3aeb2088  3 weeks ago     493 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      073e8f2c46b3  3 weeks ago     353 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      b661579e8dac  3 weeks ago     285 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      aecc3a5a7139  3 weeks ago     343 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      57f73c960ef8  3 weeks ago     322 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      32db20430e12  3 weeks ago     379 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      c1e3cbc561b6  3 weeks ago     356 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      98f9f9712148  3 weeks ago     354 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      ea3ac684f121  3 weeks ago     303 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      7dd22f8c952c  3 weeks ago     380 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      2e85a9c787e3  3 weeks ago     278 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      e9a9eaf5045c  3 weeks ago     313 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      cb863ec33dca  3 weeks ago     326 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      d2fed43b3e57  3 weeks ago     337 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      d21e997d08a1  3 weeks ago     321 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      bbc6de57d1c0  3 weeks ago     357 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      ef0cc8864f12  3 weeks ago     357 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      afab69841c3a  3 weeks ago     411 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      e31f89ab95a8  3 weeks ago     447 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      4b2fea29397b  3 weeks ago     322 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      4845047a0c0f  3 weeks ago     352 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      2e1b6a6e9581  3 weeks ago     316 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      5ce0064ccdd4  3 weeks ago     557 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      e2a7c255aac0  3 weeks ago     355 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      4d9f4975eada  3 weeks ago     356 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      ed75e479630b  3 weeks ago     359 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      b0ac50938d5b  3 weeks ago     412 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      8245ace0f5c4  3 weeks ago     357 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      b7aee97526bc  3 weeks ago     310 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      da813766bed0  3 weeks ago     354 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      163a7c7e688f  3 weeks ago     313 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      3250992e9d3e  3 weeks ago     325 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      1f73d693bc3b  3 weeks ago     339 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      eb2574fb2c3d  3 weeks ago     332 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      25191ae18e53  3 weeks ago     429 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      efc7a9f78bd6  3 weeks ago     350 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      22c9c4e9719c  3 weeks ago     354 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      dfb3f7e6eb4e  3 weeks ago     353 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      8b3b04ca1a2a  3 weeks ago     310 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      4541a0892f2b  3 weeks ago     390 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      64d9e719a86d  3 weeks ago     251 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      2bdff5bd7afa  3 weeks ago     305 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      31db3693628d  3 weeks ago     408 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      3e419c1316f0  3 weeks ago     283 MB
quay.io/openshift-release-dev/ocp-v4.0-art-dev      <none>      cf1020b5dede  3 weeks ago     246 MB

vrothberg added a commit to vrothberg/common that referenced this issue Oct 17, 2022
Add an API to query the sum of the layer sizes.  This data is needed to
fix containers/podman/issues/16135.

Signed-off-by: Valentin Rothberg <[email protected]>
vrothberg added a commit to vrothberg/common that referenced this issue Oct 17, 2022
Add an API to query the sum of the layer sizes.  This data is needed to
fix containers/podman/issues/16135.

Signed-off-by: Valentin Rothberg <[email protected]>
@vrothberg vrothberg reopened this Oct 18, 2022
@vrothberg
Copy link
Member

Still need to do the plumbing in podman.

@vrothberg vrothberg reopened this Oct 18, 2022
vrothberg added a commit to vrothberg/libpod that referenced this issue Oct 19, 2022
Fix two bugs in `system df`:

1.  The total size was calculated incorrectly as it was creating the sum
    of all image sizes but did not consider that a) the same image may
    be listed more than once (i.e., for each repo-tag pair), and that
    b) images share layers.

    The total size is now calculated directly in `libimage` by taking
    multi-layer use into account.

2.  The reclaimable size was calculated incorrectly.  This number
    indicates which data we can actually remove which means the total
    size minus what containers use (i.e., the "unique" size of the image
    in use by containers).

NOTE: The c/storage version is pinned back to the previous commit as it
      is buggy.  c/common already requires the buggy version, so use a
      `replace` to force/pin.

Fixes: containers#16135
Signed-off-by: Valentin Rothberg <[email protected]>
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 12, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
3 participants