--- Log opened Wed Jul 14 00:00:06 2021 00:04 -!- rohitrjn_ [~rohitrjn@106.0.58.118] has quit [Ping timeout: 255 seconds] 00:26 -!- reallll is now known as belcher 02:04 -!- kexkey [~kexkey@static-198-54-132-119.cust.tzulo.com] has quit [Ping timeout: 252 seconds] 02:04 -!- kexkey [~kexkey@static-198-54-132-151.cust.tzulo.com] has joined #bitcoin-core-pr-reviews 02:40 -!- koolazer [~koo@user/koolazer] has quit [Ping timeout: 272 seconds] 02:43 -!- koolazer [~koo@user/koolazer] has joined #bitcoin-core-pr-reviews 03:15 -!- koolazer [~koo@user/koolazer] has quit [Ping timeout: 265 seconds] 04:16 -!- koolazer [~koo@user/koolazer] has joined #bitcoin-core-pr-reviews 04:48 -!- koolazer [~koo@user/koolazer] has quit [Ping timeout: 265 seconds] 05:47 -!- koolazer [~koo@user/koolazer] has joined #bitcoin-core-pr-reviews 05:58 -!- jnewbery_ is now known as jnewbery 06:20 -!- koolazer [~koo@user/koolazer] has quit [Ping timeout: 245 seconds] 07:00 -!- LarryRuane [~LarryRuan@c-69-142-133-249.hsd1.nj.comcast.net] has joined #bitcoin-core-pr-reviews 07:56 -!- koolazer [~koo@user/koolazer] has joined #bitcoin-core-pr-reviews 08:34 -!- koolazer [~koo@user/koolazer] has quit [Ping timeout: 258 seconds] 09:22 -!- Talkless [~Talkless@mail.dargis.net] has joined #bitcoin-core-pr-reviews 09:47 -!- lightlike [~lightlike@user/lightlike] has joined #bitcoin-core-pr-reviews 09:50 -!- andrewtoth [~andrewtot@gateway/tor-sasl/andrewtoth] has joined #bitcoin-core-pr-reviews 09:51 -!- dokkodo [~dokkodo@cpe-184-153-97-30.nyc.res.rr.com] has joined #bitcoin-core-pr-reviews 09:51 -!- bogosort [~bogosort@c-76-109-184-69.hsd1.fl.comcast.net] has joined #bitcoin-core-pr-reviews 09:57 -!- Naiza [~Naiza@180.188.251.91] has joined #bitcoin-core-pr-reviews 09:57 -!- kiran [~quassel@43.225.167.10] has joined #bitcoin-core-pr-reviews 09:59 -!- paving [~paving@185.212.170.140] has joined #bitcoin-core-pr-reviews 10:00 -!- observer32 [~observer@cpe-23-242-148-67.socal.res.rr.com] has joined #bitcoin-core-pr-reviews 10:00 < jnewbery> #startmeeting 10:00 < paving> hi 10:00 < glozow> hi 10:00 < neha> hi 10:00 < schmidty> hi 10:00 < dokkodo> hi! 10:00 < emzy> hi 10:00 < lightlike> hi 10:01 < jnewbery> hi folks. Welcome to PR review club! 10:01 < michaelfolkson> hi 10:01 < LarryRuane> hi 10:01 < bogosort> hi 10:01 < jnewbery> Feel free to say hi to let people know you're here (or not, lurkers also welcome!) 10:01 < Naiza> hi 10:01 < jnewbery> is anyone here for the first time? 10:01 < bogosort> me 10:01 < jnewbery> welcome bogosort! 10:01 < glozow> hi Naiza!! 10:01 < bogosort> thanks! 10:02 < Naiza> yes, me 10:02 < jnewbery> hi Naiza. Welcome :) 10:02 < dokkodo> I am as well 10:02 < Naiza> Hey! thanks a lot! 10:02 < jnewbery> Today's host is LarryRuane. Over to you, Larry 10:03 < glozow> waow! welcome Naiza bogosort dokkodo 10:03 < jnewbery> welcome dokkodo! 10:03 < LarryRuane> Thanks, John! The notes for today are here: https://bitcoincore.reviews/22350 10:03 < dokkodo> Thanks! I'm excited to be here :) 10:04 < LarryRuane> and today we're going to try something new, we're going to review a PR -- AND -- have me do a little hands-on demo of using gdb (debugger) to review the PR (well, any PR) 10:04 < LarryRuane> so I thought we'd start out as usual, discussion, questions, for about 30 minutes, then we can switch over to a Jitsi meeting room, 10:05 < LarryRuane> and there I'll share my screen, and go over some tips and tricks to using gdb ... with an eye especially to using gdb to review PRs 10:05 -!- b10c [uid500648@id-500648.charlton.irccloud.com] has joined #bitcoin-core-pr-reviews 10:05 < b10c> hi! 10:05 < LarryRuane> There's a link in the notes for the meeting room ... Hi b10c! 10:05 -!- effexzi [uid474242@id-474242.charlton.irccloud.com] has joined #bitcoin-core-pr-reviews 10:06 < LarryRuane> I guess we'll start out as we usually do, who here had a chance to review the PR, what was your review approach? I like to always know also: Is there sufficient automated testing? 10:07 < emzy> n 10:07 < jnewbery> concept review y 10:07 < glozow> n 10:08 < LarryRuane> The one thing about this PR is it's on the simpler side, just so we could limit discussion to 30 minutes instead of an hour 10:08 < dokkodo> note y, pr n 10:08 < michaelfolkson> Just notes and previous PR review club session 10:09 < michaelfolkson> (on competing PRs) 10:09 < jnewbery> I don't think they need to be called competing. They could be considered independently. 10:10 < LarryRuane> Okay cool, so just to summarize the notes, for those who didn't have a chance to read them 10:10 -!- babasancheti [~babasanch@43.249.232.35] has joined #bitcoin-core-pr-reviews 10:10 < LarryRuane> You're probably all familiar with `debug.log` in the data directory 10:10 < paving> concept: yes. Code: little bit 10:10 < LarryRuane> Which program writes to `debug.log`? 10:11 < michaelfolkson> jnewbery: Oh so it is possible 2 of the 3 could be merged? I just assumed only 1 of the 3 would 10:11 < glozow> bitcoind? 10:11 < jnewbery> or bitcoin-qt :) 10:12 < emzy> and not bitcoin-cli 10:12 < jnewbery> michaelfolkson: sure. They're doing different things 10:12 -!- Vaibhav_Garg [~Vaibhav_G@202.89.67.18] has joined #bitcoin-core-pr-reviews 10:12 < LarryRuane> jnewbery glozow emzy Yes, all correct ... why does it do that? Have this file been useful to you? If so, why? 10:13 < LarryRuane> I think we can talk about the relation of this PR to the others a bit later, once people are up to speed on this PR 10:13 < emzy> I use it all the time. To look if bitcoind is running right. 10:14 < jnewbery> LarryRuane: it's been very useful to me. I use the debug logs every day :) 10:14 < glozow> same, i can't remember the CLI commands so i just tail debug.log 10:14 < glozow> very exciting to see new tips 10:15 < emzy> I also like the debug.log more than requesting status via bitcoin-cli 10:15 < LarryRuane> Okay, so it's used to print messages that indicate what it's doing, what problems the node may be having ... stuff that's useful for debugging (hence the name), but also just for monitoring 10:15 < LarryRuane> What possible connection is there between this file and DDOS (distributed denial of service, or just DOS)? 10:15 < dokkodo> logging.cpp was referenced as the current strategy for shrinking the log 10:16 < glozow> well the logs take up space on our computer, and it takes time to write them 10:16 < paving> resource exhaustion could occur by a remote peer grieffing the node 10:17 < LarryRuane> paving Right, that's a great term, grieffing! (Hadn't heard that before) ... which resource? 10:17 < paving> disk 10:18 < jnewbery> disk space or (unlikely) disk i/o 10:18 < LarryRuane> yes! And notice that it might not be an intentional DDOS, there could be a bug that causes repeated maybe infinite logging, which would quickly fill up disk space, causing the node to crash 10:19 < LarryRuane> if this were the result of (say) a transaction (or a block), then every bitcoin core node in the world would crash! This would be quite horrible :) 10:19 < paving> jnewbery good point about io 10:19 -!- svav [~svav@82-69-86-143.dsl.in-addr.zen.co.uk] has joined #bitcoin-core-pr-reviews 10:19 -!- svav [~svav@82-69-86-143.dsl.in-addr.zen.co.uk] has quit [Client Quit] 10:19 < paving> and being specific about about which specific disk resource is being affected 10:19 -!- koolazer [~koo@user/koolazer] has joined #bitcoin-core-pr-reviews 10:20 -!- svav [~svav@82-69-86-143.dsl.in-addr.zen.co.uk] has joined #bitcoin-core-pr-reviews 10:20 < LarryRuane> So the way `debug.log` is managed today, it grows forever as long as `bitcoind` runs ... dokkodo mentioned shrinking, when does this happen? 10:20 < LarryRuane> (hint this is in the notes) 10:20 < emzy> Only at restarts. 10:20 < paving> lnd has similar log segmenting, their logs have/had? the potential to grow exceptionally large 10:21 < dokkodo> when it exceeds 10MB 10:21 < dokkodo> or whoops, 11 10:21 -!- Azorcode [~Azorcode@201.210.188.213] has joined #bitcoin-core-pr-reviews 10:21 < dokkodo> (just double checked, haha) 10:21 < LarryRuane> yes, exactly 10:23 < michaelfolkson> paving: Interesting, it does seem like a common problem. Either have verbose logs and they grow too large or cut back and not get logging that might be useful 10:23 < LarryRuane> There's a PR dokkodo (i think) that limits logging in one way, this PR uses a different approach (rotation), see https://bitcoincore.reviews/21603 and question 5 10:24 < paving> michaelfolkson yeah certainly so, hence logrotate tools etc 10:24 < LarryRuane> (question 5 in the current notes) 10:24 < glozow> how much logging is expected? like 1MB per week? 1MB per hour? 10:24 < paving> glozow pertinent question! 10:25 < LarryRuane> paving Yes, logrotate, this PR does what that tool does internally (well, `logrotate` is a swiss army knife) 10:26 < jnewbery> glozow: very much depends how much logging you have enabled. The default (everything that's logPrintf() in the code) is not very verbose. If you start with --debug=all you'll get some very verbose categories like net, libevent and leveldb. 10:26 < LarryRuane> Without any extra logging enabled, I've seen tons of logging during syncing (especially IBD of course), but during normal operation, only some P2P messages and the UpdateTip messages, so not really very much 10:27 < LarryRuane> But I think the fear is that something could cause a large amount of unexpected logging 10:27 < lightlike> in IBD, then also the default can be quite verbose 10:27 -!- Vaibhav_Garg [~Vaibhav_G@202.89.67.18] has quit [Quit: Connection closed] 10:28 < LarryRuane> Also think about a raspberry-pi with limited disk space, and the user just sets it and forgets it ... even the normal logging could be enough to fill the disk 10:28 < glozow> so in some sense, as a safety net, never letting the log grow beyond a certain size helps 10:28 < paving> glozow jnewbery LarryRuane I just checked a node, ~13 days of up time, debug is 23mb in size 10:28 < LarryRuane> paving good to know, thanks 10:29 -!- Vaibhav_Garg [~Vaibhav_G@202.89.67.18] has joined #bitcoin-core-pr-reviews 10:30 < LarryRuane> All the commercial systems (like data storage) that I'm aware of do internal log rotation, or use `logrotate` 10:30 < glozow> would that be an extra dependency? 10:31 < LarryRuane> Yes I think that's one of the downsides to using `logrotate` plus the fact that it's complicated to configure (I did that recently for our `debug.log` file and it took me a couple of hours to figure it out, but maybe that's just me :) ) 10:32 -!- rohitrjn_ [~rohitrjn@106.0.57.140] has joined #bitcoin-core-pr-reviews 10:32 < LarryRuane> Okay I think everyone's got a good background on this PR, shall we move to the video chat now? 10:32 < dokkodo> SGTM 10:33 < michaelfolkson> Wow us with your gdb ninja 10:33 < paving> deque and fs.h I see are added 10:34 < b10c> compressing rotated logs should be helpful as the log messages are quite repetitive (I haven't checked your PR if you add it) 10:35 < paving> yeah lnd gzip's their 10:35 < paving> is LarryRuane broadcasting content on jitsi now? I don't see or hear anything 10:36 < jnewbery> paving: yes, it's happening at https://meet.jit.si/bitcoin-core-pr-reviews-22350 10:36 < jnewbery> paving: try refreshing the page if you don't see anything. jitsi can sometimes be a bit flakey 10:37 < paving> jnewbery thanks it's probably on my browser's end 10:38 -!- arnabsen1729 [~arnab@45.116.190.220] has joined #bitcoin-core-pr-reviews 10:43 -!- Vaibhav_Garg [~Vaibhav_G@202.89.67.18] has quit [Ping timeout: 255 seconds] 10:43 < paving> I'll download it later, have fun all. thanks Larry for hosting 10:47 -!- paving [~paving@185.212.170.140] has quit [Quit: paving] 10:53 -!- Naiza [~Naiza@180.188.251.91] has quit [Quit: Connection closed] 10:54 -!- koolazer [~koo@user/koolazer] has quit [Ping timeout: 246 seconds] 10:58 -!- Azorcode [~Azorcode@201.210.188.213] has quit [Quit: Connection closed] 11:01 -!- babasancheti [~babasanch@43.249.232.35] has quit [Quit: Client closed] 11:01 -!- amanr [~sarcastic@122.161.66.39] has joined #bitcoin-core-pr-reviews 11:01 < jnewbery> thanks Larry. I've got to run now, but that was great! 11:02 -!- amanr [~sarcastic@122.161.66.39] has left #bitcoin-core-pr-reviews [WeeChat 3.2] 11:03 < bogosort> thanks Larry! 11:03 < glozow> thank you Larry!! 11:04 < dokkodo> thanks. i enjoyed this very much! 11:04 < svav> Thanks Larry! 11:04 -!- dokkodo [~dokkodo@cpe-184-153-97-30.nyc.res.rr.com] has quit [Quit: Connection closed] 11:04 < jnewbery> #endmeeting 11:05 < michaelfolkson> Thanks LarryRuane! 11:05 -!- svav [~svav@82-69-86-143.dsl.in-addr.zen.co.uk] has quit [Quit: Connection closed] 11:05 -!- observer32 [~observer@cpe-23-242-148-67.socal.res.rr.com] has quit [Quit: Connection closed] 11:18 -!- bogosort [~bogosort@c-76-109-184-69.hsd1.fl.comcast.net] has quit [Quit: Connection closed] 11:18 -!- kiran [~quassel@43.225.167.10] has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.] 11:26 < emzy> Thanks LarryRuane! 11:26 -!- carine [~carine@212.83.183.62] has joined #bitcoin-core-pr-reviews 11:30 -!- arnabsen1729 [~arnab@45.116.190.220] has quit [Quit: WeeChat 3.0] 11:32 -!- carine [~carine@212.83.183.62] has quit [] 12:07 -!- koolazer [~koo@user/koolazer] has joined #bitcoin-core-pr-reviews 12:30 -!- koolazer [~koo@user/koolazer] has quit [Ping timeout: 272 seconds] 12:34 -!- Talkless [~Talkless@mail.dargis.net] has quit [Quit: Konversation terminated!] 12:35 -!- rohitrjn_ [~rohitrjn@106.0.57.140] has quit [Remote host closed the connection] 13:00 -!- kexkey_ [~kexkey@static-198-54-132-151.cust.tzulo.com] has joined #bitcoin-core-pr-reviews 13:03 -!- kexkey [~kexkey@static-198-54-132-151.cust.tzulo.com] has quit [Ping timeout: 265 seconds] 13:05 -!- b10c [uid500648@id-500648.charlton.irccloud.com] has quit [Quit: Connection closed for inactivity] 13:26 -!- jb55 [jb55@jb55.com] has quit [Quit: jb55] 13:40 -!- meshcollider [meshcollid@user/meshcollider] has quit [Remote host closed the connection] 13:45 -!- effexzi [uid474242@id-474242.charlton.irccloud.com] has quit [Quit: Connection closed for inactivity] 14:01 -!- meshcollider [meshcollid@meshcollider.jujube.ircnow.org] has joined #bitcoin-core-pr-reviews 14:15 -!- kexkey [~kexkey@static-198-54-132-151.cust.tzulo.com] has joined #bitcoin-core-pr-reviews 14:18 -!- kexkey_ [~kexkey@static-198-54-132-151.cust.tzulo.com] has quit [Ping timeout: 258 seconds] 14:19 -!- koolazer [~koo@user/koolazer] has joined #bitcoin-core-pr-reviews 14:56 -!- pinheadmz_ is now known as pinheadmz 15:11 -!- andrewtoth_ [~andrewtot@gateway/tor-sasl/andrewtoth] has joined #bitcoin-core-pr-reviews 15:12 -!- LarryRuane [~LarryRuan@c-69-142-133-249.hsd1.nj.comcast.net] has quit [Quit: Ping timeout (120 seconds)] 15:13 -!- luke-jr [~luke-jr@user/luke-jr] has quit [Read error: Connection reset by peer] 15:13 -!- andrewtoth [~andrewtot@gateway/tor-sasl/andrewtoth] has quit [Ping timeout: 244 seconds] 15:14 -!- luke-jr [~luke-jr@user/luke-jr] has joined #bitcoin-core-pr-reviews 15:40 -!- kexkey [~kexkey@static-198-54-132-151.cust.tzulo.com] has quit [Ping timeout: 268 seconds] 15:44 -!- kexkey [~kexkey@static-198-54-132-151.cust.tzulo.com] has joined #bitcoin-core-pr-reviews 16:55 -!- belcher [~belcher@user/belcher] has quit [Read error: Connection reset by peer] 16:56 -!- belcher_ [~belcher@user/belcher] has joined #bitcoin-core-pr-reviews 16:58 -!- lightlike [~lightlike@user/lightlike] has quit [Quit: Leaving] 18:22 -!- belcher_ is now known as belcher 23:22 -!- babasancheti [~babasanch@43.249.232.35] has joined #bitcoin-core-pr-reviews --- Log closed Thu Jul 15 00:00:07 2021