Search code examples
azureazure-worker-rolespagefile

How does Azure WorkerRole handle its OS page file?


The Azure WorkerRole offers the possibility to create LocalStorage resources. My understanding is that the OS page file is going to use the local storage space. However, as it's possible to create multiple local storage spaces, it's not clear to me which one is going to be used by the OS for the pagefile. Could someone shed light on how the pagefile works out in the case of an Azure WorkerRole?


Solution

  • The pagefile remains on the Role's system disk which you don't have direct access to.

    LocalStorage is created on a temporary disk attached to the host when running.

    You could theoretically script the moving of the pagefile to the LocalStorage drive but you'd be unlikely to be successful as the LocalStorage drive can be different depending on the host.