-
m-relay
<rucknium:monero.social> MRL meeting in this room in two hours.
-
m-relay
<0xfffc:monero.social> Hi everyone
-
m-relay
<articmine:monero.social> Hi
-
m-relay
<rucknium:monero.social> Meeting time!
monero-project/meta #1020
-
m-relay
<rucknium:monero.social> 1) Greetings
-
rbrunner
Hello
-
jberman
hello
-
spackle
hi
-
m-relay
<rucknium:monero.social> 2) Updates. What is everyone working on?
-
m-relay
<chaser:monero.social> hello
-
m-relay
<vtnerd:monero.social> Hi
-
jberman
me: trim_tree for the fcmp tree
-
m-relay
<rucknium:monero.social> me: Working a little more on the black marble optimal ring size and fee analysis. Helping spackle with setting up the new stressnet. Working on my MoneroKon presentation "Hard Data on Banking the Unbanked with Cryptocurrency".
-
m-relay
<articmine:monero.social> I am finalizing the scaling changes. Will be presenting them at MoneroKon, on Friday.
-
m-relay
<boog900:monero.social> Hi
-
m-relay
<vtnerd:monero.social> Me: testing the LWS remote scanning feature, which led to a few bug fixes
-
m-relay
<vtnerd:monero.social> Although the bugs were unrelated to the feature, and required some backporting to release branches
-
m-relay
<0xfffc:monero.social> me: worked on few reviews here and there. Worked on a fix for duplicate transactions in fluff queue. Had no familiarity with fluff and stem, so took a long time to understand the code, and finally it is done. Initial planning with spackle and rucknium on monero stressnet and monerod torture test.
-
m-relay
<rucknium:monero.social> 3) Stress testing `monerod`
monero-project/monero #9348
-
spackle
me: running a testnet fork for stress testing
-
m-relay
<rucknium:monero.social> spackle, do you want to explain what you've been working on?
-
spackle
I've made a few attempts at stress testing monerod
-
spackle
Running a 10 node private testnet on a single machine did not stress things as desired.
-
spackle
So I have forked the testnet to create an abusable network for testing monerod.
-
spackle
The 'stressnet' is running now (
github.com/spackle-xmr/monero)
-
spackle
The next important step is creating a release + binaries for others to run. Gitian is new to me, and I am having some difficulties with the process.
-
m-relay
<rucknium:monero.social> Recently we got the txpool to almost 200MB. More than 16 hours of backlogged txs.
-
spackle
That said, things are running fine and I have been able to see some of the limits of the daemon with some early spamming. Even with low connection counts, performance limits have been observed.
-
m-relay
<rucknium:monero.social> The monerod with the v17 hardfork for testnet self-compiles and runs fine. The harder part is trying to have a real build process for the binaries on all the operating systems so people who can't/won't compile can join the network if they want.
-
m-relay
<rucknium:monero.social> I think we saw problems with tx and block propagation already with just 6 nodes.
-
m-relay
<rucknium:monero.social> plowsof and selsta have helped with trying to troubleshoot the gitian build process :)
-
spackle
Which is much appreciated, of course.
-
m-relay
<rucknium:monero.social> I think 0xfffc is going to help with how to measure performance precisely and try to figure out where in the code the bottlenecks are. I think what we have is a workable base.
-
sech1
is there any write up of the problems? What was the bottleneck - CPU, memory, network, SSD?
-
m-relay
<0xfffc:monero.social> Yes. Once we got the stressnet, the other side (debugging/profiling) will be my responsibility
-
m-relay
<0xfffc:monero.social> That yes was reply to this message.
-
m-relay
<rucknium:monero.social> sech1: I think at this stage we are just experimenting and making sure that the network is running correctly and the spam script works. And figuring out the rough limits.
-
m-relay
<rucknium:monero.social> spackle's node that received the spam got to 17GB of RAM at one point. Before we had a hypothesis that maybe monerod's LMDB was loading the DB into RAM and that's why some people were seeing too much RAM usage. But the testnet DB is less than 10 GB, so that hypothesis seems unlikely now.,
-
m-relay
<rucknium:monero.social> "A lot of 150/2 transactions in the txpool causes memory spike / OOM daemon"
monero-project/monero #9317
-
m-relay
<boog900:monero.social> I made a small program using Cuprates P2P stack to make and maintain loads of connections to a single node, my plan is to pop blocks back to around when nodes crashed and start pushing txs from the blocks after to the txpool
-
m-relay
<rucknium:monero.social> My hypothesis is that something about preparing txs to be sent p2p and to wallets uses RAM, and then the RAM isn't released maybe.
-
m-relay
<boog900:monero.social> the connections don't do anything, just enough to stay connected, but monerod will still fluff txs to them
-
m-relay
<articmine:monero.social> What kind of TPS are we talking about here?
-
m-relay
<rucknium:monero.social> I think spackle was pushing 5 tx/sec. It was pushing up txpool size since blocks can't include that many txs at that rate of course
-
spackle
For the stressnet? In my trials I have used a single daemon instance with an rpc wallet. That setup is limited to creating ~15tps, and I believe that entirely occupies the daemon.
-
m-relay
<0xfffc:monero.social> Once we had stressnet (which is very useful idea), it is going to be much easier to debug the monerod code and find bottlenecks. I would focus on getting stressnet going as first step. ( Thanks to spackle and ruck )
-
m-relay
<rucknium:monero.social> spackle seems to have a configurable spammer. It can change the tx/sec and the fee of the txs
-
spackle
During tx creation the daemon connected to the rpc wallet would not be able to send txs to other nodes unless there was a break in the spam. At times, there was 40MB of txs that were not relayed.
-
m-relay
<rucknium:monero.social> Anyone can join the stressnet by compiling this monerod and running as `--testnet`:
github.com/spackle-xmr/monero . Ignore the releases because we are still not getting the releases right.
-
m-relay
<rucknium:monero.social> `--max-connections-per-ip=1000` is also recommended since there are a few nodes running from the same IP
-
m-relay
<vtnerd:monero.social> Rucknium: there's a couple of vectors and deque where shrink to fit could be used. Seems unlikely but worth a look
-
m-relay
<vtnerd:monero.social> Or no deque, just a vector I think
-
jberman
sounding like a productive endeavor, thank you guys
-
m-relay
<0xfffc:monero.social> One of the areas that needs that stressnet is locking. My rwlock, initially introduces something like %15 speed up compared to baseline, but later it causes slowdown of %10 compared to baseline. (As sgp tested it under their heavy usage node). Once we had stressnet, I can run it long time and find out the reason for slowdown for rwlock. Right now I don’t have access to any kind <clipped message>
-
m-relay
<0xfffc:monero.social> of heavy usage node.
-
m-relay
<articmine:monero.social> I agree. This is a very productive endeavor. Thank you.
-
m-relay
<rucknium:monero.social> Special thanks to spackle!
-
m-relay
<rucknium:monero.social> 4) Potential measures against a black marble attack
monero-project/research-lab #119
-
m-relay
<rucknium:monero.social> I write two more solution concepts for my model. The solution concept in the current paper draft is the ring size/fee optimizers of cost effectiveness when you have certain inequality constraints. Two other ones: 1) Best cost effectiveness when you have the _equality_ constraint of a certain effective ring size (i.e. must be on the effective ring size line). 2) Give Alice a budget<clipped message
-
m-relay
<rucknium:monero.social> constraint. Alice has to spend less than a certain amount on aggregate tx fees and node storage costs. That's another inequality constraint to the main model. I don't have results to share about those two solution concepts yet.
-
m-relay
<chaser:monero.social> great! I don't know how helpful that is, but I think a constraint on the tx generation/verification time would (also) be useful
-
m-relay
<rucknium:monero.social> That could be a good idea, too. Thanks.
-
m-relay
<rucknium:monero.social> 5) Research Pre-Seraphis Full-Chain Membership Proofs.
getmonero.org/2024/04/27/fcmps.html
-
m-relay
<rucknium:monero.social> Any updates on FCMP to discuss?
-
jberman
no news from me
-
m-relay
<rucknium:monero.social> Any other agenda items?
-
m-relay
<rucknium:monero.social> I have a question maybe someone could answer. When exactly does monerod verify the expensive cryptography in a tx? When nodes get a new tx from peers, there is some verification, but from my view of the code it looks like it may be quick hash verification. But probably nodes do not wait until they get a fluffy block to do the full verification.
-
m-relay
<rucknium:monero.social> To me it looks like nodes do the hash verification on every tx that they get from a peer even if they have seen the tx from another peer before. If they are doing the full verification at that step, that's more reason to consider boog900 's suggestion to reduce duplicate tx gossip messages.
-
m-relay
<rucknium:monero.social> This log message fires whenever nodes get new txs from peers:
github.com/monero-project/monero/bl…ryptonote_protocol_handler.inl#L990
-
m-relay
<rucknium:monero.social> Which seems to run this hash verification function:
github.com/monero-project/monero/bl…ic/cryptonote_format_utils.cpp#L253
-
jberman
-
m-relay
<rucknium:monero.social> I have done most of the parsing work of the p2p logs that were running during some of the spam. This question formed when I was looking at the data since I get all these messages about each tx being added (to something).
-
m-relay
<rucknium:monero.social> Thanks!
-
m-relay
<rucknium:monero.social> We can end the meeting here. Thanks everyone.
-
m-relay
<0xfffc:monero.social> Thanks everyone
-
m-relay
<chaser:monero.social> thank you all for your work!
-
m-relay
-
m-relay
<vtnerd:monero.social> I believe is where the expensive crypto checks are performed. This will only occur if the tx isn't in the txpool already
-
m-relay
<vtnerd:monero.social>
monero-project/monero #9135 is a review that should speed up new tx processing a bit. A reminder (mainly for myself) to review as this could/should be shipped by now