aubanan
Goto Top

CMD Batch per Taskplaner langsamer als manuell gestartet

Hallo zusammen,
auf einem Windows 10 System (VM in Proxmox) läuft per Taskplaner ein CMD Script, welches Dateien von einem NAS auf eine USB Platte (Laufwerk der Win 10 VM) kopiert. Dabei wird das LAN mit 1GBit/s maximal ausgelastet.
Im Anschluss erstellt das Script von den Quelldateien Checksummen mit dem Tool fsum.exe (liegt in Windows\Sytem32)

Wird das Script
a) von Hand ausgeführt: LAN wird mit ca. 700MBit/s ausgelastet
b) per Aufgabenplanung ausgeführt: LAN wird mit ca. 160MBit/s ausgelastet

CPU und USB SSD sind zu dem Zeitpunkt nicht ausgelastet.

Woran kann das liegen und wie lässt sich das lösen.
Greift bei Windows sowas wie LHR bei Garfikkarten, bei der Erstellung von Hashes ;)

Die Checksummen nutze ich im nächsten Schritt, um die Kopie zu prüfen.

Danke für Eure Kommentare.

Content-Key: 6517924567

Url: https://administrator.de/contentid/6517924567

Printed on: July 27, 2024 at 12:07 o'clock

Member: SomebodyToLove
Solution SomebodyToLove Mar 27, 2023 at 14:29:55 (UTC)
Goto Top
Hiho,

das sollte an der Task Priorität liegen.
Schau mal ob das noch für dich funktioniert:

Right click on the task and "export" it  
Edit the task.xml file that you just exported
You will find a line similar to <Priority>7</Priority>
Change the value to a normal priority (between 4-6). A table of the potential values: TaskSettings.Priority property
A value of 4 will have the same I/O and memory priority as an interactive process. Values of 5 and 6 will have lower memory priority
In the task scheduler, delete the task you initially created
In the task scheduler, in the actions area, import the task from the XML file
Quelle: https://serverfault.com/questions/151824/process-runs-slower-as-a-schedu ...

Alternativ vielleicht hier über die PowerShell:
$task = Get-ScheduledTask -TaskName '...' // Your task's name  
$settings = $task.Settings
$settings.Priority = 4
// For possible values see https://learn.microsoft.com/en-us/windows/win32/taskschd/tasksettings-priority#remarks
Set-ScheduledTask -TaskName $taskName -Settings $settings
Quelle: https://stackoverflow.com/questions/47197821/how-to-change-default-sched ...

Grüße
Somebody
Member: Aubanan
Aubanan Apr 17, 2023 at 21:14:10 (UTC)
Goto Top
Export des Tasks, ändern der Priorität und Import hat funktioniert und geholfen.
Danke!