I'm trying to bind some amount of starwind workers to defined cpu.
I'm testing on server with 1 physical cpu that has 4 cores with HT (8 logical processors), starwind version v8 build 14398.
I found in starwind.cfg next vars that can be usefull:
Code: Select all
ServerIoWorkersConcurency
ServerIoWorkersCount
ServerUseIdealProcForThreads
ServerUseOnlyOddCoresForThreads
Code: Select all
ServerIoWorkersConcurency = 2
ServerIoWorkersCount = 2
Code: Select all
ServerUseIdealProcForThreads = 1,3
ServerUseOnlyOddCoresForThreads = 1,3
ServerUseIdealProcForThreads = 10100000
ServerUseOnlyOddCoresForThreads = 10100000
ServerUseIdealProcForThreads = 0xA0
ServerUseOnlyOddCoresForThreads = 0xA0
Code: Select all
1/25 17:46:42.964751 101c Srv: Processor packages/cores/logical: 1/4/8
[...]
1/25 17:46:43.066955 101c Srv: iScsiServer::startWorkers: ServerNodesPerNumaNode = 1
1/25 17:46:43.066970 101c Srv: iScsiServer::startWorkers: Worker threads per server node: total 2, active 2
1/25 17:46:43.066990 101c Srv: SwServerNode::SwServerNode: Node 0: NUMA node 0 (8 cores)
1/25 17:46:43.067004 101c Srv: iScsiServer::startWorkers: ServerDefaultNode = 0
1/25 17:46:43.067037 101c Srv: SwThreadPool::start: TP[0]: preparing 2 worker threads (2 active)...
1/25 17:46:43.067316 1bbc Srv: SwThreadPool::workerThread: TP[0]: worker started at cpu 3+ (numa 0, mask 0xaa), maxEntries 1, priority: 0.
1/25 17:46:43.067361 10b0 Srv: SwThreadPool::workerThread: TP[0]: worker started at cpu 7+ (numa 0, mask 0xaa), maxEntries 1, priority: 0.
And i have out of topic question.
I found that u have changed powershell script sync devices (SyncHaDeviceAdvanced.ps1) from:
Code: Select all
$params = new-object -ComObject StarWindX.Parameters
$params.AppendParam("deviceID",$dev.DeviceId)
$params.AppendParam("partnetTargetName", $partnerTargetName)
$server.ExecuteCommand( 0, "restoreHAPartnerNode", $params)
Code: Select all
$syncType = 1;
$dev.Synchronize($syncType, $partnerTargetName);
And How long will the old construction work?
Thanks!