Comments (3)
Can the Occlum.yaml file accepts the bom file as one part of it. Users just write one file, then all the things can be done.
from ngo.
Can the Occlum.yaml file accepts the bom file as one part of it. Users just write one file, then all the things can be done.
@liqinggd I remembered we dicussed this before.
The conclusion at that time was keeping the two yaml files seperated could give more flexibility.
Also, yaml by nature couldn't support "include".
But you provided a very good point, what exactly does NGO configuration shall be provided to users?
The same with Occlum.json but just with comments in line
# Resource limits
resource_limits:
# The heap size of LibOS kernel
kernel_space_heap_size: 32MB
# The stack size of LibOS kernel
kernel_space_stack_size: 1MB
# The total size of enclave memory available to LibOS processes
user_space_size: 256MB
# min_num_of_cpus + 1 = TCSMinPool, which is the minimum number
# of available TCS at any time in the life cycle of an enclave
min_num_of_cpus: 1
# max_num_of_cpus * 2 = TCSMaxNum, which is the maximum number
# of available TCS at any time in the life cycle of an enclave
max_num_of_cpus: 128
...
This way keeps all items open and users can do what they want to modify.
All items are commented unless users uncommented it intentionally, otherwise use the ones from template.
# Resource limits
# resource_limits:
# # The heap size of LibOS kernel
# kernel_space_heap_size: 32MB
# # The stack size of LibOS kernel
# kernel_space_stack_size: 1MB
# # The total size of enclave memory available to LibOS processes
# user_space_size: 256MB
# # min_num_of_cpus + 1 = TCSMinPool, which is the minimum number
# # of available TCS at any time in the life cycle of an enclave
# min_num_of_cpus: 1
# # max_num_of_cpus * 2 = TCSMaxNum, which is the maximum number
# # of available TCS at any time in the life cycle of an enclave
# max_num_of_cpus: 128
...
from ngo.
The configuration file should align with the Occlum build process. I draw my ideal build process below.
It is the integrity-check-only mode. The diagram needs some changes when using the encrypted mode, working on SGX1 HW, or lazy-bind root FS.
from ngo.
Related Issues (20)
- [BUG] ioctl TCGETS return and glibc throws "**** stack smashing detected ***"
- [BUG]ioctl UT crashed
- Use arc_new_cyclic
- [RFC] Memory Cleaning Threads
- [BUG] pthread case hang when running glibc test with simulation mode
- [RFC] Use Completely Fair Scheduler (CFS) in NGO
- [BUG] fstatat crashed with invalid path
- [BUG] Cannot update atime, mtime and ctime for inode
- The design of the `page-cache` crate HOT 1
- [RFC] Use PKU for isolation between LibOS and userspace program HOT 3
- Support io_uring's IORING_SETUP_SQPOLL flag HOT 1
- [BUG] Running iperf and the client side never exits HOT 1
- Improve the scalability of SyncIoDisk HOT 4
- Improve the performance of IoUringDisk HOT 1
- [RFC] Introduce Asynchronous Filesystem in NGO
- [RFC] Introduce Page Cache in NGO
- [RFC] Extend the SGX untrusted allocator to support untrusted device memory HOT 1
- [RFC] Introduce SwornDisk in NGO
- Steps to Enable Async-SFS + SwornDisk as the RootFS
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 ngo.