Questions tagged [cpu]

Questions about EOSIO CPU concept, which is used to account for computational time required for processing transactions. Questions may relate to CPU allocation, usage reset, costs, optimisation, limitations, and others.

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

tx_cpu_usage_exceeded error transaction [duplicate]

sometimes when i run eosio transactions like this below, i have this error and transaction not complete. These transaction are for save data on smart contract table on a local nodeos. I use eosjs to ...
0 votes
1 answer
16 views

Efficency of Actions

I am new to smart contracts, and I am developing a smart contract for a game. I am trying to understand if the smart contract that I created is efficient or not. I have deployed the smart contract on ...
1 vote
0 answers
37 views

How to catch transaction errors?

I'm trying to send a specific number of transactions per day to a smart contract. Because of low CPU stake I easily get CPU error. My goal is to catch this error and handle it in order to keep trying ...
0 votes
0 answers
36 views

unable to unstake or withdraw tokens

I tried to withdraw my EOS from Simpleos wallet but was getting " Error: billed CPU time (286 us) is greater than the maximum billable CPU time for the transaction (0 us). So ,I decided to stake ...
-1 votes
1 answer
24 views

Network still clogged after update with new fee structure in 2021?

I'm trying to make a trade on NewDex exchange and I have 100 EOS staked, but I run out of CPU after 1 transaction. How much EOS do I really need staked in order to at least make 5-10 trades? It's kind ...
0 votes
1 answer
53 views

How do I send transactions from account, differing from actor account?

E.g. I have account A with lots of CPU, and account B with not so much of it. Normally I'd sign transaction with B, and push with B, so spend B's CPU. Is there any way to send B's transaction with A's ...
  • 109
0 votes
1 answer
91 views

Calculate EOS account resources CPU, RAM and NET in percentage

I am designing my own EOS dashboard in which I want to show the respective account's resources CPU, NET and RAM in Percentage as they are in the attached picture (from https://local.bloks.io/): when ...
  • 307
0 votes
1 answer
67 views

How to set an in contract CPU bill time check / how to store the CPU time utilized

How can this be achieved? check ( cpu_billable_time < 500 ), " sorry, this code won't let you spend more than 500 µs in billable time, please try again later"); This is aside from the ...
0 votes
2 answers
42 views

how to make sure the tx to be included in block

as subject, any way to make sure the tx to be included in block, what i think of is, if the tx meet the condition, then notify the contract to execute the specified action, otherwise notify an account ...
0 votes
1 answer
44 views

staked without interest

I have this old account that is converted from eth when eos was first sold, I'm only to trying to use it now, but I just found that it only leaves 10eos as unstaked, while all other tokens are stacked,...
  • 217
1 vote
1 answer
39 views

Altering userres and delband tables after set_resource_limit(-1, -1, -1)

For a private network to remove ram net cpu i set the resource limit to unlimited for each newaccount created. By chaging set_resource_limits to set_resource_limits( newact, -1, -1, -1 ); //unlimited ...
1 vote
1 answer
35 views

Is there a way to gauge how clogged the EOS resource exchange is where transactions would get stuck?

With the recent resources causing transactions to get stuck. Is there a way to gauge if my transaction would get stuck? Is there some type of graph or chart to see how much of the resources are free ...
1 vote
1 answer
46 views

Profiling EOS.IO smart contract code

What's the best way for profiling the code of an EOS.IO smart contract? I'd like to know what percentage of the CPU time is spent on executing each function\line (including multi index table function ...
0 votes
2 answers
308 views

How to reduce NET and CPU usage in Private EOS

I am trying to setup a private eos for my app, I want to know if there is possible to change the usage of CPU, NET etc in private setup without staking tokens. If YES, then please guide me with the ...
1 vote
0 answers
36 views

CPU reset period and CPU used over max amount

My problem: I have used more CPU than my max allowed amount. And this is not getting reset despite that one week has passed since I noticed it. I tried to stake up some EOS (but not enough to reach ...
  • 111
0 votes
2 answers
720 views

How to increase the maximum billable CPU

I have 0,15 Eos in CPU in fairy wallet, so I can not delegate more Eos in CPU due to the error: "billed CPU time (857 us) is greater than the maximum billable CPU time for the transaction (165 us)" I ...
  • 1
0 votes
0 answers
20 views

Can a transfer fail when the receiving account is out of resources?

I have seen this twice now on our Telos project - an account that ran out of CPU / net / RAM - not entirely sure which - became impossible to send to from another account that was still OK. It's as ...
  • 101
1 vote
1 answer
111 views

Unable to delegate CPU because of low CPU Staked

I wanted to stack some EOS for CPU but cannot do it because of low CPU stacked on my account (currently only 1 EOS staked for CPU). How am I going to fix it ? I read that I need fast BP for execute ...
1 vote
1 answer
590 views

Code examples for ONLY_BILL_FIRST_AUTHORIZER

Can someone please add code example or describe how to only bill first authorizer? I have tried but can't get it to work. Thanks!
0 votes
0 answers
97 views

When deploying a contract what is important (overall contract/wasm size or amount of functions etc) to not get transaction took too long

when I try to deploy the system.contract I sometimes get transaction took too long with the new eosio version 1.8.1. Now I would like to know on which part of a contract do I need to pay attention ...
  • 99
1 vote
1 answer
83 views

EOSIO's BP Benchmark

Today, I am researching how I can draw a diagram for BPs Benchmark, and luckily I found information about Ahola. But I cannot figure it out, how I can get value from Ahola's smart contract to draw a ...
2 votes
1 answer
236 views

CPU-Usage Optimization

I'm trying to figure out how to optimize one of my smart contracts for less billed CPU-usage. There are typically different methods to optimize performance of algorithms but I'm not clear about if a ...
  • 1,919
2 votes
2 answers
136 views

How to avoid cpu usage limits

Task Compute some fields for all table rows when action called contract::priceupdate(price) Input data: Table with 10000 rows Problem Cpu limit 30ms so i cant update whole table in 1 transaction ...
  • 123
0 votes
0 answers
86 views

Exception Details: 3080006 deadline_exception: Transaction took too long

I'm getting this error and have read all there is to read on the net (which isn't much) about it. mostly I see others complaining about this error when they run an action for the first time in my ...
  • 515
0 votes
1 answer
23 views

CPU for transaction on my own node

If my EOS account run out of CPU, would it help if I run my custom node to process my own transactions? If I'm required to become a block producer for this, what are the benefits of running hungry ...
1 vote
1 answer
96 views

Why BOTH accounts pay CPU when I add signatures to a transaction?

While testing in Jungle and adding signatures to a transaction with the flag -p, I see that if I add two signatures to a transaction I can see that both accounts used CPU for that transaction. Why? ...
  • 201
0 votes
1 answer
35 views

Which eos testnet has the cheapest fees and ram?

I'm looking to work with eos on testnet, but I know there are a few testnet implementations. Which eos testnet has the cheapest ram and cpu where I can use for test my dapp? My dapp mainly sends 500 ...
0 votes
2 answers
139 views

What practices are high cpu consuming inside a smart contract

Eosio is a very powerful platform for developers, but resources seems to be precious, especially ram and cpu. Regarding to cpu time, what programming practices are commonly used in other platforms but ...
1 vote
1 answer
48 views

Getting cpu_limits for accounts at a specified block height

I need to query cpu_available for a bunch of users at some specified block height. I'm trying to use the dfuse api but by querying the userres table, I get only cpu_weight. Is there any way I can get ...
  • 111
0 votes
1 answer
56 views

How much does it cost to create a new account, which only needs to hold token balances?

Assuming the new account won't be performing any actions, what is the bare minimum of EOS required to create the new account? How much RAM? How much CPU/NET needs to be staked/delegated?
0 votes
1 answer
35 views

How much does it cost to add a new permission to an account?

When adding a new key pair to an existing account, how much RAM, CPU, and NET is required?
1 vote
2 answers
171 views

Restricting runtime of a loop (Transaction took too long)

I want to manage a worker that loops over events and should finish as many tasks as possible in one transaction. Nodes have a config for max-transaction-time = 30. Is 30ms used on mainnet for all BP ...
  • 267
1 vote
1 answer
35 views

Different of configuration on computer's BPs?

I have a question about configuration of computer's block producer(BP). My question is: In 21 BPs, if have some BPs which have lower configuration of computer than other, they will never be approved ...
user avatar
1 vote
1 answer
56 views

Are table lookups, like get_table_rows, included in CPU/NET resource calculation?

If a smart contract includes user data, would our smart contract be charged CPU/NET resources to do lookups on those tables, or is it only charged for transfers and actions etc.
2 votes
1 answer
115 views

Does print() cost CPU cycles?

Does eosio::print cost CPU cycles to execute on the BPs? On my node I have an option to print. Assuming it is disabled for the BPs (print defined to return; or similar), does evaluating the arguments ...
  • 267
2 votes
1 answer
242 views

Performance: Would it be a problem to store 100,000 or 1,000,000 rows in a multi_index table?

So, let's say we had the necessary ram, cpu, and net to store a lot of records in a multi_index table. (100,000 to 1,000,000). Considering that a transaction in EOS has a max execution time (150 ms), ...
1 vote
0 answers
46 views

CPU/NET Leasehold model

Who can tell me about the leasing model of EOS, or where do you find the corresponding EOS code?
  • 11
0 votes
1 answer
34 views

Any proposal where one can stake eos on behalf of certain accounts that have no eos at all?

Is there any proposal that lets a parent account stake on behalf of child-accounts so those child accounts can freely send out tokens if they received them? My dilemma is if I created an account for ...
2 votes
1 answer
192 views

How to buy more RAM without CPU?

Currently I am running low on CPU and would love to borrow some from Chintai but it says I have to little RAM to be able to complete the transaction (which is true, I am running very low). However, in ...
1 vote
1 answer
324 views

If I stake 1000 EOS for cpu and 1000 for net? How much do I get after 10 days?

If I staked the following to: 1000 eos to cpu 1000 eos to net How much will I have staked by 10 days? And do I keep these cpu and net resources forever if I never use it? Or does it expire?
4 votes
1 answer
640 views

I'm still wrapping my head around EOS RAM and CPU resources. How do they work exactly?

Coming from other blockchains, renting or buying ram / cpu on EOS is a weird concept to grasp for now. From my understanding, an EOS account can choose to buy ram or cpu? Can they not buy any at ...
2 votes
1 answer
102 views

Verify CPU usage calculated by BP

As far as I know, the value of CPU usage of the same tx can be different on every BP. Is it possible for BP to overcharge CPU usage of my transaction? If so, how do I (or other BPs) check if CPU ...
1 vote
2 answers
468 views

Any methods for calculation and forecasting cpu usage for contract on some period

Good day, everyone! Can somebody explain how I can calculate or forecast of my contract CPU usage in mainnet on some period? I want to understand the process of identification the factors that ...
  • 13
2 votes
2 answers
117 views

Does Non fungible Tokens need more RAM?

Non fungible tokens with tracability need a table that need space and Non fungible tokens also need more computation as we need to have mint ,burn ,create and issue abi actions. In my opinion ...
1 vote
1 answer
67 views

other way to let contract account provide for cpu/bandwidth than delegatew/undelegatew?

as far as i can tell it is somehow inconvenient to let the user of an contract "pay" for the cpu time. I thought that the one who manages the contract, has to stake for cpu/bandwidth, so user can use ...
  • 99
3 votes
1 answer
367 views

Getting account CPU usage in smart contract

Is it possible to access the CPU usage of a given account from within a smart contract? For eg. in a smart contract transfer notification, you call get_account_info(N(some_account_name)) which ...
5 votes
1 answer
277 views

Why do failed transactions not consume CPU?

In other blockchains, even if your transaction fails, you are still taxed gas or other scarce resource in order to compensate nodes for processing your transaction and defend against spam. On the ...
  • 5,554
3 votes
2 answers
257 views

resource consumption estimation of EOS transaction

Currently, is there a tool to calculate/estimate the resource consumption(CPU, RAM, NET...) of an EOS transaction? Or any team in EOS community working on it?
4 votes
1 answer
72 views

When someone sells his RAM to another account, how it would clear from previous contracts?

I know unlike CPU and Net bandwidth, RAM doesn't refresh itself. we also know that we can exchange our RAM with EOS. But when someone sell his RAM to anoher user. So in this case what happen how ...
3 votes
1 answer
140 views

Ethereum event logs equivalent for EOS

One of the solutions for saving quite a lot data in Ethereum Smart contracts is to log data by emitting event, which saves our gas. Is EOS quite similar? Does it provide us with the very same ...