From 13971b3d189b49e43ec4e621fec2193d9072c97d Mon Sep 17 00:00:00 2001 From: Francisco Javier Trujillo Mata Date: Thu, 5 Mar 2026 22:09:25 +0100 Subject: [PATCH 1/2] Disable nagle --- iop/imports.lst | 1 + iop/net_fio.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/iop/imports.lst b/iop/imports.lst index 130c748..31562a1 100644 --- a/iop/imports.lst +++ b/iop/imports.lst @@ -41,6 +41,7 @@ I_lwip_recvfrom I_lwip_close I_lwip_bind I_lwip_accept +I_lwip_setsockopt ps2ip_IMPORTS_end sifcmd_IMPORTS_start diff --git a/iop/net_fio.c b/iop/net_fio.c index 3c6432c..f6c1f4a 100644 --- a/iop/net_fio.c +++ b/iop/net_fio.c @@ -752,6 +752,13 @@ int pko_file_serv(void *argv) ret = disconnect(pko_fileio_sock); dbgprintf("close ret %d\n", ret); } + + /* Disable Nagle on IOP side so small request packets are sent + * immediately without waiting for previous data to be ACKed. */ + { + int one = 1; + setsockopt(client_sock, IPPROTO_TCP, TCP_NODELAY, &one, sizeof(one)); + } pko_fileio_sock = client_sock; } From f6ecdaf5b86a2cee3dbe6bb51a28dfdadf950630 Mon Sep 17 00:00:00 2001 From: Francisco Javier Trujillo Mata Date: Fri, 6 Mar 2026 11:08:52 +0100 Subject: [PATCH 2/2] Perform gc-sections even in debug --- ee/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ee/Makefile b/ee/Makefile index 8f9e7b0..2eb1e7e 100644 --- a/ee/Makefile +++ b/ee/Makefile @@ -17,17 +17,16 @@ EE_CFLAGS += -Werror # This is to enable the debug mode into ps2link ifeq ($(DEBUG),1) EE_CFLAGS += -DDEBUG -g -else +endif EE_CFLAGS += -Os EE_CFLAGS += -fdata-sections -ffunction-sections -endif ifeq ($(DEBUG),1) EE_LDFLAGS += -g else EE_LDFLAGS += -s -EE_LDFLAGS += -Wl,--gc-sections endif +EE_LDFLAGS += -Wl,--gc-sections EE_LDFLAGS += -Wl,-Map,ps2link.map # This is to read the closest tag version