Friday, February 7, 2014

Running Multiple Instances of CGWatcher on the Same Computer

Running Multiple Instances of CGWatcher

Running multiple instances of CGWatcher means you can have a CGWatcher instance monitoring each cgminer/bfgminer instance. There are two things you need to do for this to work correctly - have unique folders and have unique ports. I'll explain in detail so although it might be a lot of text, it is very simple. You can run as many instances as you need.

1. Each CGWatcher instance must have its own folder. This is so they do not overwrite each other's settings, and also so the Windows autorun entries will be unique. You can put the folders anywhere, including nesting them inside each other. So if you want to run two instances, A and B, the following examples would work:

  • CGWatcher A - C:\Miners\CGWatcherA
  • CGWatcher B - C:\Miners\CGWatcherB
or
  • CGWatcher A - C:\Miners\CGWatcherA
  • CGWatcher B - C:\Miners\CGWatcherA\CGWatcherB
or
  • CGWatcher A - C:\Miners\CGWatcher
  • CGWatcher B - C:\Miners\CGWatcher\CGWatcher

If you want to share the same profiles between instances, you can set them to use the same profiles.dat file by editing CGWatcher.exe.ini in each folder. In this file, locate the line that says "ProfilesDataFile=" and add the file path of the profiles.dat file you want it to use. Do not use quotes in the file path. Example: ProfilesDataFile=C:\My Miners Folder\CGWatcher\profiles.dat  

When ProfilesDataFile= is blank, CGWatcher will use (or create) the profiles.dat file in the same folder it is in. You can also do the same with CGWatcher variables by setting the VariablesDataFile path.


2. Each instance must use a unique API port so it always communicates with the correct miner. To set the API port, go to the Settings tab in CGWatcher. In the bottom, left, locate 'Miner API Address (IP:port)' textbox. The port is the number after the colon. This number must be unique for each instance. So instance A could be 4028 (cgminer's default API port) and instance B could be 4029. You can use any number between 1024 and 65535 - it just has to be a port that isn't being used by another application. The IP address stays the same - 127.0.0.1 - for all instances. So the textbox for your CGWatcher instances would be:

CGWatcher A:   127.0.0.1:4028
CGWatcher B:   127.0.0.1:4029

Once you have entered a unique port, check the checkbox below it that says 'Use only this API port (override config settings)'. When this is enabled, CGWatcher will ensure that cgminer/bfgminer always uses this port - even if the config file says to use a different port. This ensures that multiple instances will never cross communicate.

Now since each CGWatcher instance has its own file path, if you enable 'Run when Windows starts' an entry will be created for each instance.

Click Save Settings.

I do this on my own computer since it mines scrypt coins with GPUs and Bitcoin with ASICs. I then just create a shortcut to each CGWatcher instance on the desktop and rename them to "CGWatcher GPU" and one "CGWatcher ASIC". I have them sharing the same profiles file, so if you make changes to profiles in one, it is picked up by the other one (it may take up to 15 minutes for this to happen, but it will always check for changes before starting the miner).

Also, you can obviously share config files between instances but you can share config files between miners as well. More info on this and using variables can be found at http://manotechnology.blogspot.com/2013/08/web-config-files.html

In the future I may try to come up with a better way to do this, but it is getting to where CGRemote will probably be a better way to do this since it is built from the ground up to handle multiple miners. CGWatcher was designed to only watch one process at a time, and I think my time would be better spent working on putting CGWatcher features into CGRemote than rewriting CGWatcher.

22 comments:

  1. Great job on CGWatcher and CGRemote!

    I was able to use these directions to create different instances for my multiple AntMiner U3 devices.

    The problem I was having was that if I set the "bitmain-auto" to true, that would change the overclock speed depending on the performance. I had multiple ASIC's on one miner and if one would start producing hardware errors, it would lower my GH of all the other ones. And setting the --bmsc-freq in the command line always crashes the cgminer when I have multiple devices on one miner. So I started using the "--usb :1" to only grab one USB device at a time and then each ran in a different cgminer instance.

    So this solution worked great to get multiple miners working at different frequencies! :)

    This however brought up another problem, because I purchased CGRemote, and now I would go past my 5 miner license because of the previously combined rigs on one miner, but that's another story.

    Thank you.

    ReplyDelete
  2. Let us help you to understand the steps to activate code in Roku Server. You can read the article with the title Roku.com/link .Found the blog post after accessing the Roku website. It's interesting to read. The device activation is easy. You can collect the necessary hardware, create a Roku account and execute the settings to find the device activation code. Finally enter the code by visiting the page, Roku.com/link to complete the activation process

    ReplyDelete
  3. The Germany Dairy Market is being driven by the rising health consciousness among the consumers, thus, leading to a rising demand for healthier dairy products like unprocessed cheese. Soft cheese and other protein-rich dairy products are also witnessing a growth in the country due to the decreasing meat consumption in the region.

    ReplyDelete
  4. The Global Pet Tech Market is segmented based on product type, tracking equipment, monitoring equipment, entertainment equipment, feeding equipment, etc. Tracking equipment evolved as the largest segment in the global pet tech market owing to growing investment by the pet owners in the active tracking of health and behavioral aspects of their pets.

    ReplyDelete
  5. Isobutanol (IUPAC nomenclature: 2-methylpropan-1-ol) is an organic alcoholic compound. Its largest application is as a solvent. Other applications include precursor of derivative esters, ink and paint ingredient. It is derived from natural sources and therefore, is a green product.

    Isobutanol Production Cost

    ReplyDelete

  6. This is Very very nice article. Everyone should read. Thanks for sharing.
    The WPM stands for words per minute, and it is a measure of typing speed test, commonly used in the recruitment process and typing speed tests. Visit my article and check your typing speed.

    ReplyDelete
  7. I appreciate your efforts. Thanks for shearing your thoughts with us. If you are thinking of camping in the US but have no idea where to start I can help. I’ve broken down your camping trip planning into six simple steps, so the planning process is as stress-free as possible. So reach my article on Camping Tents online and get detailed info.

    ReplyDelete
  8. It was interesting to read amazing content regarding the Roku Email Activation that I got. It's easy to understand, and the instructions are correct. Roku email activation is simple, and this post explains how to set up and activate your Roku device. Also, when you're a new Roku user, I recommend reading the blog for more clarification, including pictures for your reference. I enjoy reading your blog and waiting for more interesting and informative posts.

    ReplyDelete
  9. First of all, thank you for letting me see this information. I think this article can give me a lot of inspiration. I would appreciate if you could post more good contents in the future. Also visit my website: 바카라사이트

    ReplyDelete
  10. This post is truly inspiring. I like your post, and everything you share with us is current and very informative, I want to bookmark the page so I can always return to hear from you. Meanwhile don't forget to check this site too, it'll really help you more! big brother Naija cast

    ReplyDelete
  11. Brilliant post! Thanks for providing these accurate points on this topic. I totally agree with you. Kudos to you for this great post. I will certainly come back to read more. Also check out this: Quote of the Day App

    ReplyDelete
  12. Thank you for posting such a great article! It contains wonderful and helpful posts. Keep up the good work. You can also take a look at Happy Doctors Day 2020

    ReplyDelete
  13. Your blog is really great! I like its interface, and I liked the content too . Please continue! You may also like religious sympathy messages 

    ReplyDelete
  14. Attractive portion of content. I simply stumbled upon your web site and in accession capital to assert that I get actually enjoyed account your weblog. Feel free to visit my website; 먹튀검증

    ReplyDelete
  15. It’s really a great and useful piece of information. I am glad that you shared this useful information with us. Please keep us up to date like this. Thanks for sharing. Feel free to visit my website; 바카라사이트

    ReplyDelete
  16. If you are interested to learn how to activate Roku using
    Roku.com/link , let me suggest the blog post titled, How to activate Roku. Read the post a few days back. I could find clear guidelines to activate Roku. Spend your free time reading the post to learn Roku.com/link activation guidelines
    Also please do not forget to share your feedback after reading. The post can help new Roku users who do not know how to activate roku

    ReplyDelete
  17. Ethylene production is enhanced by wounding during processing, and the accumulation of this gas within the packages of FC fruits can be detrimental to their quality and shelf life.

    ethylene price

    ReplyDelete
  18. Thanks for taking the time to write such an awesome article, and it has been a pleasure reading it. You can also check out my post on how to get a high CPS in Minecraft. It is possible to fast click, get higher scores on click tests, and perform better in PVP in Minecraft. Some methods are easier to use than others, but they all have their pros and cons!

    ReplyDelete

  19. Finding a professional and economical research paper writing service these days may be difficult. Academic writing assistance is available from a variety of writing firms. PaperHelp is a reputable writing service where you can hire a professional paper writer to assist you with any academic writing assignment. We offer reasonable prices, high quality, and rapid delivery.

    ReplyDelete
  20. Nice post
    Malaysia Translators specializes in Korean to English translation services in Malaysia. Our team of certified translators ensures accurate and culturally sensitive translations for all your language needs. Whether you require translations for business, legal, or personal purposes, we deliver high-quality results. With our expertise in multiple languages, including Japanese, Korean, Tamil, and Malay to English translation services, we cater to diverse industries and sectors. Trust Malaysia Translators for your Korean translation requirements in Malaysia and experience professional and reliable language services.

    ReplyDelete
  21. Stand out from the crowd with our premium Resume Writing Services Ireland. Our experienced writers craft resumes that go beyond a mere document – they tell your professional story. Gain a competitive advantage by presenting a resume that captures the essence of your skills and experience, tailored to the specific demands of the Irish job market. Elevate your career prospects today!

    ReplyDelete