lablup / lablup/backend.ai

Consider the size of tmpfs when creating containers

Open
#140 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
670
Forks
183
Avg merge
17h 7m
Merged PRs (30d)
358

Description

lablup/backend.ai-agent#94 allowed us to limit the size of `/tmp` directories inside containers using tmpfs (in-memory) mounts.

We need to improve the implementation:

- [x] Make the default 64MiB size to be configurable
- [ ] Subtract the tmpfs size from the allocated memory size when creating a container
- [ ] Return an explicit error when creating containers if the allocated memory size < the tmpfs size + the image minimum memory requirement

JIRA Issue: BA-322

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.