Page MenuHomeFreeBSD

nickbanks_netflix.com (Nick Banks)
User

Projects (1)

User Details

User Since
Jul 20 2025, 12:16 PM (69 w, 3 d)

Recent Activity

Tue, Nov 17

nickbanks_netflix.com updated the summary of D61512: sched_ule: Skip the CPU search for threads bound to one CPU.
Tue, Nov 17, 1:15 PM
nickbanks_netflix.com updated the diff for D61512: sched_ule: Skip the CPU search for threads bound to one CPU.

Drop CPU_SET_ONECPU; check the mask with CPU_FFS()/CPU_FFS_AT() as suggested

Tue, Nov 17, 1:15 PM

Mon, Nov 16

nickbanks_netflix.com added a comment to D61512: sched_ule: Skip the CPU search for threads bound to one CPU.

I expect this to only have a marginal impact on performance (because you're already doing one CPU_FFS()), and would like to confirm or infirm it on your workload.

Mon, Nov 16, 6:33 PM

Fri, Nov 13

nickbanks_netflix.com published D61512: sched_ule: Skip the CPU search for threads bound to one CPU for review.
Fri, Nov 13, 4:49 PM

Mon, Nov 2

nickbanks_netflix.com accepted D61136: Broadcom tester's were able to trigger a KASSERT in rack due to an accounting issue..
Mon, Nov 2, 9:40 PM

Sep 24 2026

nickbanks_netflix.com accepted D59960: tcp: set sopt.sopt_valsize when setting a sockopt.
Sep 24 2026, 12:19 PM
nickbanks_netflix.com accepted D59950: tcp: avoid disclosing uninitialized data in tcp_log code.
Sep 24 2026, 12:19 PM

Sep 4 2026

nickbanks_netflix.com added a comment to D59227: tests/sys/kern: skip unix_connectat fdescfs cases when fdescfs is missing.

Please doublecheck that the new support also meets your needs before committing.

Sep 4 2026, 6:45 PM
nickbanks_netflix.com updated the diff for D59227: tests/sys/kern: skip unix_connectat fdescfs cases when fdescfs is missing.

Use require.kmods ATF metadata instead of ATF_REQUIRE_KERNEL_MODULE(), per review. Macro include and its -I${SRCTOP}/tests CFLAGS dropped; macro line continuations and trailing newline verified intact.

Sep 4 2026, 1:36 PM

Aug 27 2026

nickbanks_netflix.com published D59230: hwpmc: add pmc_sample(9), an in-kernel PMU-sampling KPI for review.
Aug 27 2026, 7:56 PM
nickbanks_netflix.com published D59229: hwpmc(4): stop overwalking past _start on amd64 user callchains for review.
Aug 27 2026, 7:38 PM
nickbanks_netflix.com published D59227: tests/sys/kern: skip unix_connectat fdescfs cases when fdescfs is missing for review.
Aug 27 2026, 6:45 PM

Aug 24 2026

nickbanks_netflix.com accepted D59142: tcp: minor cleanup.
Aug 24 2026, 11:40 AM

Aug 19 2026

nickbanks_netflix.com added inline comments to D58985: sys: build core headers under bounds-safety.
Aug 19 2026, 12:26 PM

Jul 24 2026

nickbanks_netflix.com updated the diff for D56979: kern: import eventlog(9), a kernel event logging framework.

fold in merged fixes: SMR re-entrancy guard for nested NMI/interrupt/callout writes (drop instead of recursing smr_enter); eventlog_gen.awk exact keyword matching

Jul 24 2026, 3:14 PM

Jul 16 2026

nickbanks_netflix.com added a comment to D56979: kern: import eventlog(9), a kernel event logging framework.

Yea your comments on 1 and 2 are fair. For 3 if you carefully align things and use explicit ordering you should be very fast. With high core counts some of these concurrent queues may also use flat combining to reduce contention.

Jul 16 2026, 4:34 PM

Jul 15 2026

nickbanks_netflix.com added a comment to D56979: kern: import eventlog(9), a kernel event logging framework.

I made a high level pass over the diff I think I have enough context to review it carefully now.

  1. I wonder if it would be better to integrate with libctf to pull the enumerations and type information so that you don't have to be so verbose. Granted in the case of TCP, the definitions I'd worry about maintaining are tied to FreeBSD's ABI, but this might allow us to reduce the burden and just extract types straight from CTF.
Jul 15 2026, 6:28 PM

Jul 8 2026

nickbanks_netflix.com updated the diff for D57309: tcp: add eventlog(9) provider for TCP.

SOCKET_OPT_BLOB: drop varlen field ref from event format string

Jul 8 2026, 3:10 PM

Jul 7 2026

nickbanks_netflix.com updated the diff for D56979: kern: import eventlog(9), a kernel event logging framework.

Scrub internal ticket reference from a test comment

Jul 7 2026, 6:43 PM
nickbanks_netflix.com updated the diff for D57309: tcp: add eventlog(9) provider for TCP.

Drop IN/OUT checksum; log on-wire TCP options; add SHUTDOWN/CLOSE events; add SOCKET_OPT_BLOB for variable-length socket options

Jul 7 2026, 6:26 PM
nickbanks_netflix.com updated the diff for D56979: kern: import eventlog(9), a kernel event logging framework.

eventlog: generate provider headers via make dependencies to fix a parallel-build header race

Jul 7 2026, 2:13 PM

Jul 1 2026

nickbanks_netflix.com added a comment to D56979: kern: import eventlog(9), a kernel event logging framework.
In D56979#1329272, @jtl wrote:
In D56979#1329232, @jtl wrote:

What is the rationale for using an AWK file to generate source? I find that it makes it hard to intuitively reason about what this is doing.

My (limited) understanding was that AWK files were the standard way to have build-time generated headers.

They are a standard way to do this. I just don't recall another example that is so long and detailed. I generally don't like non-trivial auto-generated code because it makes debugging very difficult. With GenAI, this may become less of an issue. And I will admit that it is a matter of preference, not correctness. But my history in trying to track down obscure bugs tells me that auto-generated code obfuscates enough that it complicates debugging.

I really will have to take the time to grok the code better before I have a substantive suggestion for an alternative. The generic answers are macros and decomposing things that can be de-duplicated into a shared include file. I don't know whether either one is appropriate here.

Jul 1 2026, 12:35 PM

Jun 30 2026

nickbanks_netflix.com added a comment to D56979: kern: import eventlog(9), a kernel event logging framework.
In D56979#1329232, @jtl wrote:

What is the rationale for using an AWK file to generate source? I find that it makes it hard to intuitively reason about what this is doing.

Jun 30 2026, 7:44 PM

Jun 25 2026

nickbanks_netflix.com added inline comments to D57309: tcp: add eventlog(9) provider for TCP.
Jun 25 2026, 1:03 PM
nickbanks_netflix.com added inline comments to D56979: kern: import eventlog(9), a kernel event logging framework.
Jun 25 2026, 12:48 PM

Jun 16 2026

nickbanks_netflix.com updated the diff for D56979: kern: import eventlog(9), a kernel event logging framework.

elog: emit 'unknown argument' for unrecognized options

Jun 16 2026, 3:59 PM

Jun 15 2026

nickbanks_netflix.com updated the diff for D57309: tcp: add eventlog(9) provider for TCP.

Address review feedback: emit timer lifecycle events (START/CANCEL/FIRED/PROCESSED) from the base-stack timer callers; widen TIMER_START.timeout_us to uint64_t; add timer_reason payloads; guard CONN_SET_IP on a bound local port; elog(1) provider-prefixed per-session filename

Jun 15 2026, 4:10 PM
nickbanks_netflix.com updated the diff for D56979: kern: import eventlog(9), a kernel event logging framework.

Address review feedback: parse elog(1) options with getopt_long; drop internal man-page xref

Jun 15 2026, 4:07 PM

Jun 10 2026

nickbanks_netflix.com added a comment to D57309: tcp: add eventlog(9) provider for TCP.

@rrs - I just wanted to provide a bit more context here.

Jun 10 2026, 10:53 PM
nickbanks_netflix.com added a comment to D57309: tcp: add eventlog(9) provider for TCP.

Collected point-by-point below, keyed to your inline comments by file:line:

Jun 10 2026, 8:37 PM
nickbanks_netflix.com added a comment to D57309: tcp: add eventlog(9) provider for TCP.

Point-by-point replies inline.

Jun 10 2026, 8:29 PM
nickbanks_netflix.com added a comment to D57309: tcp: add eventlog(9) provider for TCP.

Thanks for the very thorough review, Michael — this caught several real bugs, not just nits. I've uploaded a new diff that addresses every point; replies are inline. A few overall notes:

Jun 10 2026, 8:27 PM
nickbanks_netflix.com updated the diff for D57309: tcp: add eventlog(9) provider for TCP.

Address tuexen & gallatin review feedback: GENERIC build fixes (TCP_EVENTLOG 79->81, TF2_EVENTLOG_ENABLED bit move, add <netinet/tcp_hpts.h>, replace internal timeval_to_usec64() with tcp_tv_to_lusec()); log IN/OUT fields in host byte order and use tcp_get_flags() to capture the AE flag; schema adds win_raw+win to IN/OUT and state to OUT, renames timeout->timeout_us, adds timer TWOMSL; elog(1) uses calloc() for per-session state; tcp_syncache.c dynamically enables the eventlog session and dumps state on connections accepted from an eventlog-enabled listener.

Jun 10 2026, 8:03 PM
nickbanks_netflix.com added a comment to D57309: tcp: add eventlog(9) provider for TCP.

Thanks Randall — that clears up the BBPOINT piece. You're right on the mechanics (single-select today, one point defined, a mask could be added), and I agree that enhancing beats rewriting all else equal. But a mask only changes which events fire, which is the least of the differences. The structural ones it doesn't touch:

Jun 10 2026, 1:57 PM
nickbanks_netflix.com added a comment to D57309: tcp: add eventlog(9) provider for TCP.
In D57309#1317999, @rrs wrote:

I have a serious problem with this proposed commit. Near as I can see the Eventlog created is just a knock-off recreation
of TCP BBlogging.

Jun 10 2026, 12:09 AM

Jun 8 2026

nickbanks_netflix.com updated the diff for D56979: kern: import eventlog(9), a kernel event logging framework.

Address tuexen review on usr.bin/elog/elog.c: STAILQ_FOREACH_SAFE in close_session_file() and document the per-event output line format in elog.1.

Jun 8 2026, 4:22 PM
nickbanks_netflix.com updated the diff for D56979: kern: import eventlog(9), a kernel event logging framework.

Address review feedback from tuexen on usr.bin/elog/elog.c: STAILQ_FOREACH_SAFE in close_session_file(), and document the per-event output line format in elog.1. No functional change.

Jun 8 2026, 4:22 PM
nickbanks_netflix.com updated the diff for D56979: kern: import eventlog(9), a kernel event logging framework.

Address review feedback from tuexen on usr.bin/elog/elog.c:

Jun 8 2026, 4:22 PM

Jun 1 2026

nickbanks_netflix.com added a comment to D56979: kern: import eventlog(9), a kernel event logging framework.

rrs is currently traveling and has no access to phabricator Therefore he asked me to forward some questions:

  1. What is this for (statistics, debugging, ?)?
  2. If it’s for debugging why was BBlogging not used?
  3. If it’s for stats, why were trace points in BBLogging used?
Jun 1 2026, 3:46 PM

May 29 2026

nickbanks_netflix.com added a comment to D57309: tcp: add eventlog(9) provider for TCP.
In D57309#1313341, @bms wrote:

I have plans to add Delayed ACK profiling eventually, does this collide with anything, or is someone going to beat me to it?

This is with a view to merging Minshall from xnu, which already does D-ACK profiling (NOT DSACK).

May 29 2026, 1:50 PM

May 28 2026

nickbanks_netflix.com updated the diff for D57309: tcp: add eventlog(9) provider for TCP.

Build fixes after running buildkernel - see commit body for details

May 28 2026, 10:22 PM
nickbanks_netflix.com updated the diff for D57309: tcp: add eventlog(9) provider for TCP.

Build fixes after running buildkernel: 1) Replace legacy 5-arg eventlog_provider_create() calls in tcp_subr.c and tcp_stacks/rack.c with upstream 2-arg form using a struct eventlog_provider_config. 2) Replace Netflix-internal INP_DROPPED check in the sendfile eventlog hook with upstream tp->t_flags & TF_DISCONNECTED. 3) Declare 'appended' in tcp_usr_send and capture sbavail() deltas around sbappendstream*. 4) Drop the SACK_LOG branch in rack_ack_received() since num_sack_blks/sack_blocks are not in scope; re-enable once rack_ack_received() is extended to receive SACK info from its callers.

May 28 2026, 10:22 PM
nickbanks_netflix.com requested review of D57309: tcp: add eventlog(9) provider for TCP.
May 28 2026, 6:36 PM

May 14 2026

nickbanks_netflix.com updated the diff for D56979: kern: import eventlog(9), a kernel event logging framework.

Add SPDX header to tests/sys/kern/kern_eventlog_test.py (it was previously unmarked).

May 14 2026, 2:27 PM
nickbanks_netflix.com updated the diff for D56979: kern: import eventlog(9), a kernel event logging framework.

Switch newly-introduced files to the simplified BSD-2-Clause template (Copyright + SPDX, no inlined boilerplate) per the licensing-policy doc. Existing files we only modify keep their existing headers untouched.

May 14 2026, 2:20 PM

May 13 2026

nickbanks_netflix.com updated the diff for D56979: kern: import eventlog(9), a kernel event logging framework.

Add bin/elog to targets/pseudo/userland/Makefile.depend so DIRDEPS_BUILD also picks up the new userland binary.

May 13 2026, 4:48 PM

May 12 2026

nickbanks_netflix.com published D56979: kern: import eventlog(9), a kernel event logging framework for review.
May 12 2026, 9:39 PM
nickbanks_netflix.com added a reviewer for D56972: sys/time: add bintime2us() helper: peter.lei_ieee.org.
May 12 2026, 4:59 PM
nickbanks_netflix.com published D56972: sys/time: add bintime2us() helper for review.
May 12 2026, 3:05 PM

May 11 2026

nickbanks_netflix.com accepted D56943: tests/tcp_hpts_test: Fix more resource leaks.
May 11 2026, 2:51 PM
nickbanks_netflix.com accepted D56943: tests/tcp_hpts_test: Fix more resource leaks.

It looks like your main goal is to just clean up the lock? A more complete solution would need to run the cleanup stuff around test_hpts_free_tcpcb, right? I'm fine you prefer that be done in a follow up PR though.

May 11 2026, 2:19 PM

Apr 26 2026

nickbanks_netflix.com accepted D56647: tests/tcp_hpts_test: Fix resource leaks.
Apr 26 2026, 10:54 PM

Apr 25 2026

nickbanks_netflix.com accepted D56610: tcp: release nic ktls send tags before time wait.
Apr 25 2026, 10:48 AM

Apr 16 2026

nickbanks_netflix.com accepted D56427: mlx5e: Ensure rx timestamps are monotonically increasing.

Tested this out and it reduced the backward time jumps, as measured by TCP connections, by >99.98% (down from 73,800 to 10).

Apr 16 2026, 1:39 PM

Mar 23 2026

nickbanks_netflix.com accepted D56025: tcp: retire TF_SENTSYN.
Mar 23 2026, 9:25 PM

Mar 3 2026

nickbanks_netflix.com accepted D55640: hpts: remove call into TCP HPTS from userret().
Mar 3 2026, 9:58 PM

Feb 24 2026

nickbanks_netflix.com accepted D55466: tcp: BBLog incoming packets in TCPS_TIME_WAIT.
Feb 24 2026, 3:17 AM

Jan 5 2026

nickbanks_netflix.com accepted D54534: tcp: Unifidef use of rss software hash in syncache.
Jan 5 2026, 8:54 PM

Dec 5 2025

nickbanks_netflix.com accepted D54072: tcp: retire do_newsack - always adhere to RFC6675.
Dec 5 2025, 12:39 PM

Nov 2 2025

nickbanks_netflix.com accepted D53540: tcp: drop SYN ACK segment for listening sockets.
Nov 2 2025, 9:13 PM
nickbanks_netflix.com accepted D53510: ddb: use %b when showing flags for a tcpcb.
Nov 2 2025, 4:22 PM

Oct 22 2025

nickbanks_netflix.com added inline comments to D53225: TCP Pacing system (HPTS) is missing an API.
Oct 22 2025, 12:03 PM
nickbanks_netflix.com accepted D53252: netstat: add support for UDP-Lite endpoints.
Oct 22 2025, 11:52 AM

Oct 21 2025

nickbanks_netflix.com accepted D53230: sockstat: add support for UDP-Lite endpoints.
Oct 21 2025, 7:11 PM
nickbanks_netflix.com accepted D53229: UDP-Lite: export pcblist via sysctl interface.
Oct 21 2025, 6:40 PM

Oct 14 2025

nickbanks_netflix.com accepted D53108: conf: enable TCP_HPTS_KTEST on debug builds.
Oct 14 2025, 11:33 PM

Oct 8 2025

nickbanks_netflix.com added a comment to D52979: tcp: Initial ktest for HPTS.
In D52979#1210419, @rrs wrote:

Testing is a good thing so I think this is well worth having. I will say on the rumor of name changes inside tcp_hpts due to the idea of possibly supporting
more than just TCP. I am unsupportive of this UNTIL we have tcp_hpts being able to handle multiple protocols. When I originally wrote hpts (called pacing not hpts.. Robert
renamed it hpts) I did envision expanding it to include not just TCP but SCTP and maybe even UDP. But the fundamental problem I hit was the fact that choosing where
to dice the thing such that you would have a common call point into the protocol was not a cut and dried thing. For TCP it was easy since there was a clear demark between
the initial input of the packet and the actual segment processing, which I used when I broke out the multiple stacks idea. However for SCTP and UDP no such clear
basis exists that is common with TCP..... or even between SCTP and UDP... so I back down and decided to implement it has a TCP thing. Now if someone comes up
with a clean and elegant way to call into to TCP/SCTP and UDP then name changes would be appropriate within the code.. without that elegant set of proposed
changes name changes I am STRONGLY against and will object to since they are just irrelevant until HTPS can support multiple protocols... so in summary

  1. HPTS needs a clean way to do multiple protocols *first*
  2. Name changes afterwards

Not the other way around :)

Oct 8 2025, 1:06 PM

Oct 2 2025

nickbanks_netflix.com accepted D52872: tcp: bump max snd buffer size for autoscaling.
Oct 2 2025, 7:39 PM
nickbanks_netflix.com accepted D52868: tcp: close two minor races with debug messages.
Oct 2 2025, 5:43 PM
nickbanks_netflix.com accepted D52849: tcp: improve segment validation in SYN-RECEIVED.
Oct 2 2025, 1:57 PM

Oct 1 2025

nickbanks_netflix.com accepted D52840: tcp: keep SYN-cache entry when sending of challenge ACK fails.
Oct 1 2025, 9:02 PM
nickbanks_netflix.com accepted D52816: tcp: cleanup syncache_expand().

This change looks good to me, though I personally prefer to the more verbose comments before you shortened them. But I wouldn't block on that.

Oct 1 2025, 11:58 AM

Sep 25 2025

nickbanks_netflix.com accepted D52717: tcp: refactor tcp_send_challenge_ack().
Sep 25 2025, 11:26 AM

Aug 28 2025

nickbanks_netflix.com accepted D52225: tcp: improve sending of SYN-cookies.
Aug 28 2025, 10:22 PM

Aug 11 2025

nickbanks_netflix.com accepted D51849: icmp: remove unused BANDLIM_UNLIMITED.
Aug 11 2025, 1:19 PM

Aug 9 2025

nickbanks_netflix.com accepted D51814: tcp : remove assignment without effect.
Aug 9 2025, 11:22 AM
nickbanks_netflix.com accepted D51724: tcp: mitigate a side channel for detection of TCP connections.
Aug 9 2025, 11:21 AM
nickbanks_netflix.com accepted D51815: tcp: rate limit the sending of all RST segments.
Aug 9 2025, 11:20 AM

Aug 5 2025

nickbanks_netflix.com added a comment to rG7be913e00d79: libutil++: Add freebsd::pidfile wrapper class around struct pidfh.

Hello! While I realize it might not be a priority here, I just wanted to leave a comment to let you know these recent changes to add files with : in the filename have broken git clone/pull on Windows (which doesn't allow these characters in the file names). I had the repo cloned on a Windows laptop so I could read the code, but now can no longer git pull the latest. It would be great if we could maintain that support. Thanks!

Aug 5 2025, 6:14 PM
nickbanks_netflix.com added a comment to D51721: tcp: ensure that tcp_dropwithreset() has expected rstreason.

Just to be clear: I am not concerned that some invalid value is passed in. The values used for rstreason are defined in icmp_var.h so I think changing them to an enum would not only affect the TCP code.

Aug 5 2025, 4:53 PM
nickbanks_netflix.com added a comment to D51721: tcp: ensure that tcp_dropwithreset() has expected rstreason.

I feel like this is pretty fragile. This reset reason can pass through a few layers of code, and it's not clear before this point (at least for me, a newcomer to the code) that these are the only two valid reasons (nor why they are). Also, it's not trivial to quickly/trivially walk the code paths to be certain this assert holds.

Aug 5 2025, 2:37 PM
nickbanks_netflix.com accepted D51734: rack, bbr: minor cleanup.
Aug 5 2025, 1:14 PM

Aug 4 2025

nickbanks_netflix.com accepted D51726: tcp: improve consistency of KASSERTs in tcp_sack.c.
Aug 4 2025, 8:44 PM

Jul 21 2025

nickbanks_netflix.com accepted D51441: tcp rack: use correct variable for clearing app limited periods.
Jul 21 2025, 3:05 PM
nickbanks_netflix.com accepted D51440: tcp: use a single counter for limiting the RST rate.
Jul 21 2025, 8:05 AM

Jul 20 2025

nickbanks_netflix.com accepted D51438: tcp: small cleanup.
Jul 20 2025, 1:00 PM
nickbanks_netflix.com added a member for transport: nickbanks_netflix.com.
Jul 20 2025, 12:59 PM