Bitcoin Forum
June 14, 2024, 12:02:39 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Will a 2GB RAM VPS run Bitcoin Core?  (Read 104 times)
NotATether (OP)
Legendary
*
Offline Offline

Activity: 1638
Merit: 6893


bitcoincleanup.com / bitmixlist.org


View Profile WWW
June 11, 2024, 10:41:59 AM
 #1

I needed to get a spare VPS to run some tests with Bitcoin Core, and this was the only one that met the disk requirements.

The maxmempool and the dbcache are set to the bare minimum (5 and 6 MB respectively).

Currently, there is 1.2GiB free while I am running Core. There are no other programs running on the system:

Code:
              total        used        free      shared  buff/cache   available
Mem:           1.9Gi       775Mi       113Mi       1.0Mi       1.2Gi       1.2Gi
Swap:             0B          0B          0B

It is currently on around block 450,000 in the IBD.

Yes, I am aware that this setup will thrash the disk a lot. However, the disk and network are in excellent condition - NVMe SSD and 1Gbps network respectively. So how long should I expect the validation to take?

And will I run out of memory before it finishes?

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
ABCbits
Legendary
*
Offline Offline

Activity: 2912
Merit: 7560


Crypto Swap Exchange


View Profile
June 11, 2024, 11:01:50 AM
 #2

Yes, I am aware that this setup will thrash the disk a lot.

And you probably should be concerned getting warning from the VPS provider.

And will I run out of memory before it finishes?

Probably no, people used to run full node on older Raspberry Pi which have only 1GB RAM. But you probably want to read https://github.com/bitcoin/bitcoin/blob/master/doc/reduce-memory.md.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
DaveF
Legendary
*
Online Online

Activity: 3514
Merit: 6342


Crypto Swap Exchange


View Profile WWW
June 11, 2024, 11:46:32 AM
 #3

...
Yes, I am aware that this setup will thrash the disk a lot. However, the disk and network are in excellent condition - NVMe SSD and 1Gbps network respectively. So how long should I expect the validation to take?

Without more info the last time I tried something like this which was close to a year ago it was just about 3 weeks.

And will I run out of memory before it finishes?

Memory, no. Patience perhaps.

Do you have a complete fully synced node that you trust? You can just copy everything over.

-Dave

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
NotATether (OP)
Legendary
*
Offline Offline

Activity: 1638
Merit: 6893


bitcoincleanup.com / bitmixlist.org


View Profile WWW
June 11, 2024, 12:57:42 PM
 #4

Yes, I am aware that this setup will thrash the disk a lot.

And you probably should be concerned getting warning from the VPS provider.

What do you mean?

@DaveF unfortunately, I do not have any other nodes elsewhere at the moment.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
LoyceV
Legendary
*
Offline Offline

Activity: 3346
Merit: 16829


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
June 11, 2024, 01:48:59 PM
Last edit: June 11, 2024, 01:59:58 PM by LoyceV
 #5

You should read Sharing for Bitcoin Core download: the cheapest pay-per-hour VPS I found for my experience.
I think it will work, but I wouldn't do it.

I am aware that this setup will thrash the disk a lot.
Disk I/O is shared and prolonged high load may get you suspended. I've used load limiting software on a VPS in the past on a VPS.

I'm curious: did you get a VPS with 600+ GB NVMe and very little RAM? That's a weird combination.

@DaveF unfortunately, I do not have any other nodes elsewhere at the moment.
If pruning works for you, I can get you my copy of Bitcoin Core. I only have 300 GB available on the server so can't offer a full copy.
I checked both my pay-per-hour VPS options, but the only ones with enough storage use HDD.

DaveF
Legendary
*
Online Online

Activity: 3514
Merit: 6342


Crypto Swap Exchange


View Profile WWW
June 11, 2024, 03:23:04 PM
 #6

Yes, I am aware that this setup will thrash the disk a lot.

And you probably should be concerned getting warning from the VPS provider.

What do you mean?

@DaveF unfortunately, I do not have any other nodes elsewhere at the moment.

Any reason you don't run this locally? 1TB SSDs and some older i5/i7 machines are not that expensive anymore.
As a few of us have discussed even NEW N95 based mini PCs with 16GB and 1TB are under $249

I know it's not an insignificant amount of money but paying every month will eventually cost you more.

-Dave

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
NotATether (OP)
Legendary
*
Offline Offline

Activity: 1638
Merit: 6893


bitcoincleanup.com / bitmixlist.org


View Profile WWW
June 11, 2024, 05:56:47 PM
 #7

I'm curious: did you get a VPS with 600+ GB NVMe and very little RAM? That's a weird combination.

Yes, I ordered that a month ago. This server was originally for backup storage, but I have since subscribed with a seed host and moved them there. My vendor lets me configure the specs of the server so I went with 2GB to make it as cheap as possible, but I quickly regretted not making it 4GB.

This is a boutique host, with crazy stuff like 10Gbps Ethernet offered. But I will take your advice to move my node somewhere else. I'm just not sure where at the moment.

PS: Pruning will not work for me, as my application requires a node with -txindex. I only intend to run it for a few days to conduct some testing.

Any reason you don't run this locally? 1TB SSDs and some older i5/i7 machines are not that expensive anymore.
As a few of us have discussed even NEW N95 based mini PCs with 16GB and 1TB are under $249

My ISP will definitely severely throttle my internet if I attempt to do that. (I do not exactly know what the fair use policy here is, but anything above 100GB will definitely trigger it.)

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
LoyceV
Legendary
*
Offline Offline

Activity: 3346
Merit: 16829


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
June 11, 2024, 06:14:12 PM
 #8

I only intend to run it for a few days to conduct some testing.
Sounds perfect for a cloud provider where you pay per hour.

Quote
My ISP will definitely severely throttle my internet if I attempt to do that. (I do not exactly know what the fair use policy here is, but anything above 100GB will definitely trigger it.)
That sucks, which country is that? My laptop downloads 10 GB per day on average, and that's just one of many devices in our household. They never complain if I max out my connection for a few days.

Easteregg69
Sr. Member
****
Offline Offline

Activity: 1458
Merit: 264



View Profile
June 11, 2024, 06:31:07 PM
Last edit: June 11, 2024, 06:43:00 PM by Easteregg69
 #9

It will constantly swap on the hard-drive unless something incremental happens. Judging from headline.

I assume your not a big fan of judges.

Like you would kill a great idea for fun. You told me it was immutable and I can go on about it all night.

How big is the file? ay. You know the Answer. Cheers. Royal Classic. Always some percentage vol.

You need top of the line hardware. Or go "tokenized". Web3. You add an "or else".

I see who wants to talk about ownership. "Come and see my car..".

Throw some "shit" and see what sticks.
NotATether (OP)
Legendary
*
Offline Offline

Activity: 1638
Merit: 6893


bitcoincleanup.com / bitmixlist.org


View Profile WWW
June 11, 2024, 06:42:24 PM
 #10

Quote
My ISP will definitely severely throttle my internet if I attempt to do that. (I do not exactly know what the fair use policy here is, but anything above 100GB will definitely trigger it.)
That sucks, which country is that? My laptop downloads 10 GB per day on average, and that's just one of many devices in our household. They never complain if I max out my connection for a few days.

Let's just say it's a third-world country, which generally do not have much internet resources and DC (data center) bandwidth compared to first-world countries.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Easteregg69
Sr. Member
****
Offline Offline

Activity: 1458
Merit: 264



View Profile
June 11, 2024, 06:44:38 PM
 #11

Quote
My ISP will definitely severely throttle my internet if I attempt to do that. (I do not exactly know what the fair use policy here is, but anything above 100GB will definitely trigger it.)
That sucks, which country is that? My laptop downloads 10 GB per day on average, and that's just one of many devices in our household. They never complain if I max out my connection for a few days.

Let's just say it's a third-world country, which generally do not have much internet resources and DC (data center) bandwidth compared to first-world countries.

Ownership is about paying the bills. It's the same all over the place. I stopped listening.

Throw some "shit" and see what sticks.
DaveF
Legendary
*
Online Online

Activity: 3514
Merit: 6342


Crypto Swap Exchange


View Profile WWW
June 11, 2024, 09:16:37 PM
 #12

...My ISP will definitely severely throttle my internet if I attempt to do that. (I do not exactly know what the fair use policy here is, but anything above 100GB will definitely trigger it.)...

Might be worth it in the long run if you download a bunch one month a bunch the next month and so on.
Even if it takes 6+ months and some trips to someplace with free wi-fi if it exits, but in the end you would have a complete node.

After that it's just copy the data to a new node when you need it and download whatever came down after you finished.

Or, and I'm just putting this out there, someone here could download the blockchain for you and put it on an SSD and ship it to you.
Yes, you would have to trust them but it might be worth it.

-Dave


█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
LoyceV
Legendary
*
Offline Offline

Activity: 3346
Merit: 16829


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
June 12, 2024, 05:36:05 AM
 #13

Or, and I'm just putting this out there, someone here could download the blockchain for you and put it on an SSD and ship it to you.
Yes, you would have to trust them but it might be worth it.
If the internet is bad, I kinda assume the post isn't very reliable either. But it could work, and OP can just rescan the blockchain to make sure it's legit.

ABCbits
Legendary
*
Offline Offline

Activity: 2912
Merit: 7560


Crypto Swap Exchange


View Profile
June 12, 2024, 09:30:59 AM
 #14

Yes, I am aware that this setup will thrash the disk a lot.

And you probably should be concerned getting warning from the VPS provider.

What do you mean?


As stated by @LoyceV, i refer to high and long disk I/O usage. Many VPS provider state it's against their ToS or acceptable usage. Here are few examples,

VPS customers are expected to monitor their usage and utilize our services in a manner that is considered fair share and not abusive to the Disk I/O or CPU. If you require dedicated resources and want to max it out, we would recommend getting your own dedicated server (feel free to contact our sales team for a discounted quote).

Excessive Use of Shared System Resources

You may not use any shared System provided by DigitalOcean in a way that unnecessarily interferes with the normal operation of the shared System, or that consumes a disproportionate share of the resources of the System. For example, we may require you to repair coding abnormalities in your cloud-hosted code if it unnecessarily conflicts with other customers’ use of the Services. You agree that we may quarantine or delete any data stored on a shared System if the data is infected with a virus, or is otherwise corrupted, and has the potential to infect or corrupt the System or other customers’ data that is stored on the same system.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
LoyceV
Legendary
*
Offline Offline

Activity: 3346
Merit: 16829


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
June 12, 2024, 09:37:36 AM
 #15

Many VPS provider state it's against their ToS or acceptable usage.
From what I've seen, cloud providers usually throttle your resources, so you can't (ab)use more than you're allowed. I prefer that over suspending the VPS.

Pages: [1]
  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!