互联网计算机的资源限制和限制

Resource constraints and limits on the Internet Computer

Overview

This section defines the current main constraints regarding resource usage on the Internet Computer that developers should be aware of.

本节定义了开发人员应注意的有关互联网计算机上资源使用的当前主要限制。

Resource constraints and limits

ResourceConstraint
Canister queue limit500 messages
Maximum ingress and cross-net inter-canister call payload2MB
Maximum same-subnet inter-canister call payload (may be deprecated at some point)10MB
Maximum response size2MB
Instruction limit per update call/heartbeat/timer20B per method invocation
Instruction limit query calls5B
Instruction limit for canister install and upgrade200B
Subnet capacity700GB
Wasm heap size4GB
Wasm stable memory96GB
Wasm custom sections2GB per subnet; 1MB per canister; 16 sections at most (per canister)
Wasm code section10MB
Query calls execution threads2 per replica node
Update calls execution threads4 per subnet

Additional notes

The IC may reject WebAssembly modules for reasons such that:

IC 可能会因以下原因拒绝 WebAssembly 模块:

  • They declare more than 50,000 functions.
  • They declare more than 1,000 globals.
  • They declare more than 16 exported custom sections (the custom section names with prefix icp:).
  • The number of all exported functions called canister_update <name> or canister_query <name> exceeds 1,000.
  • The sum of <name> lengths in all exported functions called canister_update <name> or canister_query <name> exceeds 20,000.
  • The total size of the exported custom sections exceeds 1MiB.

More information regarding these restrictions can be found in the Internet Computer interface specification.

互联网计算机的资源限制和限制
arkMeta Crypto Network Limited, arkSong 2023年10月22日
标签
登录 留下评论

IC环境:NFT 功能开发
NFT development