# How to create a .wslconfig file to increase memory

**URL:** <https://community.opendronemap.org/t/how-to-create-a-wslconfig-file-to-increase-memory/15770>\
**Category:** OpenDroneMap Desktop\
**Tags:** opendronemap-desktop, docker\
**Created:** [April 30, 2023, 1:48am UTC](https://community.opendronemap.org/t/how-to-create-a-wslconfig-file-to-increase-memory/15770 "2023-04-30T01:48:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josuec52](https://community.opendronemap.org/user_avatar/community.opendronemap.org/josuec52/32/10676_2.png) [@Josuec52](https://community.opendronemap.org/u/Josuec52)\
**Post date:** [April 30, 2023, 1:48am UTC](https://community.opendronemap.org/t/how-to-create-a-wslconfig-file-to-increase-memory/15770/1 "2023-04-30T01:48:42Z")

</div>

Hi all,  
I already had this issue in the past, but I still cannot find an answer to it. I`m trying to run WebODM with 161 images in ultra-quality mode. I was able to run it with no issues two times and all of a sudden it tells me that I do not have enough memory. I went to the MS website to see the instructions on how to create the .wslconfig file to adjust the memory, but it doesn`t say really how to (I`m still learning this kind of stuff). I`ve watched many YT vids but they are all different.

Can someone send a link of a video of someone doing this? or even somewhere where I can read the proper steps?  
Do I need to use notepad to create the file?  
After creating it, what do I need to do for it to take effect?

My PC specs are: 16 GB RAM, Processor: Intel core i5-1035G1 CPU @1.00 GHz System type: 64-bit OS

 ![Screenshot_20230129_052915](https://community.opendronemap.org/uploads/default/original/2X/0/0d32913435c9a64decf1747e9a11e586960d1144.png)  
 ![diagnostic](https://community.opendronemap.org/uploads/default/original/2X/d/d1561d2029a2c8b0b9ee1e88d2f481c822caae85.png)

Thanks in advance!!

---

<div class="post-metadata">

**Author:** ![Saijin\_Naib](https://community.opendronemap.org/user_avatar/community.opendronemap.org/saijin_naib/32/1583_2.png) [@Saijin\_Naib](https://community.opendronemap.org/u/Saijin_Naib)\
**Post date:** [April 30, 2023, 3:59am UTC](https://community.opendronemap.org/t/how-to-create-a-wslconfig-file-to-increase-memory/15770/2 "2023-04-30T03:59:31Z")

</div>

Yep, you use notepad to make it, and it needs to be at the root level of your user folder.

So, it’d be like:

```auto
C:\Users\Saijin_Naib\.wslconfig

```

You’ll need to restart your machine for the Linux Hypervisor service to re-read the config.

---

<div class="post-metadata">

**Author:** ![Josuec52](https://community.opendronemap.org/user_avatar/community.opendronemap.org/josuec52/32/10676_2.png) [@Josuec52](https://community.opendronemap.org/u/Josuec52)\
**Post date:** [May 2, 2023, 2:07am UTC](https://community.opendronemap.org/t/how-to-create-a-wslconfig-file-to-increase-memory/15770/3 "2023-05-02T02:07:17Z")

</div>

I already did exactly what you are telling me, but I `m still having trouble getting more than 4GB of RAM

---

<div class="post-metadata">

**Author:** ![Peter\_Whiter](https://community.opendronemap.org/user_avatar/community.opendronemap.org/peter_whiter/32/11953_2.png) [@Peter\_Whiter](https://community.opendronemap.org/u/Peter_Whiter)\
**Post date:** [May 20, 2023, 6:43pm UTC](https://community.opendronemap.org/t/how-to-create-a-wslconfig-file-to-increase-memory/15770/4 "2023-05-20T18:43:23Z")

</div>

I’m still pretty noob at this but here is what I’ve set

[wsl2]

memory=48GB

processors=24

swap=48GB

swapfile=o:\temp\wsl-swap.vhdx

pageReporting=false

localhostforwarding=true

nestedVirtualization=false

debugConsole=true

My PC is 64 GB ram and a Core I9-10940  
I have my Windows Swap file on an m.2 drive 60757MB in size

---

<div class="post-metadata">

**Author:** ![system](https://community.opendronemap.org/uploads/default/original/2X/4/4860b651256c708809149b6e644fa41d44687661.png) [@system](https://community.opendronemap.org/u/system)\
**Post date:** [June 19, 2023, 6:43pm UTC](https://community.opendronemap.org/t/how-to-create-a-wslconfig-file-to-increase-memory/15770/5 "2023-06-19T18:43:24Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
