Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
20 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 ...
0
votes
1answer
20 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
17 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
17 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
65 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
15 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
26 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
47 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
55 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
38 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
0answers
23 views

Why should target_block_cpu_usage_pct be less than 10000?

I noticed that eosriobrazil's proposal to upgrade target_block_cpu_usage_pct from 10% to 20% has been implemented on EOS mainnet. My understanding is that this parameter sets a threshold after which ...
0
votes
1answer
13 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
44 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
55 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?
2
votes
1answer
181 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
51 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
56 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
67 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
34 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
2answers
98 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 ...
4
votes
1answer
109 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
73 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?
3
votes
1answer
51 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
78 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
132 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
150 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
692 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
720 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
62 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
647 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
361 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
438 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 ...
3
votes
2answers
966 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 ...
2
votes
2answers
90 views

What EOS Chain Information/Interaction do you wish was more publicly available?

I've decided to build a website that will display chain metrics as it relates to EOSIO. I am thinking of integrating with Scatter. My initial ideas are to show: Cost Per Byte of RAM currently and ...