1. Insert your pen drive and format it.
2. Right click on your pen drive and click on properties.
3. Now click on Ready boost tab and then Use this device.
4. Choose maximum space to reserve system speed then click on OK and Apply.
You’ve done! use your pen drive as RAM.