Skip to content

Commit 69ae900

Browse files
jra3claude
andcommitted
fix(test): reduce multi-socket test core count to avoid BadgerDB txn limit
The multi-socket server test was creating too many socket sharing relationships (n² for 20 cores = 380 relationships per socket), which exceeded BadgerDB's transaction size limit and caused test failures. Reduced from 20 cores/socket to 4 cores/socket (8 total physical cores, 16 logical with HT). This still validates multi-socket topology while staying within transaction limits. Error was: 'Txn is too big to fit into one request' Co-Authored-By: Claude <[email protected]>
1 parent aa6ff84 commit 69ae900

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/hardware/graph/builder_integration_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,15 @@ func TestHardwareGraph_MultiSocketServer(t *testing.T) {
155155
Microcode: "0x500320a",
156156
CPUMHz: 2500.000,
157157
CacheSize: "28160 KB",
158-
PhysicalCores: 40, // 20 cores per socket
159-
LogicalCores: 80, // With HT
160-
Cores: generateMultiSocketCPUCores(2, 20, true),
158+
PhysicalCores: 8, // 4 cores per socket (reduced to avoid BadgerDB txn size limit)
159+
LogicalCores: 16, // With HT
160+
Cores: generateMultiSocketCPUCores(2, 4, true),
161161
},
162162
MemoryInfo: &performance.MemoryInfo{
163163
TotalBytes: 536870912000, // 512GB
164164
NUMAEnabled: true,
165165
NUMABalancingAvailable: true,
166-
NUMANodes: generateNUMANodes(2, 20),
166+
NUMANodes: generateNUMANodes(2, 4),
167167
},
168168
DiskInfo: generateServerDiskConfig(),
169169
NetworkInfo: generateServerNetworkConfig(),

0 commit comments

Comments
 (0)