> For the complete documentation index, see [llms.txt](https://apool.gitbook.io/help/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apool.gitbook.io/help/qubic-faq/huge-pages-tutotial.md).

# Huge Pages Tutotial

**Window**

On Windows you need special privilege called as *SeLockMemoryPrivilege* to use huge pages.

* [Manual configuration ](https://msdn.microsoft.com/en-gb/library/ms190730.aspx)

**Linux**

You must know how many huge pages you need, general recommendations is 20 pages per thread for Qubic,  eg. set 960 pages for 48 threads, which means 1920MB of memory will be reserved for huge pages and become not available for other usage.

Temporary (until next reboot) reserve huge pages:

```
sudo sysctl -w vm.nr_hugepages=960
```

Permanent huge pages reservation

```
sudo bash -c "echo vm.nr_hugepages=960 >> /etc/sysctl.conf"
```
