Solux Docs

Costs and limits#

What a run takes#

Measured in the Solana runtime with the compiled program:

Run Upload txs Step txs Instructions CU per instruction
Loan calculator (Rust) 16 12 299,238 50.3
Starter, two amounts typed 8 2 15,205 about 96 while waiting for keys
Linux 6.1 to the login prompt 2,013 2,381 59,525,000 51.8
Linux, then five commands typed 2,013 2,618 + 5 Type 65,450,000 51.9
  • Compute. Plain computation costs about 52 compute units per guest instruction, so a Step of 25,000 instructions uses about 1.3 M of the 1.4 M allowed. A program polling a device in a loop costs about twice as much per instruction; the CLI and SDK measure the first Step and shrink the next ones to fit.
  • Fees. Each transaction pays the base fee, 5,000 lamports per signature, plus any priority fee you add. A Linux boot is about 4,400 transactions.
  • Rent. Both accounts must be rent-exempt. The deposit is proportional to their size, so the RAM account dominates; ask your cluster with getMinimumBalanceForRentExemption(size). All of it comes back with close.

estimate() in the SDK runs your program locally and gives these numbers for it before you spend anything.

Limits#

Limit Value Why
RAM 10 MiB Largest account CreateAccount can make
Instructions per Step 1,000,000 (25,000 in practice) The 1.4 M compute-unit limit
Keyboard buffer 248 bytes Space in the machine account; type more after the guest reads
Console in the account last 4,096 bytes Every line is also in the Step's logs
Console line in the logs 700 bytes Longer lines are split
Speed of one machine sequential Each Step locks the machine account, so one machine advances one Step after another

What does not work yet#

  • Starting new programs under Linux. The kernel runs without an MMU, and a new process needs one contiguous block of memory. In 10 MiB that block is rarely free, so commands that are not shell built-ins fail. Built-ins (echo, arithmetic, loops, cd, pwd) work.
  • Public clusters. The program is not deployed on devnet or mainnet yet.
  • Floating-point hardware. There is no F or D extension; compilers use software floating point, which is slower but exact and identical everywhere.