Skip to content

Runtime: out of memory: cannot allocate 4194304-byte block (1491501056 in use) fatal error: out of memory #25709

@Fishh40

Description

@Fishh40

System information

CPU: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz 3.30 GHz
RAM: 16 GB
System: 64-bit
Free space C-drive (Windows): ~5 GB
Free space D-drive (Execution client): ~275 GB
Free space E-drive (Consensus client): ~800 GB

Geth version: v1.10.23
OS & Version: Windows 10 Pro
Commit hash : no developer - only running ETH validator

Expected behaviour

After updating to Geth v1.10.23 I want to run the execution client. I first deleted the old v1.10.21 geth.exe files, and then reïnstalled the v1.10.23. Running this should work and sync to the existing database (that is on the D-drive) when using this command: "geth.exe --datadir "D:\Execution". This seems not to be the case...

Actual behaviour

So if we try to use the command you can see above, we get a fews blocks in, but within the minute we get the error: "runtime: out of memory: cannot allocate 4194304-byte block (1491501056 in use) fatal error: out of memory"

There is nothing running in the background except a timesync app, all the rest is closed. Execution node uses 5-6GB RAM of the 16 GB available. No other parameters go into abnormal zones.

Steps to reproduce the behaviour

The issue persists even after restarting device or execution node and running the command: "geth.exe --datadir "D:\Execution"

Backtrace

I discussed this with the Prysm Team, and here we got something strange out of the log. This makes us think that geth is making my machine as 32-bit and not 64-bit. It feels like you aren't accounting for windows machines correctly

WARN [09-07|11:17:55.010] Lowering memory allowance on 32bit arch available=16351 addressable=2048

Log from execution client (full log in attachment):
log.txt

C:\Users\TV_Storage>geth.exe --datadir "D:\Execution"
INFO [09-07|11:17:54.952] Starting Geth on Ethereum mainnet...
INFO [09-07|11:17:54.998] Bumping default cache on mainnet         provided=1024 updated=4096
INFO [09-07|11:17:55.005] Maximum peer count                       ETH=50 LES=0 total=50
WARN [09-07|11:17:55.010] Lowering memory allowance on 32bit arch  available=16351 addressable=2048
WARN [09-07|11:17:55.010] Sanitizing cache to Go's GC limits       provided=4096 updated=682
INFO [09-07|11:17:55.011] Set global gas cap                       cap=50,000,000
INFO [09-07|11:17:55.013] Allocated trie memory caches             clean=102.00MiB dirty=170.00MiB
INFO [09-07|11:17:55.013] Allocated cache and file handles         database=D:\Execution\geth\chaindata cache=340.00MiB handles=8192
INFO [09-07|11:17:56.405] Found legacy ancient chain path          location=D:\Execution\geth\chaindata\ancient
INFO [09-07|11:17:56.415] Opened ancient database                  database=D:\Execution\geth\chaindata\ancient readonly=false
INFO [09-07|11:17:56.415]
INFO [09-07|11:17:56.415] ---------------------------------------------------------------------------------------------------------------------------------------------------------
INFO [09-07|11:17:56.415] Chain ID:  1 (mainnet)
INFO [09-07|11:17:56.415] Consensus: Beacon (proof-of-stake), merging from Ethash (proof-of-work)
INFO [09-07|11:17:56.415]
INFO [09-07|11:17:56.415] Pre-Merge hard forks:
INFO [09-07|11:17:56.415]  - Homestead:                   1150000  (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/homestead.md)
INFO [09-07|11:17:56.415]  - DAO Fork:                    1920000  (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/dao-fork.md)
INFO [09-07|11:17:56.415]  - Tangerine Whistle (EIP 150): 2463000  (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/tangerine-whistle.md)
INFO [09-07|11:17:56.415]  - Spurious Dragon/1 (EIP 155): 2675000  (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/spurious-dragon.md)
INFO [09-07|11:17:56.415]  - Spurious Dragon/2 (EIP 158): 2675000  (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/spurious-dragon.md)
INFO [09-07|11:17:56.415]  - Byzantium:                   4370000  (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/byzantium.md)
INFO [09-07|11:17:56.415]  - Constantinople:              7280000  (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/constantinople.md)
INFO [09-07|11:17:56.415]  - Petersburg:                  7280000  (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/petersburg.md)
INFO [09-07|11:17:56.415]  - Istanbul:                    9069000  (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/istanbul.md)
INFO [09-07|11:17:56.415]  - Muir Glacier:                9200000  (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/muir-glacier.md)
INFO [09-07|11:17:56.415]  - Berlin:                      12244000 (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/berlin.md)
INFO [09-07|11:17:56.415]  - London:                      12965000 (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/london.md)
INFO [09-07|11:17:56.415]  - Arrow Glacier:               13773000 (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/arrow-glacier.md)
INFO [09-07|11:17:56.425]  - Gray Glacier:                15050000 (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/gray-glacier.md)
INFO [09-07|11:17:56.425]
INFO [09-07|11:17:56.425] Merge configured:
INFO [09-07|11:17:56.425]  - Hard-fork specification:    https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/paris.md
INFO [09-07|11:17:56.425]  - Network known to be merged: false
INFO [09-07|11:17:56.425]  - Total terminal difficulty:  58750000000000000000000
INFO [09-07|11:17:56.425]  - Merge netsplit block:       <nil>
INFO [09-07|11:17:56.425] ---------------------------------------------------------------------------------------------------------------------------------------------------------
INFO [09-07|11:17:56.425]
INFO [09-07|11:17:59.557] Disk storage enabled for ethash caches   dir=D:\Execution\geth\ethash count=3
INFO [09-07|11:17:59.558] Disk storage enabled for ethash DAGs     dir=C:\Users\TV_Storage\AppData\Local\Ethash count=2
INFO [09-07|11:17:59.562] Initialising Ethereum protocol           network=1 dbversion=8
INFO [09-07|11:17:59.566] Loaded most recent local header          number=15,471,793 hash=9f5093..668bea td=57,946,766,311,083,637,150,481 age=2d20h16m
INFO [09-07|11:17:59.566] Loaded most recent local full block      number=15,471,793 hash=9f5093..668bea td=57,946,766,311,083,637,150,481 age=2d20h16m
INFO [09-07|11:17:59.566] Loaded most recent local fast block      number=15,471,793 hash=9f5093..668bea td=57,946,766,311,083,637,150,481 age=2d20h16m
INFO [09-07|11:17:59.566] Loaded last fast-sync pivot marker       number=15,383,507
WARN [09-07|11:17:59.567] Head state missing, repairing            number=15,471,793 hash=9f5093..668bea snaproot=f7fe6e..265040
INFO [09-07|11:18:01.692] Loaded most recent local header          number=15,471,793 hash=9f5093..668bea td=57,946,766,311,083,637,150,481 age=2d20h16m
INFO [09-07|11:18:01.692] Loaded most recent local full block      number=15,470,315 hash=60968d..5232b8 td=57,928,235,318,341,406,366,306 age=3d1h55m
INFO [09-07|11:18:01.692] Loaded most recent local fast block      number=15,471,793 hash=9f5093..668bea td=57,946,766,311,083,637,150,481 age=2d20h16m
INFO [09-07|11:18:01.692] Loaded last fast-sync pivot marker       number=15,383,507
WARN [09-07|11:18:01.692] Enabling snapshot recovery               chainhead=15,470,315 diskbase=15,471,580
WARN [09-07|11:18:01.872] Snapshot is not continuous with chain    snaproot=552c67..4b46fc chainroot=5a0b18..0d3b16
INFO [09-07|11:18:01.872] Loaded local transaction journal         transactions=0 dropped=0
INFO [09-07|11:18:01.872] Regenerated local transaction journal    transactions=0 accounts=0
WARN [09-07|11:18:01.872] Switch sync mode from snap sync to full sync
WARN [09-07|11:18:01.872] Chain pre-merge, sync via PoW (ensure beacon client is ready)
INFO [09-07|11:18:01.872] Gasprice oracle is ignoring threshold set threshold=2
WARN [09-07|11:18:01.872] Old unclean shutdowns found              count=5
WARN [09-07|11:18:01.872] Unclean shutdown detected                booted=2022-09-07T00:51:47+0200 age=10h26m14s
WARN [09-07|11:18:01.872] Unclean shutdown detected                booted=2022-09-07T00:55:26+0200 age=10h22m35s
WARN [09-07|11:18:01.872] Unclean shutdown detected                booted=2022-09-07T00:59:12+0200 age=10h18m49s
WARN [09-07|11:18:01.872] Unclean shutdown detected                booted=2022-09-07T10:22:41+0200 age=55m20s
WARN [09-07|11:18:01.872] Unclean shutdown detected                booted=2022-09-07T10:23:32+0200 age=54m29s
WARN [09-07|11:18:01.872] Unclean shutdown detected                booted=2022-09-07T10:24:59+0200 age=53m2s
WARN [09-07|11:18:01.872] Unclean shutdown detected                booted=2022-09-07T10:25:56+0200 age=52m5s
WARN [09-07|11:18:01.872] Unclean shutdown detected                booted=2022-09-07T10:33:52+0200 age=44m9s
WARN [09-07|11:18:01.872] Unclean shutdown detected                booted=2022-09-07T10:37:46+0200 age=40m15s
WARN [09-07|11:18:01.872] Unclean shutdown detected                booted=2022-09-07T10:40:22+0200 age=37m39s
WARN [09-07|11:18:01.872] Unclean shutdown detected                booted=2022-09-07T11:05:59+0200 age=12m2s
WARN [09-07|11:18:01.872] Engine API enabled                       protocol=eth
INFO [09-07|11:18:01.882] Starting peer-to-peer node               instance=Geth/v1.10.23-stable-d901d853/windows-386/go1.18.5
INFO [09-07|11:18:01.925] New local node record                    seq=1,660,991,818,534 id=570ec3877388dab1 ip=192.168.0.250 udp=30303 tcp=30303
INFO [09-07|11:18:01.927] Started P2P networking                   self=enode://f52a4ec4853bbf11c57b972d6dc3e223a5fc48afcb0a0043b25e8b12ab7ad1fe0d595b91ac4ebfcef7e9c965fac0efff8c7a3f4b26739988577b7910321b364d@192.168.0.250:30303
INFO [09-07|11:18:01.927] Mapped network port                      proto=tcp extport=30303 intport=30303 interface=NAT-PMP(192.168.100.1)
INFO [09-07|11:18:01.927] IPC endpoint opened                      url=\\.\pipe\geth.ipc
INFO [09-07|11:18:01.929] Loaded JWT secret file                   path=D:\Execution\geth\jwtsecret crc32=0xf4485ae9
INFO [09-07|11:18:01.932] WebSocket enabled                        url=ws://127.0.0.1:8551
INFO [09-07|11:18:01.932] HTTP server started                      endpoint=127.0.0.1:8551 auth=true prefix= cors=localhost vhosts=localhost
INFO [09-07|11:18:01.973] Mapped network port                      proto=udp extport=30303 intport=30303 interface=NAT-PMP(192.168.100.1)
INFO [09-07|11:18:11.935] Looking for peers                        peercount=0 tried=17 static=0
INFO [09-07|11:18:22.004] Looking for peers                        peercount=1 tried=29 static=0
INFO [09-07|11:18:30.277] Block synchronisation started
WARN [09-07|11:18:30.278] Synchronisation failed, retrying         err="peer is unknown or unhealthy"
INFO [09-07|11:18:32.417] Looking for peers                        peercount=1 tried=27 static=0
WARN [09-07|11:18:36.902] Merge is configured, but no beacon client seen. Please ensure you have one available before the transition arrives! eta=1w5d14h
INFO [09-07|11:18:42.921] Looking for peers                        peercount=1 tried=29 static=0
INFO [09-07|11:18:52.962] Looking for peers                        peercount=1 tried=33 static=0
INFO [09-07|11:19:03.070] Looking for peers                        peercount=2 tried=30 static=0
INFO [09-07|11:19:13.177] Looking for peers                        peercount=1 tried=30 static=0
INFO [09-07|11:19:23.264] Looking for peers                        peercount=1 tried=31 static=0
INFO [09-07|11:19:33.273] Looking for peers                        peercount=1 tried=36 static=0
INFO [09-07|11:19:43.396] Looking for peers                        peercount=2 tried=27 static=0
INFO [09-07|11:19:53.973] Looking for peers                        peercount=1 tried=26 static=0
INFO [09-07|11:20:03.977] Looking for peers                        peercount=1 tried=32 static=0
INFO [09-07|11:20:14.004] Looking for peers                        peercount=1 tried=35 static=0
INFO [09-07|11:20:24.029] Looking for peers                        peercount=2 tried=43 static=0
INFO [09-07|11:20:34.123] Looking for peers                        peercount=1 tried=33 static=0
INFO [09-07|11:20:44.261] Looking for peers                        peercount=1 tried=34 static=0
INFO [09-07|11:20:52.362] Downloader queue stats                   receiptTasks=0 blockTasks=190 itemSize=54.50B throttle=8192
INFO [09-07|11:20:52.509] Importing sidechain segment              start=15,471,743 end=15,471,806
INFO [09-07|11:20:54.319] Looking for peers                        peercount=3 tried=32 static=0
ERROR[09-07|11:20:55.086] Expired request does not exist           peer=f6c8601ba82e05ba1bb68ccfd440fc76a6058ccdbe2e824e6dbf7accd85beb5c
ERROR[09-07|11:20:55.086] Expired request does not exist           peer=f6c8601ba82e05ba1bb68ccfd440fc76a6058ccdbe2e824e6dbf7accd85beb5c
INFO [09-07|11:20:55.949] Extend chain                             add=1428 number=15,471,743 hash=128abe..0654a8
runtime: out of memory: cannot allocate 4194304-byte block (1495629824 in use)
fatal error: out of memory

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions