c-taylor commented on code in PR #13086: URL: https://github.com/apache/trafficserver/pull/13086#discussion_r3075734903
########## src/iocore/net/UnixNet.cc: ########## @@ -200,3 +207,44 @@ initialize_thread_for_net(EThread *thread) #endif thread->ep = ep; } + +#if defined(__linux__) +// Give each ET_NET thread its own kernel FD table (files_struct) so that +// accept4/close no longer contend on a single shared spinlock. Every FD +// that was open at the time of the call is copied into the new private +// table — the underlying kernel objects (struct file) are shared, so +// cross-thread eventfd signalling and shared cache-disk FDs keep working. +// +// This must be scheduled AFTER start_HttpProxyServer() so that all +// initialization FDs (eventfds, cache disks, DNS sockets, log files, +// listen sockets, plugin FDs) are already in place. Review Comment: Updated -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
