Follow the steps given below:

• right click on computer, then click on properties,

• go to the advanced tab, then click on settings for performance,

• go to the advanced tab in the performance options window, then click change in the virtual memory section,

• In the drive selection, choose your flash drive, click custom size, and set whatever you want.