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
1
vote
1answer
16 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
1answer
21 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
0answers
157 views

How to fix billed CPU time is greater than the maximum billable CPU time?

I have an account where currently I think I have enough CPU resource to make a transaction. I've staked 20 EOS for CPU and now my available CPU is 1.29ms (1.78-0.48). See the pictures below. But when ...
0
votes
2answers
84 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
0answers
17 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 ...
0
votes
2answers
248 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 ...
0
votes
0answers
17 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 ...
1
vote
1answer
60 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 ...
0
votes
0answers
32 views

EOS CPU Full i'm do nothing

Why CPU max overflow what I do nothing. Just I looked at https://bloks.io/ (or) https://eospark.com/ Of my account. Last Transaction is Oct-07-2019, 11:18:08 PM. to now is Oct-09-2019.
1
vote
1answer
334 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
0answers
83 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 ...
1
vote
1answer
52 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
1answer
147 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 ...
2
votes
2answers
96 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 ...
0
votes
0answers
67 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 ...
0
votes
1answer
17 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
1answer
75 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? ...
0
votes
1answer
29 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
2answers
72 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
1answer
37 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 ...
0
votes
1answer
35 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
1answer
27 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
2answers
136 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 ...
0
votes
1answer
29 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 ...
1
vote
1answer
48 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
1answer
89 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 ...
2
votes
1answer
141 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
0answers
42 views

CPU/NET Leasehold model

Who can tell me about the leasing model of EOS, or where do you find the corresponding EOS code?
0
votes
1answer
21 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
1answer
163 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
1answer
293 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
1answer
516 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
1answer
91 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
2answers
257 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 ...
2
votes
2answers
102 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
1answer
53 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 ...
2
votes
1answer
214 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
1answer
230 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 ...
3
votes
2answers
231 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
1answer
68 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
1answer
121 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 ...
1
vote
1answer
181 views

What would happen when a transaction fails because “took too long”?

When call an action of a contract, sometimes meet "Transaction took too long" error. If a transaction fails because of "took too long" error, the transaction will be discarded in chain? Or next BP ...
2
votes
1answer
211 views

How should developers make money to cover cost of EOS CPU, bandwidth, and RAM?

So EOS puts the cost of transactions and storage onto the developers. ETH puts the cost onto users. Because these are decentralized apps, in theory, no one should be making a lot of money off of them....
3
votes
2answers
1k views

How to stake EOS to increase the amount of CPU time from a separate account?

I want to do a transaction in one of my account but it doesn't have enough CPU time. How can I stake more EOS from my another account to this account? I want to stop the delegation as soon as I finish ...
1
vote
2answers
4k views

How to increase billable CPU time?

I tried the execute a transaction to update public keys for my account. But I got the following error: billed CPU time (857 us) is greater than the maximum billable CPU time for the transaction (165 ...
6
votes
1answer
77 views

Are there 21 different CPU costs for your transaction because of subjective billing?

And does it also mean it's cheaper in CPU time when you wait until the BP with the fastest CPU is scheduled for the next 12 blocks?
5
votes
2answers
1k views

How Does NET/CPU Recharge Over Time?

I'm asking this because no one has been able to give a valid answer that applies to all cases. Also, in the EOS Devs Telegram, there are constantly people commenting that their NET/CPU hasn't come ...
2
votes
3answers
611 views

After 48 hours, CPU not reset

Looking at https://eosweb.net the CPU is still exhausted (solid green line). Does it have anything to do with token transfers ? Why doesn't it reset ? EDIT2: Reading the technical papers, there is ...
2
votes
2answers
966 views

Work around or disable CPU usage limit

In a private testing environment I've got a single nodeos instance. In case it is an important detail, note that the instance is not running the eosio.system contract. One of my own contracts is ...
4
votes
2answers
1k views

How long is the reset period of the cpu bandwith?

I can not find reliable information regarding the CPU bandwidth reset period. It is important for dApp developers because it affects costs for resources. I heard some say it is 24 hours, others say ...