Comments (6)
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 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.
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:
- Choose the properly disk size you want when making image's base layer
- Use command like 'tune2fs -O project,quota' to limit /dev/sdX.
from accelerated-container-image.
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.
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:
- Choose the properly disk size you want when making image's base layer
- 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.
@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)
- Image conversion fails on large image (48GB) HOT 2
- Userspace conversion fails on large image (48GB) HOT 16
- Resource priority amidst contention: async image pull or on-demand fetch HOT 2
- Support image conversion and push across repositories
- ctr snapshot --snapshotter=overlaybd rm key HOT 1
- Modify Dev's Info HOT 5
- Allow the device size/quota to be adjusted HOT 6
- Regression in v1.0.1: Windows: `pkg/utils/du_unix.go:37:29: undefined: syscall.Stat_t`
- unable to build images `failed to prepare: parent snapshot does not exist: not found` HOT 4
- [Userspace Convertor] Mount or avoid reconverting previously Converted Manifests
- [Userspace Convertor] Overlaybd Layer Versioning for Deduplication HOT 2
- [Userspace Convertor] /usr/bin/ping security capability inconsistency HOT 2
- nerdctl running image and crictl interfere with each other
- Question: multi-platform image support HOT 2
- [Userspace convertor] Unexpectedly high number of disk read/written
- Can't mount 'ext4' overlaybd image when change defaultFsType to 'erofs'
- Was v1.1.4 retracted? HOT 2
- Support loading container images from a secondary disk attached to a kubernetes node HOT 1
- Support digest for input image in userspace converter
- Update doc about EROFS support HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from accelerated-container-image.