Git Product home page Git Product logo

Comments (6)

BigVan avatar BigVan commented on September 6, 2024 1

I think it is about the disk quota of writable layer? @BigVan Is there any method to set quota for the upper dir?

I remember it can be limited by tune2fs and I have successfully done it before. Let me try it later.

from accelerated-container-image.

wxx213 avatar wxx213 commented on September 6, 2024 1

@wxx213 If you want to change the disk virtual size, for now you have to change the code. I think changing the virtual block size of the image disk makes no sense, because it is read only and cost the disk space of cache. So I need to find out exactly which part costs too much disk space.

Yes, I also made a test, the container rootfs size only depends the upperdir(rw layer) of the overlayfs for container root.
And I'm trying the quota feature of xfs and ext4. May be DADI could add support for the quota to isolate container's rootfs which is really meaningful in production env.

from accelerated-container-image.

BigVan avatar BigVan commented on September 6, 2024

We have no plan to support device-mapper because DM management is complex and create/delete a thin volume on snapshot preparing is much slower than overlayfs see it.

Overlaybd is a stand alone storage driver which can provide Rootfs without using overlayfs directly.

There are 2 ways to realize disk quota:

  1. Choose the properly disk size you want when making image's base layer
  2. Use command like 'tune2fs -O project,quota' to limit /dev/sdX.

from accelerated-container-image.

liulanzheng avatar liulanzheng commented on September 6, 2024

I think it is about the disk quota of writable layer? @BigVan Is there any method to set quota for the upper dir?

from accelerated-container-image.

wxx213 avatar wxx213 commented on September 6, 2024

We have no plan to support device-mapper because DM management is complex and create/delete a thin volume on snapshot preparing is much slower than overlayfs see it.

Overlaybd is a stand alone storage driver which can provide Rootfs without using overlayfs directly.

There are 2 ways to realize disk quota:

  1. Choose the properly disk size you want when making image's base layer
  2. Use command like 'tune2fs -O project,quota' to limit /dev/sdX.

@BigVan What do you mean for the disk to make image's base layer in the first one, should I make some config when convert the image?

from accelerated-container-image.

liulanzheng avatar liulanzheng commented on September 6, 2024

@wxx213 If you want to change the disk virtual size, for now you have to change the code. I think changing the virtual block size of the image disk makes no sense, because it is read only and cost the disk space of cache. So I need to find out exactly which part costs too much disk space.

from accelerated-container-image.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.