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

Optimize disk space usage for sealer load #2109

Open
kakaZhou719 opened this issue Mar 15, 2023 · 2 comments
Open

Optimize disk space usage for sealer load #2109

kakaZhou719 opened this issue Mar 15, 2023 · 2 comments
Assignees
Labels
kind/bug Something isn't working performance

Comments

@kakaZhou719
Copy link
Member

kakaZhou719 commented Mar 15, 2023

What happen?

Currently, sealer support multi-architecture image.

When load the image tar file, we need four times more empty disk space.

examples:

  1. package file:cnstack-edas-2.1.0-rc024-536ad66-879bff.tar

  2. the extract the directory for multi-architecture images:
    /var/lib/sealer/tmp/.DTmp-271281710/8ebe9b3d0d5d483fb9c5ae9fd6c2a2b4b9a4c3359950a2669497808719963717.tar (real image file)
    /var/lib/sealer/tmp/.DTmp-271281710/Metadata(manifest name)

  3. containers tmp extract dir: /var/tmp/oci2012003652/blobs/sha256/

  4. containers image storage :/var/lib/containers/

so, we need to optimize disk space usage for sealer load

Relevant log output?

No response

What you expected to happen?

No response

How to reproduce it (as minimally and precisely as possible)?

No response

Anything else we need to know?

No response

What is the version of Sealer you using?

No response

What is your OS environment?

No response

What is the Kernel version?

No response

Other environment you want to tell us?

  • Cloud provider or hardware configuration:
  • Install tools:
  • Others:
@kakaZhou719 kakaZhou719 added kind/bug Something isn't working performance labels Mar 15, 2023
@kakaZhou719 kakaZhou719 self-assigned this Mar 15, 2023
@starnop
Copy link
Collaborator

starnop commented Mar 16, 2023

  1. merge the temp root dir for step 2 and step 3
  2. provide a param that allows the user to specify the temp root dir for sealer load
  3. try to delete the temp dir for step 2 between step 3 and step 4

@kakaZhou719
Copy link
Member Author

  1. merge the temp root dir for step 2 and step 3
  2. provide a param that allows the user to specify the temp root dir for sealer load
  3. try to delete the temp dir for step 2 between step 3 and step 4
  1. support load a single image to specified manifest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working performance
Projects
None yet
Development

No branches or pull requests

2 participants