13:23:10 is there any hope for a decentralised cryptocurrency that's scalable? 13:23:13 is there any theorem that proves that this is impossible? 13:23:15 i think cryptocurrency is essentially: cryptographically proving that a chunk of data came out of 'genesis block', and a way to detect double spending. 13:54:42 selsta, so im thinking my issues are because systemd can't handle LMDBs memory magic 14:34:13 It works without systemd? (Doesnt sound right) 14:36:25 gingeropolous: does it happen on master or release nodes too? 15:05:32 Custom systemd script? 16:07:59 tesing now on release 18.3.1. It takes a day or so to get up to 40GB. 16:18:28 what's happening? I can't find the beginning of that convo. systemd complains at 40GB? 16:19:26 you can force monerod to cycle thru a lot of RAM, just try to refresh a wallet from block 1 16:24:33 Hey is there any chance we can try to get on Tangem hardware wallet? Its fully open source 16:24:39 It uses 40gb of ram? (Cant we limit the sync so it doesnt download so far ahead?) 16:24:46 Ask them 16:25:21 ofrnxmr: it doesn't need 40GB of RAM. it uses as much as is free. 16:25:21 I did in their discord sever. They said they added it to the list but thats some retard stuff. 16:25:28 do we have dev power to help them? 16:25:32 or something 16:27:09 Hyc - can it be limited with a flag? 16:27:09 Something like `block-download-max-size` but for total sync cache? 16:27:33 there is no sync cache 16:28:17 LMDB only uses free RAM. If LMDB is using it, that means nothing else on the system wanted it. 16:28:53 If anything else on the system wants RAM, the RAM LMDB was using will get taken over by the other app, instantly and transparently. 16:31:36 I only had a few (100KB -> 1MB) swap activated on a wallet sync. 2 threads, 2 G RAM. 16:35:47 Eh, 4 threads and 4 G RAM, 360 M swap. 16:39:06 Daemon: 16:39:06 ```2023-12-18 15:53:48.272 I Found block at height 1503370 for difficulty: 219498 16:39:06 2023-12-18 16:00:35.457 I Found block <477b174be12b3c66e6b844a2ec552c9d1882fa4974c758111860775522713e0c> at height 1503371 for difficulty: 218130 16:39:07 2023-12-18 16:13:45.678 I Found block <7f18ef7fbdea0daf137fb98bf92d07e2f4cf77e208a9291d3fdd4484d14a7890> at height 1503378 for difficulty: 217964 16:39:07 ``` 16:39:08 Wallet: 16:39:08 ``` 16:39:09 2023-12-18 15:51:08.084 W Received money: 2.063935154664, with tx: <1fec7f486687d3f96c15786285295232a0be17adaf43b4aaf9095cdc89b7185e> 16:39:09 2023-12-18 15:53:48.320 W Received money: 2.063778998310, with tx: 16:39:10 2023-12-18 15:53:48.320 W Received money: 2.063775061964, with tx: <823307248b284b862e7d1a4424af6a5d70248f5e33b858515b2ffe0883cd922e> 16:39:10 2023-12-18 16:00:49.169 W Received money: 2.063771125626, with tx: 16:39:11 2023-12-18 16:13:50.381 W Received money: 2.068908371466, with tx: 16:39:11 ``` 16:40:16 pastebin, dude 16:47:25 The short version is, daemon mining and wallet syncing, no more than 50% of 4G RAM is used, and at some point, 360M swap was active. 16:51:50 You should try setting /proc/sys/vm/swappiness = 0. there's no reason for swap to get used if you have free RAM. 16:53:22 a wallet that is up to date won't cause much memory use because it's only going to sync against newly received blocks. it won't cause any more memory to be used than monerod itself would have used anyway. 16:54:02 mining will use 2.3GB 16:55:46 `2.73G/3.82G` to be precise 😎 16:57:52 The swap usage could be for a number of other reasons. MySQ, Apache and kiddies hitting the firewall. 17:14:13 syncing a wallet from far in the past will force monerod to read older blocks that it wasn't referencing up till then, so RAM use should go up 17:20:03 I just did a rescan_bc soft 1000000 and I can see the RAM use go up on my monerod now ... 17:24:28 from 1000000 to 1851000 added 3.5GB to the process size 17:24:48 rather, to the Shared memory use 17:39:28 I'll try to launch a daemon sync and see how that affect memory. I think mainnet is about 2-4K blocks behind on this box. 17:42:54 Well, it does snatch up a bit, but not much. 17:42:58 https://matrix.monero.social/_matrix/media/v1/download/monero.social/LPrFAXpDkuvfajPsaPgHRxxX 17:45:00 https://matrix.monero.social/_matrix/media/v1/download/monero.social/JlFPXZqBfDjfSjGdQWihvldi 17:45:46 Does images cross the bridges? 17:55:13 You posted two links to matrix.monero.social before that question. They could be images. 17:56:46 So I guess they don't cross. 17:59:13 Well, right now the links do work. But maybe not everybody is in the mood to click :) 18:00:47 LOL. Okay. Launching a second daemon added aprox. 2G to memory usage. 18:01:42 A few. 20-30M swap. 18:42:10 hyc, the start was here: https://github.com/monero-project/monero/pull/7345 18:42:47 basically, at some point in time (for a reason I forgot), i instructed systemd to do some memory management for monerod 18:43:23 when I pulled in that weak_ptrs PR 7345, i noticed that monerod was being restarted by systemd because it was hitting my 40GB limit 18:44:16 so now im trying to see if release has the same behavior when managed by systemd 18:45:55 sorry for jumping back and forth with communication channels. im never sure which of my musings warrant the permanent record in the githubs 18:58:39 ah. if your box has 64GB RAM then sure, monerod may try to use more than 40GB. is this a public node? 18:58:52 again, if it's only syncing recent blocks, memory use would never get that high on its own 19:05:28 If its the same box as xmrchain, is it possible that its the onion blockchain explorer? People using the api? (Ive a 64gb box that is using between 5-10gb) 19:05:54 yeah, if they're all looking up random stuff, sure 19:06:25 anyway the thing to watch out for is whether the memory use is mostly shared memory or not. if it's mostly shared, that's LMDB and filesystem cache, and nothing to worry about. 19:06:36 if shared is not the majority, then there may be a monerod memory leak. 19:49:52 "If anything else on the system wants RAM, the RAM LMDB was using will get taken over by the other app, instantly and transparently" But what if 2 LMDB instances are running together, like monerod and xmrblocks (the block explorer)? 19:50:32 Right now I have 49.3 GiB for monerod and 7.5 GiB for xmrblocks on p2pool.io 19:50:49 On a 64 GiB system 21:28:24 hm my monerod is only using 1.6GB of RAM and the system has good deal more available 21:29:39 Try remote syncing an old wallet (maybe) 22:13:57 sech1: it's all handled by the kernel filesystem cache. Typically some advanced form of LRU cache replacement.