-
ruien
Hey everyone. I need to sync a stagenet node in userspace on limited RAM (<2GB) on a machine with 192 GB of RAM. I set 'ulimit -v 1572864' as it looks like DEFAULT_MAPSIZE is 1GB (lmdb/db_lmdb.h). Even syncing with '--max-concurrency 1' though results in allocation errors: 'Exception at [add_new_block], what=std::bad_alloc'. Is it just not possible to sync on this ram size, or is this something about the system resources being autodetect
-
ruien
ed and ulimit not being respected?
-
ruien
/msg NickServ VERIFY REGISTER ruien Y8Cfz7COFPRL31SH
-
ruien
oops
-
Inge
ooops
-
moneromooo
LMDB will need loads of virtual memory. Don't constrain it.
-
moneromooo
At least as much as the db size, so... 128 GB or so ?
-
ruien
That makes sense. Actually I don't want/need to constrain virtual memory; I really just want to constrain RSS. Something like "operate as if this machine had 2GB or 4GB instead of 192 GB". But maybe this is not feasible at all.
-
moneromooo
Maybe look into cgroups.
-
ruien
yes, I think cgroup v2 has something for this, but I was hoping to do it entirely in userspace. Guess not.
-
ruien
Thanks for the response though - i appreciate it.
-
moneromooo
There are options to tell lmdb to flush often. --db-sync-mode IIRC. It'll slow things down though.
-
moneromooo
But it *should* cut down on RSS a bit I think. YMMV.
-
ruien
Slow is no problem here, so I'll look into that as well.
-
moneromooo
Running in docker/podman might also add some easy to use memory constraints.
-
ruien
'--db-sync-mode fastest:sync:20blocks' is looking really good
-
hyc
funny. I've never seen my own ping timeout before: (15:13:57) hyc left the room (quit: Ping timeout: 240 seconds).
-
moneromooo
That happens when someone sees you ping out, quickly joins with your nick and says something outrageous quick before you come back.
-
hyc
uhhhhh. ok. would def have to be quick
-
moneromooo
So... you're not really planning on a patch to use leveldb in monerod then ?
-
moneromooo
There was something in that which I found a bit odd, but I couldn't quite put my finger on it...
-
hyc
gag.....
-
saunders
where can I find raw historical data for monero v bitcoin prices? I can google "price monero bitcoin" and get nice charts. but where does the data originate?
-
hyc
coingecko lets you download CSVs of their data
-
apotheon
saunders: It must ultimately come from exchnage services.
-
apotheon
s/hage/ange/
-
noex
my monero node synced up to within like 100 blocks of being fully synced, but it's kind of stuck here. sometimes it's 70 blocks behind, then 100, then 80...anyone experience that?
-
noex
it's been hanging out like this for a few days now
-
noex
maybe that's normal, I don't know
-
Mochi102
noex, try exiting the daemon and restarting it
-
noex
Mochi102: is ctrl-c safe?
-
noex
oh wait i detacted it
-
noex
detached*
-
noex
can i just kill it?
-
noex
going to run it in tmux and not detach this time
-
ndorf
SIGTERM should be safe, alternatively you can try `monerod exit`
-
ndorf
(SIGTERM is the default when you kill with no specific signal)
-
ndorf
don't kill -9
-
noex
it wasn't happy about exit
-
ndorf
what happened?
-
noex
Error: Daemon did not stop-- rpc_request:
-
ndorf
i just tried it and it worked as expected
-
ndorf
interesting. maybe your default RPC port is restricted? does that ring a bell?
-
noex
oh yeah, i did set that
-
ndorf
that would do it
-
noex
i'm trying to run a public node
-
noex
and i have no idea what i'm doing lol
-
ndorf
so then just kill <pid>, no other arguments
-
noex
alright that worked
-
noex
maybe i should share my config as a sanity check
-
noex
i might be doing something really stupid
-
noex
-
noex
i suppose i could also use a configuration file, at least I think...but I ran it like this
-
apotheon
Wow, I screwed up my regex earlier.
-
apotheon
I came back to this window *just* in time to notice.
-
ndorf
noex: looks mostly ok
-
ndorf
i think rate limits are in KB, so unless i'm mistaken yours are both set to 1GByte/sec
-
noex
so the only reason I added that is because some page somewhere mentioned that the default limits were really low
-
noex
but I guess I can just try running without that
-
ndorf
a couple of the other options are superfluous, since the values are the same as the defaults
-
noex
yeah, i was trying to be explicit...probably no point really though.
-
ndorf
i think the defaults are 2048KB/s
-
noex
the ports and bind ips i think are defaults
-
ndorf
if you prefer to have them explicit, that's fine. just pointing it out
-
ndorf
i'm not sure if --rpc-login makes sense in conjunction with --public-node and/or --restricted-rpc?
-
noex
sure, i appreciate it. i might just get rid of them now that i kinda know what the ports are anyway
-
noex
yeah that part confused me a bit
-
ndorf
if you want anyone to be able to use your node's RPC, you wouldn't want --rpc-login
-
noex
lol
-
noex
that...makes a bit of sense
-
ndorf
but if you don't, you wouldn't want to set --public-node at all, and probably not --restricted-rpc either since it's secured by the login
-
noex
i definitely wanted a public node
-
ndorf
also note that the bandwidth limits apply only to P2P, not RPC, last i checked
-
ndorf
RPC is always unlimited, i think, and can use quite a lot depending on clients
-
noex
i just got rid of those limits. some blog or something said to add it but I guess if it's not broken there's no sense in preemtively fixing it
-
ndorf
looks like the defaults are 1MB/s, not 2 like i said earlier
-
ndorf
but again, that only applies to P2P i'm pretty sure
-
noex
the documentation in one place says CPU mining is fine and somewhere else says people use GPUs and not CPUs
-
ndorf
GPUs are not useful for mining Monero, only (some) CPUs
-
noex
that's what i thought
-
ndorf
if something says use GPUs, it's probably outdated, from before 2019 (when a different PoW was used)
-
noex
ohh. yeah it says "Be advised though that real mining happens in pools and with high-end GPU-s instead of CPU-s."
-
noex
i was hoping to CPU mine on another machine as well
-
noex
is it actually not hopeless like every other crypto? lol
-
ndorf
well, that depends on your CPU :)
-
ndorf
my ryzen 3600 recently became unprofitable, like within the past couple of months
-
ndorf
3900X is still in the green i would imagine
-
noex
i have a xeon w-11955m
-
noex
--public-node is enabled, but RPC server 127.0.0.1:18081 may be unreachable from outside, please check RPC server bind address
-
noex
^ this message is confusing
-
Mochi102
How is it confusing?
-
noex
i don't get why it needs a bind address other than localhost
-
ndorf
hm, i guess you need to specify --rpc-bind-ip
-
ndorf
seems like it should be implied with --public-node
-
ndorf
well, if it's only reachable from localhost, that's not very public now is it? :)
-
noex
isn't that the purpose of port forwarding?
-
ndorf
port forwarding from where? your router?
-
noex
yeah
-
ndorf
that won't work unless your router is on the local host
-
Mochi102
What if you have multiple IP addresses?
-
ndorf
in which case... you don't need forwarding, heh
-
apotheon
I don't recall my specific Ryzen CPU model.
-
Mochi102
Probably want to bind to one.
-
ndorf
if you have multiple IP addresses, you can pick one to bind to, or you can bind to 0.0.0.0 which means all of them
-
Mochi102
^^
-
noex
all...local ips?
-
apotheon
ndorf: Whether a 3900 is still profitable depends (in part) on the price of electricity where you live.
-
ndorf
well yeah.
-
apotheon
In Denmark, it's probably not profitable.
-
noex
i don't get the difference between binding to the local ip and using 127.0.0.1
-
apotheon
That's my guess, anyway.
-
ndorf
if you bind to 127.0.0.1, it's only reachable from the same host.
-
ndorf
your router won't be able to reach it.
-
noex
it wouldn't be able to reach it anyway if i didn't forward the port to it
-
ndorf
the router can't forward ports to it because it can't reach it
-
noex
how can my router not reach a local machine on my network
-
ndorf
because it's not listening on the network, it's only listening on localhost.
-
noex
so i just have to hardcode the machine's IP address?
-
ndorf
you can do that, or you can use 0.0.0.0 which means listen on all its IP addresses
-
noex
or like ip link | grep | cut ?
-
noex
okay
-
noex
so by default it won't listen to anything but itself
-
ndorf
correct
-
noex
this is 100x better in interactive mode. i didn't realize it had a cli interface.
-
ndorf
yeah, you can run that in tmux or something
-
noex
it seems to block and awful lot of hosts
-
ndorf
yup
-
noex
why does that happen?
-
ndorf
it's a dangerous world out there
-
noex
just malicous stuff in the wild
-
ndorf
yep
-
asymptotically
ndorf: 3900X makes around £0.50 a day in current network conditions. think it costs me around £0.60 in electricity to run at full load for a day though :$
-
ndorf
oof.
-
noex
i might have killed it. i typed "check_blockchain_pruning" just experimenting and it's been frozen ever since.
-
noex
the kernel is using a bunch of CPU but not monerod. what have I done?
-
ndorf
i don't actually know what that command does but if it's reading the whole blockchain, that could explain it (kernel is doing the I/O)
-
noex
it also is ignoring SIGTERM
-
noex
i dug my grave, and now i will lay in it
-
apotheon
s/lay/lie/
-
apotheon
Lay should be used as a transitive verb.
-
apotheon
When you need the intransitive, use lie.
-
ndorf
i find it's easier to just lie all the time.
-
noex
i dug my grave, now i'm going to lay in it and tell lies
-
noex
"bitcoin cash is the real bitcoin"
-
saunders
noex: you tell 'em
-
noex
kidding. also i kind of wish it was at this point.
-
noex
bitcoin is such a bizarre phenomenon
-
noex
i've kind of given up on at at least for what it was designed for. i feel like monero is closer in line with the original vision.
-
noex
ah pruning check done. it says it's all good. nice
-
saunders
bitcoin is a deflationary asset while monero is inflationary. don't ask me to explain that, because I don't quite know what means. I can say that bitcoin is analogous to "e-gold" because of the finite number of coins.
-
noex
i don't think that is what satoshi intended at all, but you are definitely right. i think the fact that it is slow/expensive to use compounds the problem.
-
noex
like i no longer feel okay buying normal things with bitcoin
-
noex
i don't know if other coins now level the playing field with the algorithm (ASIC-resistant) but i feel like that is definitely the right choice.
-
apotheon
saunders: Whether Monero is inflationary or deflationary actually depends on how much of it will get lost.
-
apotheon
noex: Monero basically solves all the biggest problems BTC has as a currency.
-
apotheon
I don't recally refer to "Bitcoin" any longer. Doing so means taking sides in the split. I just refer to BTC as BTC, and BCH as BCH or Bitcoin Cash.
-
apotheon
. . . though if I had to pick one to survive, it'd probably have to be BCH.
-
noex
i thought that too. if you think about it logically, how can this be sustainable? it makes no sense.
-
apotheon
I guess I sometimes refer to "Bitcoin" when what I mean is what Satoshi made, no longer than after the final Great Vanishing.
-
apotheon
Yeah, BTC seems to be trying to make itself suck as a currency and "solve" the problem by coming up with excuses meant to sway people who stopped believing.
-
noex
what satoshi wrote and what we have now are just so at odds with each other it's comical
-
apotheon
LN isn't a solution: it's an excuse.
-
apotheon
noex: Speak for yourself. I'm using Monero.
-
apotheon
That's pretty close.
-
apotheon
Well, in theory I'm using Monero. I seem to have lost mine on a recent oceanic vacation.
-
noex
it is way closer and even improves on it imo. i don't think anyone had the foresight to predict something like Bitmain
-
apotheon
I've gotta go do some writing. Ta.
-
noex
looking at what crypto has become is crazy. dogecoin? it's just like a big meme at this point. my buddy bought a bunch of SHIB hoping to "get rich".
-
noex
it's more like a lottery. i wish i had stumbled across monero sooner because it just seems like what we actually wanted in the first place.
-
noex
dpaste.com/C337UAW4Z same problem. i'm falling further behind while syncing
-
noex
it synced fine up to ~100 blocks behind but once I got here it's been stuck for a couple days