From 531ba156de326210e4807b701183eaf2f506cf2a Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 10 Oct 2025 18:13:16 +0200 Subject: [SERVER] iscsi refactor: First working version Work towards simplifying the iscsi implementation has begun. Goals are: - Simpler and easier to understand resource/lifecycle management of allocations - Single-threaded architecture, making locking unnecessary - Moving as many allocations as possible to the stack - Making the call-stack more shallow for easier tracking of code flow --- inc/dnbd3/config/server.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'inc') diff --git a/inc/dnbd3/config/server.h b/inc/dnbd3/config/server.h index b6eee2c..9330915 100644 --- a/inc/dnbd3/config/server.h +++ b/inc/dnbd3/config/server.h @@ -17,6 +17,8 @@ #define UPLINK_MAX_CLIENTS_PER_REQUEST 32 // Maximum number of clients that can attach to one uplink request #define SERVER_UPLINK_QUEUELEN_THRES 900 // Threshold where we start dropping incoming clients #define SERVER_MAX_PENDING_ALT_CHECKS 500 // Length of queue for pending alt checks requested by uplinks +#define SERVER_TCP_BUFFER_MIN_SIZE_PAYLOAD 1048576 // Tweak socket buffer for direction with payload (image data) to be at least this size (1MiB) +#define SERVER_TCP_BUFFER_MIN_SIZE_REQUESTS 8192 // Tweak socket buffer for direction without payload (requests) to be at least this large (8KiB) // Wait a maximum of 5 minutes before saving cache map (if data was received at all) #define CACHE_MAP_MAX_SAVE_DELAY 300 -- cgit v1.2.3-55-g7522