Economic model in Inner-Ring is not able to process 3000+ containers #102

Closed
opened 2023-03-08 23:34:22 +00:00 by snegurochka · 1 comment
Member

Original issue: https://github.com/nspcc-dev/neofs-node/issues/2173

If neoFS network contains 3000 containers or more, function ListContainerSizes fails with error:

contract execution finished with state FAULT; exception: at instruction 4249 (LDLOC6): stack is too big

This function is used by economic model in Inner-Ring. The error means that economic model will stop working when neoFS network grows to the size of about 3000 containers.

Possible Solution

If we switch to function IterateContainerSizes it will be possible to run economic model with arbitrary container size.

Regression

No

Your Environment

neofs-ir --version
Version: v0.34.0-113-g45c64dbe-dirty 
GoVersion: go1.18.4
Original issue: https://github.com/nspcc-dev/neofs-node/issues/2173 If neoFS network contains 3000 containers or more, function [ListContainerSizes](https://github.com/nspcc-dev/neofs-contract/blob/master/container/container_contract.go#L555) fails with error: ``` contract execution finished with state FAULT; exception: at instruction 4249 (LDLOC6): stack is too big ``` This function is used by economic model in Inner-Ring. The error means that economic model will stop working when neoFS network grows to the size of about 3000 containers. ## Possible Solution If we switch to function [IterateContainerSizes](https://github.com/nspcc-dev/neofs-contract/issues/293) it will be possible to run economic model with arbitrary container size. ## Regression No ## Your Environment ``` neofs-ir --version Version: v0.34.0-113-g45c64dbe-dirty GoVersion: go1.18.4 ```
Owner

Closed in favor of #267.

Closed in favor of #267.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#102
No description provided.