Bitcoin Forum
May 06, 2024, 04:24:21 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: 300 MB or 300 vMB?  (Read 153 times)
_act_ (OP)
Hero Member
*****
Offline Offline

Activity: 882
Merit: 1170



View Profile
July 05, 2022, 10:28:10 AM
 #1



I am using mempool.space today and I noticed the memory pool capacity to be 300 MB, this means that the highest capacity of transactions that memory can hold can not be more than 300 MB, if more transactions are to be included, low fee transactions have to be removed, but what I am confused about is that is it in virtual MB or actual MB?

▄▄███████▄▄
▄██████████████▄
▄██████████████████▄
▄████▀▀▀▀███▀▀▀▀█████▄
▄█████████████▄█▀████▄
███████████▄███████████
██████████▄█▀███████████
██████████▀████████████
▀█████▄█▀█████████████▀
▀████▄▄▄▄███▄▄▄▄████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀
.
 MΞTAWIN  THE FIRST WEB3 CASINO   
.
.. PLAY NOW ..
1715012661
Hero Member
*
Offline Offline

Posts: 1715012661

View Profile Personal Message (Offline)

Ignore
1715012661
Reply with quote  #2

1715012661
Report to moderator
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.
1715012661
Hero Member
*
Offline Offline

Posts: 1715012661

View Profile Personal Message (Offline)

Ignore
1715012661
Reply with quote  #2

1715012661
Report to moderator
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18510


View Profile
July 05, 2022, 11:35:11 AM
Last edit: July 05, 2022, 12:14:47 PM by o_e_l_e_o
Merited by Welsh (6), bitmover (4), BlackHatCoiner (4), vapourminer (3), NeuroticFish (3), pooya87 (2), ABCbits (2), DdmrDdmr (1)
 #2

but what I am confused about is that is it in virtual MB or actual MB?
Neither in the way you are thinking about them.

The 300MB limit is in real MB, but it is not the size or the weight of the transactions in the mempool. Rather, it is the RAM usage of all these transactions deserialized.

If you look at mempool.space as you have, you'll notice the size of the mempool graph is only around 4 MvB, while the memory usage is 19 MB. A better site for visualizing this difference is here: https://statoshi.info/d/000000020/memory-pool?orgId=1. The green line in the top graph is the total transaction size, while the white line in the bottom graph is the dynamic memory usage of these transactions.
bitmover
Legendary
*
Offline Offline

Activity: 2296
Merit: 5921


bitcoindata.science


View Profile WWW
July 05, 2022, 06:28:13 PM
Last edit: July 06, 2022, 11:31:07 AM by bitmover
Merited by vapourminer (3)
 #3



I am using mempool.space today and I noticed the memory pool capacity to be 300 MB, this means that the highest capacity of transactions that memory can hold can not be more than 300 MB, if more transactions are to be included, low fee transactions have to be removed, but what I am confused about is that is it in virtual MB or actual MB?

Just  adding more information about virtual size, to complement o_e_l_e_o post:

Since segwit activation, each block size is now measured in virtual bytes.
One block has 1 million vbytes, or 1vMB.

This is different than the old measure (bytes and MB).
If you look at some block explores you will see transactions size and vsize, which are different depending on the input format. For example,  this transactions Size is 341 B and Virtual size is 179 vB
https://blockstream.info/tx/7569112a7a2ae5f0d2fef2668cbe8ff7f8d6cf87ac667fb92938acf854e9c2e2

You can read more about it here:
Quote
Weight units are a measurement used to compare the size of different Bitcoin transactions to each other in proportion to the consensus-enforced maximum block size limit. Weight units are also used to measure the size of other block chain data, such as block headers. As of Bitcoin Core 0.13.0 (released August 2016)[1], each weight unit represents 1/4,000,000th of the maximum size of a block.

Virtual size (vsize), also called virtual bytes (vbytes), are an alternative measurement, with one vbyte being equal to four weight units. That means the maximum block size measured in vsize is 1 million vbytes.

Edit: add reference
https://en.bitcoin.it/wiki/Weight_units

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

Activity: 3444
Merit: 10550



View Profile
July 06, 2022, 04:03:53 AM
 #4

Since segwit activation, each block size is now measured in virtual bytes.
One block has 1 million vbytes, or 1vMB.
If you are talking about the cap it is 4000000, not one. In other words the block weight has to be lower lower than this (maximum block weight). And the actual block size in raw bytes could be variable depending on how many transactions had how much witness and could be 1.1 MB, 1.5 MB, 2 MB, or almost 4 MB.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
NotATether
Legendary
*
Online Online

Activity: 1596
Merit: 6728


bitcoincleanup.com / bitmixlist.org


View Profile WWW
July 06, 2022, 04:38:57 AM
 #5

Not only is a nodes' mempool size measures in MB, it is practically impossible to pre-allocate a mempool size in vMB based on the nominal segwit tx size, because segwit transactions can be made arbitrarily small (up to a point) which means that there can't be a fixed size for the memory heap that stores this informaiton.

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

Activity: 2296
Merit: 5921


bitcoindata.science


View Profile WWW
July 06, 2022, 11:37:09 AM
Merited by Welsh (3), pooya87 (1)
 #6

Since segwit activation, each block size is now measured in virtual bytes.
One block has 1 million vbytes, or 1vMB.
If you are talking about the cap it is 4000000, not one. In other words the block weight has to be lower lower than this (maximum block weight). And the actual block size in raw bytes could be variable depending on how many transactions had how much witness and could be 1.1 MB, 1.5 MB, 2 MB, or almost 4 MB.

AFAIK, the block size may reach 4MB, but only 1vMB, according to bitcoin wiki.

Virtual bytes is just Weight Units/4. A block has 4000000 wu, but only 1000000vB

Quote
Virtual size (vsize), also called virtual bytes (vbytes), are an alternative measurement, with one vbyte being equal to four weight units. That means the maximum block size measured in vsize is 1 million vbytes.

....
The maximum size of a block in bytes is nearly equal in number to the maximum amount of block weight units, so 4M weight units allows a block of almost 4M bytes (4MB). This is not a somehow "made-up" size; the maximum block size is really almost 4MB on-disk and over-the-wire. However, this maximum can only be reached if the block is full of very weirdly-formatted transactions, so it should not usually be seen.
https://en.bitcoin.it/wiki/Weight_units

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
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!