Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Alpha5 and multi processors

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Alpha5 and multi processors

    I was asked what I had found out about Alpha and multi processors. Here is email that I had sent. I thought it would be a good idea to post here so it can help others.

    I am using a windows 2003 server x64 & terminal server on a Dell computer with 4 processors. All of the work is done on the server with just screen updates going to the user's computer.

    What I have found out with testing is SelectBestProcess() just moves everyone from the first processor to the last processor (our server has 4 processors) If you do not do anything then everyone is on the first processor. What I had ended up doing is in my autoexec script I have a case statement with
    Code:
    Select
    case user_name() = "jack"
    setPrimaryProcessor(2)
    case user_name() = "jim"
    setPrimaryProcessor(0)
    case user_name() = "mary"
    setPrimaryProcessor(1)
    end select

    This was a pain to do but it solved the problem for the moment. I doing my research I found Alpha selects a processor. If Alpha did not select a process then the OS spreads the load over all of the processors. In checking other programs that we use ie Quickbooks they or microsoft spread the load over all of the processors. In quickbooks when I did a big report and was the only one on the server I saw where each processor carried a little of the load. When I did the same thing in Alpha whatever processor I selected or it gave me the load was about 25-40% and the rest of the processors were sitting idle.

    Hopefully Alpha will make a program change to just let windows select the best processor or processors. I had also found out I can make Windows use all of the processors after I start the program but would have to do that every time. The way to see what processors the computer is using for what program go to

    Task Manager-Processes
    select say alpha5.exe then right click mouse button
    Select Set Affinty

    You will then see all of the computers processors with the one checked that the program is using. If you go and select all of the processors it will spread the load over all of the processors instead of just the one checked.

    #2
    Re: Alpha5 and multi processors

    Jack:

    Have you submitted a bug report to Alpha? From what you describe, it sounds as if SelectBestProcesor() is just not working on your server.
    Finian

    Comment


      #3
      Re: Alpha5 and multi processors

      I will update to latest ver & recheck. If problem still exist I will summit bug report.

      Comment


        #4
        Re: Alpha5 and multi processors

        Jack,

        What did you find out about SelectBestProcesor() ?

        ba

        Comment


          #5
          Re: Alpha5 and multi processors

          I have updated Alpha to the latest version. I have changed my auto script back to just selectbestprocessor(). Now I have to wait until Monday Morning to see if is doing the same as before. If so I wll summit a bug report. When I log in it is taking me from the default processor 0 to processor 3 with being the only one logged in on the server, so I am guessing I an going to find it has not been fixed yet.

          Comment


            #6
            Re: Alpha5 and multi processors

            Jack,

            Sorry to keep 'bugging' you about this. Did you determine that this was a bug? If so, how did Alpha respond (if at all) to your bug report?

            ba

            Comment


              #7
              Re: Alpha5 and multi processors

              I had forgotten about it. I guess last 2 days users were not working at same time since everyone was using the last processor and no one complained. I am going to send in bug report as soon I get done typing here.


              Latter 5:27PM Have turned in bug report. Will report back if I hear anything.
              Last edited by turbojack; 12-18-2007, 07:25 PM.

              Comment


                #8
                Re: Alpha5 and multi processors

                Have gotten 2 emails from Alpha. Said they are looking into it and will get back to me.

                Comment


                  #9
                  Re: Alpha5 and multi processors

                  Jack,

                  Thanks for the update. I'm sure they'll resolve it one way or the other in their usual prompt manner.

                  Bob

                  Comment


                    #10
                    Re: Alpha5 and multi processors

                    Below is email response from Alpha, names removed to protect the innocent. I logged in as administrator in a number of windows and on each one it gave me a different processor. I am going to add to the wish list that Alpha lets windows decided the processor that is going to be used, then windows will be able to spread the load across all of the processors. I am guessing that Alpha does not see very many users using Terminal Services so may be awhile before they make a change. Back to you script. I guess if you have a great number of users it would be wise to set up a script that would select what processor based users in DB.


                    Hi Jack,

                    This information was supplied to me from development.

                    Windows restricts visibility of other running processes on a computer
                    based on user account permissions. This means that users without
                    administrator level permissions will not be able to see the processes
                    of other users. On a server where Alpha Five is being run by multiple
                    non-administrator users, such as in a Terminal Server configuration,
                    SelectBestProcessor() may not be aware of the other instances being
                    run. In this situation, the process affinity will likely be set to
                    the same CPU index for all instances.

                    An alternative to SelectBestProcessor() in these cases is to use
                    SetPrimaryProcessor() to assign the running instance to a specific
                    CPU index based on the user account.

                    The documentation has been updated with the same information

                    Latter -- See Lenny's responce from my wish list request. http://msgboard.alphasoftware.com/al...025#post441025
                    Last edited by turbojack; 12-20-2007, 04:14 PM.

                    Comment


                      #11
                      Re: Alpha5 and multi processors

                      Well, if we have a way to determine how many cpu's there are on a system, and how many open sessions there are, all we have to do is write a few lines to set the processor to the one with the least number of alpha sessions. I'm not sure if we have all that info available though. If not, someone like Ira or Marcel could write a com program we could call to get it.

                      I have been using best processor, but have only looked at processes when 2 admins were logged in, so I thought it was working.
                      Cole Custom Programming - Terrell, Texas
                      972 524 8714
                      [email protected]

                      ____________________
                      "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

                      Comment


                        #12
                        Re: Alpha5 and multi processors

                        I think everything is there for us.
                        CPUCount(), gives us the number of processors,
                        PrimaryProcessor() tells us what processor Alpha is running one, &
                        SetPrimary Processor() to set to another processor.

                        I have not searched to see if there is a funtion for how many users are logged in but since Aplha keeps up with licenses there should be one.

                        Comment

                        Working...
                        X