Giter VIP home page Giter VIP logo

Comments (3)

liqinggd avatar liqinggd commented on July 30, 2024

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.

qzheng527 avatar qzheng527 commented on July 30, 2024

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.

guzongmin avatar guzongmin commented on July 30, 2024

The configuration file should align with the Occlum build process. I draw my ideal build process below.
image
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)

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.