Will Azure Run My VB.Net Program 1000 Times Faster?

R H 41 Reputation points
2022-11-15T17:02:06.703+00:00

Hello:

I am a programmer (retired) who is new to azure. I have written a program in vb.net which requires much more computing power than my home desktop (core i7 16g ram) can provide. The program has the executable and about 60 megabytes of data. Problem is that it has to run through 10s or 100s of thousands of combinations. My home computer does about 360 per hour. I would like to up that as much as I can; possibly even 1000 or more times faster (depending on cost). My question (being new to azure) is will an azure windows vm be able to give me this type of computing power? If so, can you give me an idea of what type or level of vm I would need?; how many cores, etc. and what this might cost? Will I be able to run my program as is or will I have to re-write it to use multi-core system?

P.S. I am currently on the Azure free subscription.

Thank You.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
5,265 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,086 questions
0 comments No comments
{count} votes

Accepted answer
  1. Michael Taylor 41,626 Reputation points
    2022-11-15T18:03:22.94+00:00

    An Azure VM is no different than any VM (or physical machine) you might create. It is completely dependent upon how much you're willing to pay for. You can refer to the current pricing here. If you scroll down to the VM descriptions you can select the # of cores and RAM you need based upon your requirements. What you didn't provide to us but you need to consider is how much storage do you need, how IO bound your process is, how fast is the actual processor and how many cores you really need. If you are IO bound then you need a later generation to get access to the SSD to keep up with the processor. If you don't need to store a lot of data then you might get away with a VM without too much storage. It is completely dependent upon what your process is doing.

    But there are other issues you need to address first. It doesn't matter how many cores your machine has if your process is single threaded. The more cores you use the faster things get but not every process can use multiple cores. You should first rearchitect your app to support multiple threads if it is possible to do so. You can post questions in the forums to get help with this but ultimately it depends upon the work involved and how much "sharing" of data is needed. In a perfect world you'll scatter your work to all available processors and so the more cores you throw at the problem the faster it gets. If you cannot break your problem up into multiple threads then an Azure VM is really not going to help you at all. In fact your current machine isn't being used fully so there is no "upgrade" that would make sense. As a simple rule of thumb, if your existing machine isn't 80+% CPU utilized then getting "more" cores isn't going to help anyway.

    The other thing to consider about a VM is that you're paying for it whether you're using it or not (unless you use a shared VM which has other issues you need to consider). If you simply don't want to block your main machine while your process runs then you could always get a cheap machine online somewhere and use it as a dedicated device instead. It would certainly be cheaper long term. But, again, depends upon the problems you're trying to solve.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. JimmySalian-2011 31,901 Reputation points
    2022-11-15T17:57:19.79+00:00

    Hi Rh,

    Welcome to the Azure world and I will suggest you to review the Azure VM specs over here. I think with your program and future projections I think F8 series will fit in well to start with.

    And for pricing you can check via the calculator and see how much it will cost. With Azure VM you can shutdown and deallocate when not required so you will not be charged, also start with free tier to get use to the Azure services.

    Goodluck mate.

    Hope this helps.
    JS

    ==
    Please Accept the answer if the information helped you. This will help us and others in the community as well.

    0 comments No comments