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.

1
vote
0answers
15 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
28 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
34 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
18 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
12 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 ...
1
vote
0answers
20 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
40 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?
1
vote
1answer
93 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
40 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
43 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
52 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
28 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 ...
1
vote
0answers
48 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
84 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
49 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
47 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
68 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
107 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
136 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....
2
votes
2answers
447 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
446 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
57 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
1answer
429 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
252 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
329 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
680 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
87 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 ...