Bitcoin Forum
April 24, 2024, 07:15:42 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: Bitcoin is strangling my computer  (Read 2114 times)
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.
1713942942
Hero Member
*
Offline Offline

Posts: 1713942942

View Profile Personal Message (Offline)

Ignore
1713942942
Reply with quote  #2

1713942942
Report to moderator
"With e-currency based on cryptographic proof, without the need to trust a third party middleman, money can be secure and transactions effortless." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713942942
Hero Member
*
Offline Offline

Posts: 1713942942

View Profile Personal Message (Offline)

Ignore
1713942942
Reply with quote  #2

1713942942
Report to moderator
Foxpup
Legendary
*
Offline Offline

Activity: 4340
Merit: 3042


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: 3042


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!