# 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"
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://apool.gitbook.io/help/qubic-faq/huge-pages-tutotial.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
