Bitcoin Forum
April 19, 2024, 04:33:35 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: 1 2 [All]
  Print  
Author Topic: Bitcoin is strangling my computer  (Read 2113 times)
fatbitcoinfan (OP)
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile
April 20, 2012, 08:53:02 PM
 #1

Hello all,

When I run bitcoin lately I've found that my computer becomes very slow. Iotop tells me that bitcoin is reading/writing about 1 MB per second all the time and taking up between 30 and 90% of my cpu.

Is anybody else having this problem? Is there a way to fix it?
Every time a block is mined, a certain amount of BTC (called the subsidy) is created out of thin air and given to the miner. The subsidy halves every four years and will reach 0 in about 130 years.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713501215
Hero Member
*
Offline Offline

Posts: 1713501215

View Profile Personal Message (Offline)

Ignore
1713501215
Reply with quote  #2

1713501215
Report to moderator
SgtSpike
Legendary
*
Offline Offline

Activity: 1400
Merit: 1005



View Profile
April 20, 2012, 08:57:11 PM
 #2

Use a lite client.  Bitcoin is getting more and more cumbersome to run the full client.  The only solution (for now) is to let dedicated servers run the software, and utilize it with a lite client.
fatbitcoinfan (OP)
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile
April 20, 2012, 09:03:53 PM
 #3

Thanks, Sergeant,

Is there a lite client for linux?
SgtSpike
Legendary
*
Offline Offline

Activity: 1400
Merit: 1005



View Profile
April 20, 2012, 09:04:38 PM
 #4

Yes.  I've heard Electrum is good, though I haven't used it myself.  Read up on it before installing.

http://ecdsa.org/electrum/
Agent Provocateur
Full Member
***
Offline Offline

Activity: 198
Merit: 100


View Profile
April 20, 2012, 09:06:55 PM
 #5

u can use an online wallet, too. but take into account that it's online
https://www.strongcoin.com/
rini17
Sr. Member
****
Offline Offline

Activity: 340
Merit: 250


GO http://bitcointa.lk !!! My new nick: jurov


View Profile WWW
April 20, 2012, 11:38:31 PM
 #6

If you have desktop machine, alternate solution is to have dedicated HDD for bitcoin, so that it isn't trashing rest of system. Even old IDE relic will do (it may only have sluggish response sometimes).

CoinBr.com: First online MPEx brokerage launched beta! Easy to use interface and reasonable fees. Charts for MPEx stocks: live.coinbr.com * My Blog *
Nyaaan
Full Member
***
Offline Offline

Activity: 140
Merit: 100


View Profile WWW
April 21, 2012, 07:29:25 AM
 #7

You need to perform CPR or your computer will suffocate and die.
Raoul Duke
aka psy
Legendary
*
Offline Offline

Activity: 1358
Merit: 1002



View Profile
April 21, 2012, 07:35:12 AM
 #8

You can always have your client off and only start it when you need to send a transaction or when you're expecting one.
Works for most of my friends.

I also recommend the CPR. Don't let it die.
mokahless
Sr. Member
****
Offline Offline

Activity: 471
Merit: 256



View Profile
April 21, 2012, 08:24:05 AM
 #9

Dedicated server perhaps? And RDP to it when you need to perform a transaction?

fatbitcoinfan (OP)
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile
April 21, 2012, 11:01:42 AM
 #10

Thanks to everyone for the replies.

I do mostly just turn it on when I need to perform a transaction now. The slowness is a problem even for the time that it needs to do that. An online wallet would solve the problem all right but that defeats a lot of the things that made bitcoin attractive to me.

For the moment electrum looks good. I might dig out an old HD to dedicate to bitcoin. Maybe an SD card will do. A transplant for long-term health after the emergency CPR!

I imagine the problem will only get worse as bitcoin becomes more popular. It's a bit worrying for the future of bitcoin. Will the cumulative burden eventually overwhelm even hi-spec dedicated bitcoin servers?

More people that I talk to now already know about bitcoin, and it's getting to the point where I can basically assume that anybody I meet that knows about Linux also knows about bitcoin. I hope the system doesn't get overwhelmed.
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
April 22, 2012, 05:33:07 AM
 #11

An online wallet would solve the problem all right but that defeats a lot of the things that made bitcoin attractive to me.

There are varyious types of online e-wallets.  A couple examples of hosted E-Wallets that hold your bitcoin keys would Paytunia and InstaWallet, for example.  The benefit is that you don't need to keep a backup yourself.  The downside is you are extending trust to the E-Wallet operator.

There are also Javascript-based wallets, such as StrongCoin and My Wallet from Blockchain.info.  Both of those do the encryption in the browser and then store only the encrypted data on the server host.  This gives the benefit of an online wallet without the security risk when trusting the wallet service's operator with access to your private keys.

It's a bit worrying for the future of bitcoin. Will the cumulative burden eventually overwhelm even hi-spec dedicated bitcoin servers?

On decent hardware the resources consumed by the Bitcoin client are fairly negligible.  Your laptop is probably at the edge of the "too limited in resources to provide a smooth experience".  It is probably perfectly functional as a bitcoin node, just that it doesn't allow for multitasking with your other resource-consuming functions.

One of the improvements with v0.6 was a much faster configuration setting for the database.  Are you still finding it problematic?

Related:
 - http://en.bitcoin.it/wiki/Scalability

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


fuxianhui888
Full Member
***
Offline Offline

Activity: 205
Merit: 100



View Profile
April 22, 2012, 06:57:35 AM
 #12

linuxcoin is better Grin Grin Grin Grin
arby
Donator
Member
*
Offline Offline

Activity: 112
Merit: 10


keybase.io/arblarg


View Profile
April 22, 2012, 07:20:19 AM
 #13

electrum works just fine for me and its light.

also, the bitcoin-qt application is using a lot of CPU when its downloading the blockchain, then it will settle down.

if the blockchain is already downloaded, there may be another issue with it.

Jabber/XMPP: arby@darkness.su
fatbitcoinfan (OP)
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile
April 27, 2012, 06:14:55 PM
 #14

I installed version 0.6 and it does seem to be much better!
OutputKnight
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
April 28, 2012, 01:31:17 AM
 #15

I have similar problem, computer freezes for a moment (15s) when BitCoin client is open. CPU usage is not high, physical memory is still available. What resource is it starving my poor computer of?
LZ
Legendary
*
Offline Offline

Activity: 1722
Merit: 1072


P2P Cryptocurrency


View Profile
April 28, 2012, 02:14:14 AM
 #16

You may try MultiBit. It's much faster.

My OpenPGP fingerprint: 5099EB8C0F2E68C63B4ECBB9A9D0993E04143362
Foxpup
Legendary
*
Offline Offline

Activity: 4340
Merit: 3041


Vile Vixen and Miss Bitcointalk 2021-2023


View Profile
April 28, 2012, 02:20:30 AM
 #17

I have similar problem, computer freezes for a moment (15s) when BitCoin client is open. CPU usage is not high, physical memory is still available. What resource is it starving my poor computer of?

Disk I/O. The blockchain file is over a gigabyte in size, so it takes a while to read or write to it, and while Bitcoin is doing that, you won't be able to anything else with your hard drive until it's finished.

Will pretend to do unspeakable things (while actually eating a taco) for bitcoins: 1K6d1EviQKX3SVKjPYmJGyWBb1avbmCFM4
I am not on the scammers' paradise known as Telegram! Do not believe anyone claiming to be me off-forum without a signed message from the above address! Accept no excuses and make no exceptions!
faidsaid
Newbie
*
Offline Offline

Activity: 43
Merit: 0


View Profile
April 28, 2012, 02:23:18 AM
 #18

Are you sure that you are holding it the right way?
MoonShadow
Legendary
*
Offline Offline

Activity: 1708
Merit: 1007



View Profile
April 28, 2012, 02:28:07 AM
 #19

I imagine the problem will only get worse as bitcoin becomes more popular. It's a bit worrying for the future of bitcoin. Will the cumulative burden eventually overwhelm even hi-spec dedicated bitcoin servers?


Yes and no.  Eventually running a full client is going to be like drinking from a firehose, but only professional miners, wallet services, banks, etc are going to bother.  Most people will be using thin clients that don't maintain a complete blockchain that is dependent upon a central server to tell it what transactions are important.  Much like BitcoinSpinner on Android or Electrum works now.

"The powers of financial capitalism had another far-reaching aim, nothing less than to create a world system of financial control in private hands able to dominate the political system of each country and the economy of the world as a whole. This system was to be controlled in a feudalist fashion by the central banks of the world acting in concert, by secret agreements arrived at in frequent meetings and conferences. The apex of the systems was to be the Bank for International Settlements in Basel, Switzerland, a private bank owned and controlled by the world's central banks which were themselves private corporations. Each central bank...sought to dominate its government by its ability to control Treasury loans, to manipulate foreign exchanges, to influence the level of economic activity in the country, and to influence cooperative politicians by subsequent economic rewards in the business world."

- Carroll Quigley, CFR member, mentor to Bill Clinton, from 'Tragedy And Hope'
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
April 28, 2012, 03:24:38 AM
 #20

I have similar problem, computer freezes for a moment (15s) when BitCoin client is open. CPU usage is not high, physical memory is still available. What resource is it starving my poor computer of?

What o/s, cpu, and amount of ram do you have?

My low-end laptop runs particularly bad when I combine Skype, Chrome, XChat plus the Bitcoin client (on Ubuntu 11.04).  When using a different browser or without Skype and XChat running simultaneously the problem doesn't seem to occur.  I haven't upgraded to Bitcoin v0.6 yet.

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


OutputKnight
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
April 28, 2012, 03:44:59 AM
 #21

I have similar problem, computer freezes for a moment (15s) when BitCoin client is open. CPU usage is not high, physical memory is still available. What resource is it starving my poor computer of?

What o/s, cpu, and amount of ram do you have?

My low-end laptop runs particularly bad when I combine Skype, Chrome, XChat plus the Bitcoin client (on Ubuntu 11.04).  When using a different browser or without Skype and XChat running simultaneously the problem doesn't seem to occur.  I haven't upgraded to Bitcoin v0.6 yet.

Windows XP
1GB RAM but only 672 MB are used
Pentium 4 3.00 GHz buy only 5-7% are used
I use Firefox. Practically everything else is closed. That is the first thing I have done to eliminate interference.

IO that is possible. However, BitCoin should compete with other applications for IO and never get more than 50% when something else is doing IO. That should not lock up the computer.
Foxpup
Legendary
*
Offline Offline

Activity: 4340
Merit: 3041


Vile Vixen and Miss Bitcointalk 2021-2023


View Profile
April 28, 2012, 04:02:02 AM
 #22

IO that is possible. However, BitCoin should compete with other applications for IO and never get more than 50% when something else is doing IO. That should not lock up the computer.

There's no such thing as a "percentage" of disk I/O. A hard drive can physically only access one file at a time. If one program is accessing file A, and another program wants to access file B, and files A and B are both on the same disk, the second program will not be able to continue running until the first program has finished what it's doing. There's no way for each program to get "50%" of the disk, that just doesn't make sense.

Will pretend to do unspeakable things (while actually eating a taco) for bitcoins: 1K6d1EviQKX3SVKjPYmJGyWBb1avbmCFM4
I am not on the scammers' paradise known as Telegram! Do not believe anyone claiming to be me off-forum without a signed message from the above address! Accept no excuses and make no exceptions!
OutputKnight
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
April 28, 2012, 04:15:02 AM
 #23

[...]
There's no such thing as a "percentage" of disk I/O. A hard drive can physically only access one file at a time. If one program is accessing file A, and another program wants to access file B, and files A and B are both on the same disk, the second program will not be able to continue running until the first program has finished what it's doing. There's no way for each program to get "50%" of the disk, that just doesn't make sense.

It is true that a hard drive can read only one allocation block at a time. However, it takes only a fraction of a second. Then it moves to serve another IO request. Reading a file consists of a lot of IO requests. You can read many files concurrently without problem. As you type, OS has dozen of different files open for reading, including registry and all dlls.

There are mechanisms in OS to prohibit concurrent modification of the same file. However, what file BitCoin is using that Windows or Firefox needs?
Foxpup
Legendary
*
Offline Offline

Activity: 4340
Merit: 3041


Vile Vixen and Miss Bitcointalk 2021-2023


View Profile
April 28, 2012, 04:46:08 AM
 #24

[...]
There's no such thing as a "percentage" of disk I/O. A hard drive can physically only access one file at a time. If one program is accessing file A, and another program wants to access file B, and files A and B are both on the same disk, the second program will not be able to continue running until the first program has finished what it's doing. There's no way for each program to get "50%" of the disk, that just doesn't make sense.

It is true that a hard drive can read only one allocation block at a time. However, it takes only a fraction of a second. Then it moves to serve another IO request. Reading a file consists of a lot of IO requests. You can read many files concurrently without problem. As you type, OS has dozen of different files open for reading, including registry and all dlls.

There are mechanisms in OS to prohibit concurrent modification of the same file. However, what file BitCoin is using that Windows or Firefox needs?
Having a file open for reading simply means that the OS will prevent other programs from trying to write to that file, and has nothing to do with the physical operation of the hard drive. The hard drive is not actually doing anything when a file is "open". It only actually reads data from the disk when the file is first opened, after that it is free to do other things. Normally it only takes a fraction of second to actually read the data, but extremely large files take a lot longer.

Will pretend to do unspeakable things (while actually eating a taco) for bitcoins: 1K6d1EviQKX3SVKjPYmJGyWBb1avbmCFM4
I am not on the scammers' paradise known as Telegram! Do not believe anyone claiming to be me off-forum without a signed message from the above address! Accept no excuses and make no exceptions!
nybble41
Full Member
***
Offline Offline

Activity: 152
Merit: 100


View Profile
April 29, 2012, 04:25:21 AM
 #25

I was having similar performance issues myself. I've been running the official Bitcoin client since the blockchain was only a hundred MB or so, and it was taking several minutes just to get past the splash screen. Defragmenting the blockchain database reduced that to a few seconds. Apparently growing a file by over a gigabyte in small increments, over a long period of time, leads to very inefficient access patterns. Who would have thought?  Smiley

Anyway, to defragment the files I just made copies of blk0001.dat and blkindex.dat in the wallet directory ($HOME/.bitcoin by default on Unix platforms), and then renamed the copies over the original files. To avoid corruption, be sure the program isn't running at the time.
nybble41
Full Member
***
Offline Offline

Activity: 152
Merit: 100


View Profile
April 29, 2012, 04:38:42 AM
 #26

Having a file open for reading simply means that the OS will prevent other programs from trying to write to that file, and has nothing to do with the physical operation of the hard drive. The hard drive is not actually doing anything when a file is "open". It only actually reads data from the disk when the file is first opened, after that it is free to do other things. Normally it only takes a fraction of second to actually read the data, but extremely large files take a lot longer.
This is incorrect. Opening a file merely returns a reference to it; the contents of the file are not read into memory. At most a few blocks from the beginning of the file (at most a few MB) might be read in under the expectation that the application will ask for them next. The rest of the data is only read from the hard disk due to requests from the application. Once the data has been read into memory, future requests for the same data may not require access to the disk--but there is a limit to how much can be cached. In general, the total sizes of all the open files add up to much more than the amount RAM available to cache them. If the data isn't in the cache it will have to be re-read from the disk.

Requests from multiple applications can be interleaved, and a good I/O scheduler will make sure that requests from one application do not completely prevent other applications from accessing the disk. There will be a impact on performance, of course, since the disk is shared, and if a lot of seeking is required to access both files the slowdown can be significant compared to linear reads. Minimizing seeking by grouping nearby requests is also part of the I/O scheduler's job.
corourke
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
April 29, 2012, 04:09:16 PM
 #27

I noticed this too! My FPS for games was getting killed JUST running bitcoin. No mining involved. Thanks for all the useful info Smiley
Red Emerald
Hero Member
*****
Offline Offline

Activity: 742
Merit: 500



View Profile WWW
April 29, 2012, 05:04:20 PM
 #28

blockchain.info is a web wallet that gives you full control of the private keys if you don't want a full desktop app.

rvbfreak
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
April 29, 2012, 05:26:27 PM
 #29

Why is the actual bitcoin client so cumbersome?Without having the 'generate' function turned on, it seems pretty lightweight to me.
Red Emerald
Hero Member
*****
Offline Offline

Activity: 742
Merit: 500



View Profile WWW
April 29, 2012, 06:55:14 PM
 #30

Why is the actual bitcoin client so cumbersome?Without having the 'generate' function turned on, it seems pretty lightweight to me.
I usually find just the initial blockchain download cumbersome.  After that, my system runs fine, but I also have a pretty powerful system.

Each block has to be verified, and doing this requires a bunch of math that can slow a CPU down.

Pages: 1 2 [All]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!