Как включить huge pages в windows 10

Huge Pages, also known as Large Pages (on Windows) and Super Pages (on BSD or macOS) is very important thing for almost all supported CPU mineable algorithms, typical hashrate increase is 20-30% when huge pages used, for RandomX it can increase performance up to 50%. XMRig refers to this feature as huge pages regardless of platform.

If XMRig use huge pages you will see lines with text like bellow in miner log.

On Windows you need special privilege called as SeLockMemoryPrivilege to use huge pages.
First check miner output if you see line below you already have this privilege and no additional actions required.

* HUGE PAGES   permission granted

If not, you have 2 options to obtain it, both are require admin rights.

  • Easiest way: run the miner as Administrator once and reboot.
  • Manual configuration

On Windows 10 once you obtain the privilege, admin rights no longer required to use huge pages, but on Windows 7 admin rights always required. Please note on Windows no way to reserve huge pages for future use and the miner still can fail to allocate all required huge pages, because other applications use memory, if you got less than 100% of huge pages best option is reboot. If you heavy use algorithm switching and like to prevent loose huge pages you can use option "memory-pool": true, in "cpu" object.

Since version 5.2.0 if you run the miner with root privileges no manual system configuration required.

For manual configuration you must know how many huge pages you need, general recommendations is 1280 pages per NUMA node for RandomX algorithms and 128 per system for other algorithms. Please note 1280 pages means 2560 MB of memory will be reserved for huge pages and become not available for other usage, in automatic mode the miner reserve precise count of huge pages.

Temporary (until next reboot) reserve huge pages:

sudo sysctl -w vm.nr_hugepages=1280

Permanent huge pages reservation

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

For RandomX dataset since version 5.2.0 the miner support 1GB huge pages (regular huge pages size is 2MB), this feature available only on Linux. It increases the hashrate by 1-3% (depends of CPU) and increases memory requirements to 3GB (3 pages) per NUMA node.
By default this feature disabled, to enable use option "1gb-pages": true, in "randomx" object.

If use XMRig with root privileges, additional system configuration not required.
As an alternative you can go to miner source directory and run sudo ./scripts/enable_1gb_pages.sh script source .

On Windows 10 this is done by:

  1. Run gpedit. msc.
  2. Find “User Rights Assignment” under “Computer Configuration” > “Windows Settings” > “Security Settings” > “Local Policies”
  3. Locate “Lock pages in memory” and double click it.
  4. Click “Add User or Group” and add the correct user.
  5. Log out or restart to make the changes take effect.
  1. How do I enable HugePages?
  2. What is large pages in Windows?
  3. What are huge pages mining?
  4. What is the difference between HugePages and transparent huge pages?
  5. How do I increase virtual memory in Windows 10?
  6. What is large page memory?
  7. Why Gpedit MSC is not working?
  8. What is lock pages in memory?
  9. How do I access local security policy?
  10. What is the use of huge pages in Linux?
  11. How do I activate huge pages on XMRig?
  12. How do I know if XMRig is working?

How do I enable HugePages?

Execute ‘sysctl -p’ command to enable the hugepages parameter. Note : It’s recommended to restart the system after configuring hugepages as the chances of having free contiguous memory (for hugepages allocation) is much greater when a system is started.

What is large pages in Windows?

Large-page support enables server applications to establish large-page memory regions, which is particularly useful on 64-bit Windows. Each large-page translation uses a single translation buffer inside the CPU.

What are huge pages mining?

Computer memory is divided into page blocks, and in most operating systems pages larger than 4 KB are called HugePages. HugePages, also known as LargePages (on Windows) and SuperPages (on macOS), are an essential element for mining algorithms on the main processor of a computer.

What is the difference between HugePages and transparent huge pages?

Transparent Hugepages are similar to standard HugePages. However, while standard HugePages allocate memory at startup, Transparent Hugepages memory uses the khugepaged thread in the kernel to allocate memory dynamically during runtime, using swappable HugePages.

How do I increase virtual memory in Windows 10?

Go to the Start Menu and click on Settings. Type performance. Choose Adjust the appearance and performance of Windows. In the new window, go to the Advanced tab and under the Virtual memory section, click on Change.

What is large page memory?

Large memory pages are pages of memory which are significantly larger than 4 kb, usually 2 Mb.

Why Gpedit MSC is not working?

If you find the Group Policy Editor (gpedit. msc) missing in Windows 10, you should first try to enable or open gpedit: press Windows + R to open Run dialog -> type gpedit. … Upgrade to Windows 10 Pro or Enterprise. Copy & paste GroupPolicy, GroupPolicyUsers, and gpedit.

What is lock pages in memory?

Lock Pages in Memory is a Windows policy that determines which accounts can use a process to keep data in physical memory, preventing the system from paging the data to virtual memory on disk. Locking pages in memory may keep the server responsive when paging memory to disk occurs.

How do I access local security policy?

To open Local Security Policy, on the Start screen, type secpol. msc, and then press ENTER. Under Security Settings of the console tree, do one of the following: Click Account Policies to edit the Password Policy or Account Lockout Policy.

What is the use of huge pages in Linux?

HugePages is a feature integrated into the Linux kernel 2.6. Enabling HugePages makes it possible for the operating system to support memory pages greater than the default (usually 4 KB).

How do I activate huge pages on XMRig?

1GB huge pages Linux only

By default this feature disabled, to enable use option «1gb-pages»: true, in «randomx» object. If use XMRig with root privileges, additional system configuration not required. As an alternative you can go to miner source directory and run sudo ./scripts/enable_1gb_pages.sh script source .

How do I know if XMRig is working?

Windows users can double click on xmrig.exe. Users of other operating systems should cd into the directory that contains XMRig and then type ./xmrig and press return. If you see green messages saying that shares have been accepted, congratulations, everything is working!

На Windows 10 нет встроенной поддержки Huge Pages. Однако, вы можете использовать сторонние приложения для работы с Huge Pages.

Вот пошаговая инструкция:

1. Скачайте и установите приложение, которое поддерживает Huge Pages, например, Intel C++ Compiler или VMMap.

2. Откройте программу и выберите опцию Huge Pages.

3. Выберите нужный размер Huge Pages (обычно 2МБ или 1ГБ) и количество страниц.

4. Примените настройки и перезагрузите компьютер.

5. После перезагрузки убедитесь, что Huge Pages активированы, используя команду `wmic os get FreePhysicalMemory, TotalVisibleMemorySize, TotalVirtualMemorySize, FreeVirtualMemory /FORMAT:LIST` в командной строке.

Обратите внимание, что не все приложения поддерживают Huge Pages, поэтому проверьте документацию вашего приложения, чтобы убедиться, что оно может использовать Huge Pages.

Хотя на Windows 10 нет встроенной поддержки Huge Pages, это не означает, что вы не можете использовать эту функцию. Несколько сторонних приложений поддерживают Huge Pages, такие как Intel C++ Compiler или VMMap, которые могут помочь в активации этой функции.

Huge Pages предоставляет большие блоки памяти для приложений, что может улучшить производительность при работе с большими объемами данных. Однако, не все приложения поддерживают Huge Pages, поэтому перед использованием этой функции, важно проверить документацию вашего приложения.

Если ваше приложение поддерживает Huge Pages, то вы можете использовать сторонние приложения, чтобы активировать эту функцию на вашем компьютере. Выберите соответствующий размер страниц и количество страниц и перезагрузите компьютер.

После перезагрузки, убедитесь, что Huge Pages активированы, используя команду `wmic os get FreePhysicalMemory, TotalVisibleMemorySize, TotalVirtualMemorySize, FreeVirtualMemory /FORMAT:LIST` в командной строке. Если все настроено правильно, вы должны увидеть, что Huge Pages работают.

Хотя использование Huge Pages может улучшить производительность вашего приложения, не забывайте, что выделение больших блоков памяти может привести к уменьшению доступной памяти для других приложений. Поэтому, используйте эту функцию только в тех случаях, когда это действительно необходимо.

  • Печать
Информация о материале
Категория: Майнинг

Просмотров: 1771

Необходимо включить блокировку страниц в памяти.

1. gpedit.msc

2. Конфигурация компьютера — Конфигурация Windows — Параметры безопасности — Локальные политики — Назначение прав пользователя — Блокировка страниц памяти — Добавить пользователя или группу

3. Добавляем имя вашей учетной записи в Winndows

4. Завершение сеанса или перезагрузка

5. В итоге должно быть: HUGE PAGES: permission granted

Комментарии (0)

Оставьте свой комментарий



  1. Опубликовать комментарий как Гость.

Lucania

Регистрация
02.02.23
Сообщения
27.409
Реакции
0
Баллы
12

  • #1

В Windows 10 функция Huge Pages (крупные страницы) не поддерживается в стандартном режиме. Она доступна в операционной системе Windows Server для определенных версий и редакций. Huge Pages предназначены для улучшения производительности и эффективности работы с большим объемом данных, особенно в высоконагруженных приложениях.
Если вам необходима поддержка Huge Pages в Windows, вам следует рассмотреть установку Windows Server, которая предлагает эту функцию. Обратитесь к документации и руководству по Windows Server для получения дополнительной информации о включении и настройке Huge Pages в этой операционной системе.
Однако, если вам нужно работать с большим объемом данных на Windows 10, есть другие способы оптимизации работы с памятью, такие как использование виртуальной памяти, управление размером страниц и настройки системы для оптимального использования ресурсов. Для этого рекомендуется обратиться к документации Microsoft или консультанту по системному администрированию для получения подробной информации и инструкций, учитывая ваши конкретные потребности и настройки системы.

  • Как включить ip маршрутизацию для windows 10
  • Как включить internet explorer в windows 10 вместо edge
  • Как включить hpet в windows 10
  • Как включить hyper v на windows server 2016
  • Как включить hotspot windows 10