Скрипт для chia для powershell rizen 5 3500x

Скрипт для chia для powershell rizen 5 3500x

Ускоряем создание плотов Chia до 20% через PowerShell

  • Запись опубликована: 18.05.2021
  • Post category:Инструкции
  • Post comments:0 комментариев

Плоттинг в клиенте Chia порой не удобен и иногда при зависании программы бывает необходим перезапуск.
Плюс ещё к этому, слишком затратен на ресурсы вашего ПК при синхронизации c нодой.

В этом гайде будет описан способ обойти все эти проблемы путём плоттинга через консоль

1. Для начала командой WIN+R откроем окно в котором вводим appdata и нажимаем

2. Затем переходим по директории \AppData\Local\chia-blockchain\app-1.1.5\resources\app.asar.unpacked\daemon

3. Зажимаем клавишу SHIFT и жмём правой кнопкой мыши по свободной области в папке и выбираем “Открыть окно PowerShell здесь”

4. Перед нами откроется окно в котором мы пишем команду .\chia plots create -k 32 -b 3400 -r 3 -t D:\Chia -d D:\PLOT

-b это количество выделенной памяти для формирования одного плота

-r количество потоков процессора для создания плота

-t Директория диска на котором будут храниться временный файлы для формирования плота(Необходимо место до 360ГБ)
-d Директория диска на котором будет расположенный готовый плот Chia для фарминга(101ГБ)

Источник

Plotting with PowerShell on Windows

Windows PowerShell has developed into a great tool to manage and execute scripts on Windows machines. Its built into every install of Windows 10. In this post, we go into how to run plotters with PowerShell. There are a few advantages to running plotters in PowerShell:

  1. Plotting is not tied to the Chia GUI. If the Chia client experiences a crash or bug, your plotter will continue to work while the client recovers.
  2. Every PowerShell window is one plotter. If you plan to perform plotting in parallel (running multiple plotters on the same machine) then this is a perfect way to visibly see how many plotters are running and how far along they are.
  3. You can cancel a plotter queue after the current plot. Each plotter has its own queue length in PowerShell. Something that I discovered by accident, you can click the PowerShell window and press CTRL-C. Nothing will confirm the key command, but at the end of the current plot, the plotter will abort the queue.
  4. You can create a PowerShell script to run all your plotters. Possibly the best feature, you can run a script and all of your plotters are launched, with their own settings, in their own individual windows. Perfect.

There are a few house keeping rules first before using PowerShell so you don’t hit the pitfalls that I have. Perform these steps:

  1. Open Powershell by pressing the Windows key and typing “PowerShell”
  2. When the PS window opens, click the top left of the window to open a menu. In that menu, click “Properties.”
  3. In the new window, Uncheck the box that says “QuickEdit mode”. Normally this feature is great when you want to highlight text in the window and copy it out to another place. But, it has the bad side effect of pausing whatever is running in the window. This is bad if a plotter is plotting and you accidentally click the window while dragging it around. Disabling QuickEdit mode prevents this from happening. If you want to select text in the future, just right-click inside the PS window and select “Mark”.
  4. Next, click the “Layout” tab. Locate the “Height” field. This is how much scroll back you want. I like a ton of scroll back so I max this out at 9999. This is so that you can view the progress info of many plots to see times.
  5. Click the OK button once complete.
  6. If you ever plan executing your own PowerShell scripts, enter the command below in an Administrator PowerShell Window so that it is enabled:
Читайте также:  Бизнес цитаты для инвестиций

Now that PowerShell is setup to prevent you from making my horrible mistake, we can proceed with how to get a plotter started. In your PS window, enter the following command:

In the command above, note the two bolded locations. The “ ” needs to be replaced with YOUR username on your machine. Next the “app-1.0.5” is going to be replaced with the version of chia that you are running. Currently the latest is 1.0.5. But it won’t be like this always.

After you Change Directories (cd) to that folder, enter the following command to begin a plotter:

There is a lot of information here so I’ll break it up:

  • .\chia.exe plots create – This is pretty self explanatory. I want chia to create a plot.
  • -k 32 – This is the size of plot you want to create. K=32 is the minimum size of a plot that is considered valid on the Chia Network. It is also the fastest to create. You can go smaller on the K value but those plots are not valid on the network.
  • -b 3389 – This is the amount of ram you want to allocate to the plotter. It does not use all this ram at once, its just the limit. But, windows will preallocate this amount and call it “committed” which might push other applications to virtual memory on disk if committed is maxed. 3389 is the perfect amount if you are using 2 threads. I have found that 4 threads requires a minimum of 3408; 6 threads 3416; 8 threads 3424.
  • -u 128 – This is the bucket size. Essentially its how many pieces you want the workload to be divided in. If you change this to 64, then you have to double the ram amount. From my experience, there is no change in plot speed messing with this number. So leave it at 128.
  • -r 2 – This is the number of threads you want for the plotter. The plotter works in four phases. This number only affects phase 1 of a plot. Phase 2, 3, and 4 are all single threaded. In my testing, I saw a 30 minute speed improvement from using 2 threads to 4 threads. Then, I only saw a 5 minute improvement from 4 threads to 6 threads. There is diminishing returns definitely. Always try to use at least 2 though, because 1 thread is really slow.
  • t E:\temp – This is your temporary directory. Remember to pick a fast drive here.
  • -d D:\plot – This is your final directory. This can be an external usb drive or another type of fat spinny hard drive.
  • -n 1 – Finally this is your queue. How many plots do you want to make with these settings? Remember, you can set any number here and then stop it with CTRL-C.
  • Since we are plotting on the same machine as the farmer, the keys needed to generate the plots are automatically brought in. So we don’t need to specify those here.
Читайте также:  Кривая инвестиции сбережения выражает

That’s pretty much it for the PowerShell command. Executing this command will start the plotter on its journey and it will print its progress in the window. Next is the scripting part. Below I have placed the script I use on my machine. Copy and paste this script into notepad and save the file as plotterscript.ps1, while selecting “All Files” for the file type:

Here is the script. Copy/paste the invoke-expression line for each plotter you wish to start :

Lets breakdown the script above. You will see semicolons in the script above. These separate each command of the new PowerShell window.

  • invoke-expression ‘cmd /c start powershell -NoExit – This first part is what tells PowerShell to open another PowerShell window. The -NoExit flag is to not close the window when complete. Just in case you want to review the results.
  • -Command – The -Command here is the commands we want to pass to the new PowerShell window that opens up.
  • $host.ui.RawUI.WindowTitle = “t1p1” – This command allows you to rename the title of the PowerShell window. This is to keep track which window it is. Here, the name scheme I’m using is tempdrive 1, plotter 1. Since I have two plotter drives.
  • start-sleep 0 – This next command is critical. When running plots in parallel you need to space them out a bit so that all of them are not trying to write to the final directory at the same time. If using an external drive, this causes a major headache. The value here is in seconds. For example, if you want an hour between plotters, it would be 0 for the first plotter, 3600 for the second plotter, 7200 for the third, etc.
  • .\chia.exe plots create -k 32 -b 3389 -u 128 -r 2 -t E:\temp -d D:\plot -n 1 – This is the Chia plotter command that was explained above. Update this to your settings.
  • Read-Host -Prompt “press enter to exit” – This was a hold-me-over from a previous version of the script incase for some reason the “-NoExit flag didn’t work.

There you have it, this should provide you with enough information in order to create and tweak your own scripts in order to maximize your plotters on your machine without having to worry about Chia Client issues.

With the file saved, all you need to execute it is to right click the file and select “Run with PowerShell”.

Источник

5 простых настроек клиента Chia Coin для начала добычи криптовалюты на компьютере от Wccftech

Вы ещё не начали добывать Chia Coin? И не пытайтесь, ведь мы уже всё разложили по полочкам, рассказав о проблемах, с которыми могут столкнуться фермеры. Увы, многие уже перешли линию невозврата, купив ёмкий жёсткий диск или дорогой твердотельный накопитель. В этой ситуации остаётся только одно: воспользоваться советами бывалых шахтёров с сайта Wccftech, послушав 5 правил настройки вашего компьютера для эффективной добычи криптовалюты. Отметим, что на вашем железе всё может работать иначе, ведь настройки верны для 8-ядерного ПК (название процессора нам не известно) и 32 ГБ оперативной памяти.

реклама

  1. Для клиента Chia у вас на ПК установлено не 32 Гб ОЗУ, а 29.8 Гб. Этот момент стоит помнить при дальнейшей настройке, ведь вам не удастся создать предполагаемое количество участков для хранения информации. Именно поэтому нужно вначале правильно настроить программу для майнинга, умерив свои аппетиты. Стоит помнить, что вам потребуется 3400 Мб оперативной памяти для одного сектора.
  2. Не стоит забывать, что вы майните не на пустом месте, а в операционной системе Windows, которая также требует некоторого количества ОЗУ. Самый простой способ ввести для одного ядра 3400 Мб оперативки, а для 7 ядер 23 800 МБ.
  3. Увы, количество ядер также важно. Неожиданно? Очевидно, что одно ядро будет заниматься работой ОС. В итоге вам останется только 7 ядер, ну а потоки в данном случае не учитываются. В лучшем случае для 8-ядерного процессора и 32 Гб ОЗУ будет доступно 7 секторов.
  4. Не стоит забывать о файле подкачки. Его нужно в ручном режиме установить на минимальные 10 Гб и максимальные 30 Гб. Кстати, клиент лучше всего держать на диске «С».
  5. Для начала запускаем по 1 сектору, либо сразу несколько, но не 7, в таком случае работа может не стартовать. Лучше после этого добавить оставшийся последний сектор.
Читайте также:  Ферма для биткоинов это легально

Сами понимаете, что эта информация верна для 8 ядерного процессора и 32 ГБ оперативной памяти, если у вас количество ядер больше, то можно добывать монетки с увеличенной скоростью. Если система попроще, то нужно верно установить параметры, иначе вы либо вообще столкнётесь с проблемами, либо окажется, что добыча пройдёт неэффективно. Если у вас остались вопросы, обращайтесь на официальный сайт. Там всё это есть, но представлено сложнее и часто нужно искать данные по крупицам.

Источник

Скрипт для быстрого плотинга и другие полезные скрипты для майнинга Чиа 1.0

Kralex

Местный

Yuri31

Местный

Валентин

Новичок

nemzy

Новичок
Новичок

nemzy

Новичок

Justimba

Новичок

sage: chia.exe plots create [OPTIONS]
Try ‘chia.exe plots create -h’ for help.

Error: Got unexpected extra argument (Plots\)
press enter to exit:

Justimba

Новичок

все разобрался кому будет полезным: t F:\Temp Plots\ ТУТ пробел был после Temp
Usage: chia.exe plots create [OPTIONS]

Options:
-k, —size INTEGER Plot size [default: 32]
—override-k Force size smaller than 32 [default: False]
-n, —num INTEGER Number of plots or challenges [default: 1]
-b, —buffer INTEGER Megabytes for sort/plot buffer [default:
3389]

-r, —num_threads INTEGER Number of threads to use [default: 2]
-u, —buckets INTEGER Number of buckets [default: 128]
-a, —alt_fingerprint INTEGER Enter the alternative fingerprint of the key
you want to use

-c, —pool_contract_address TEXT
Address of where the pool reward will be
sent to. Only used if alt_fingerprint and
pool public key are None

-f, —farmer_public_key TEXT Hex farmer public key
-p, —pool_public_key TEXT Hex public key of pool
-t, —tmp_dir PATH Temporary directory for plotting files
[default: .]

-2, —tmp2_dir PATH Second temporary directory for plotting
files

-d, —final_dir PATH Final directory for plots (relative or
absolute) [default: .]

-i, —plotid TEXT PlotID in hex for reproducing plots
(debugging only)

-m, —memo TEXT Memo in hex for reproducing plots (debugging
only)

-e, —nobitfield Disable bitfield
-x, —exclude_final_dir Skips adding [final dir] to harvester for
farming

-h, —help Show this message and exit.
press enter to exit:

Gerassimus

Новичок

я сделал себе таким образом:
1-ый батник запускает плоты подряд
2-ой батник запускает плоты после того, как пройдет 1800 с. Почему 1800? потому что время копирования готового плота с SSD на HDD у меня порядка 20 минут. От того, что задержки не будет, оба плота будут перемещаться на HDD дольше
3-ий ставишь 1800+1800=3600
и так далее
Потом выделяешь через шифт столько батников, сколько хочешь, чтобы плотилось параллельно, запускаешь и спишь спокойно
время задержки устанавливается в батнике заменой «start-sleep 0» на «start-sleep 1800»

Ты можешь ориентироваться только на это

Justimba

Новичок
Новичок

Источник

Оцените статью