Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way for a win2k8 scheduled task to have normal priority IO?

I have a scheduled task that is very IO intensive (deleting hundreds of thousands of files). For disk space reasons, this job has to be performed reasonably quickly. On win2k8, scheduled tasks always have a low IO priority. Raising the priority of the process did not change the IO priority. Is there any way to get a scheduled task to have a normal IO priority?

like image 659
Jason Mathison Avatar asked Mar 11 '10 17:03

Jason Mathison


People also ask

Where does GPO put Scheduled Tasks?

Normal users can not create these scheduled tasks, we need to give access via gpo on user configuration\preferrences\folders and added c:\windows\tasks. The task must be created in computer configuration side.

How do I force a Scheduled Task?

A. Go to the Scheduled Tasks applet in Control Panel, right-click the task you want to start immediately, and select Run from the displayed context menu.

How do I edit a Scheduled Task?

Open Task Scheduler, and select the task that you want to change. Click on the Properties tab from the Action menu to open the Task Properties dialog box. Click on the General tab to view the task's general settings that you can modify.

How do I run a Scheduled Task on a remote computer?

Remote Desktop must be open to perform a scheduled task. In Remote Desktop , click the Schedule button in the task window, then choose when and how often you want the task to execute. To repeat the task, click Repeating Every, set the repeat interval, then click OK.


2 Answers

  1. Create the task
  2. Right click on the task and "export" it
  3. Edit the task.xml file that you just exported
  4. You will find a line similar to <Priority>7</Priority>
  5. 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
  6. In the task scheduler, delete the task you initially created
  7. In the task scheduler, in the actions area, import the task from the XML file
like image 114
Jason Mathison Avatar answered Nov 10 '22 10:11

Jason Mathison


Perhaps use IO Priority to set the process's priority?

Also, see Windows Vista: Kernel Changes - I/O, I/O, It's off to work I go...

  • I/O Completion Port Improvement[…]
  • I/O Scalability Improvements[…]
  • I/O Cancellation Support[…]
  • I/O Prioritization[…]
  • I/O bandwidth reservation
like image 32
x y Avatar answered Nov 10 '22 09:11

x y