+ Reply to Thread
Results 1 to 3 of 3

Determine Max cores and set Excel process to use 1 less than max

  1. #1
    Forum Contributor
    Join Date
    09-05-2011
    Location
    Essex, England
    MS-Off Ver
    Excel 2003 Excel 2007
    Posts
    383

    Determine Max cores and set Excel process to use 1 less than max

    Hi All,

    I've built a bit of a monster excel application and really need to speed it up for some of our users who's desktops are both varied and in some cases a little on the low side in terms of CPU and RAM power.

    I have used the code below to increase the priority of the application to HIGH which enables the users to get the data they require far far quicker and then hop out.

    However this makes the system entirely unable for the few minutes the calculations take - is there a way to set to determine the number of cores the user has available and set the affinity to 1 less than max? we have a variety of dual, quad core and a couple of 8 core units so setting an arbitrary figure isn't an option.

    (we're doing this manually to get a balance of both but it'd be nice to automate this step also)

    Thank you.

    CPU PRIORITY CODE:
    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Determine Max cores and set Excel process to use 1 less than max

    Hi Kramxel,

    Your post does not comply with Rule 5 & 8 of our Forum RULES.

    Forum Rules
    Please read and adhere to these simple rules!

    5. Don't duplicate threads. If you have posted the question in one forum, do not post it again in another forum. You are duplicating efforts. If you feel the thread is in the wrong forum and needs to be moved to another forum, PM a mod / admin to do it for you.

    8. Don't cross-post without a link. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post. Expect cross-posts without a link to be closed.

    Cross Post link - http://www.excelforum.com/excel-prog...-than-max.html
    Thanks,
    Anil Dhawan


    Click *Add Reputation to say "Thanks" and don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved) if you are satisfied.

    Don't stop when you are tired. STOP when you are done!

  3. #3
    Forum Contributor
    Join Date
    09-05-2011
    Location
    Essex, England
    MS-Off Ver
    Excel 2003 Excel 2007
    Posts
    383

    Re: Determine Max cores and set Excel process to use 1 less than max

    Apologies I only his submit once but there was a scripting error in my browser which I refreshed and I assume caused this to be posted twice -- can you delete the duplicate please?

    Moderator Edit: Other thread (duplicate) has been closed.
    Last edited by alansidman; 04-14-2015 at 10:25 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Determine Max cores and set Excel process to use 1 less than max
    By Kramxel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-14-2015, 10:24 AM
  2. Determine if Setup Process is Running
    By yawnzzzz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-08-2013, 01:39 PM
  3. [SOLVED] determine the workbook from which a process is called
    By bagullo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2013, 05:04 AM
  4. Kill a second Excel process from the first excel process
    By sebair in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-16-2012, 05:40 PM
  5. How to count process running time ( process not finished)
    By miao jie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-12-2005, 02:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1