Close

Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1

    Default Automatically setting cpu affinity for SAC

    This is a new thread based on a discussion here http://www.sawstudiouser.com/forums/...3&postcount=11

    As mentioned in the above thread, changing the affinity for SAC to run on only one CPU can help with performance on some systems. In my case, it eliminated dropped buffers when using a remote. Yes, you can use the /onecpu switch at boot. But some times you don't want to eliminate both CPUs. Or you can use the single cpu menu setting in SAC itself, but that didn't work for me. I needed to set to a specific CPU. Setting affinity manually to the second CPU was the answer. But in a volunteer situation, having it done automatically is best.

    Enter a utility program called Imagecfg. This is a microsoft utility that was available in the 2000 server toolkit and may already be in the windows directory for Vista and up, but is not in XP. You can download it here. http://www2.robpol86.com/guides/ImageCFG/
    This page gives instructions on it's use. The only thing you really need to know is the command line switch for setting the process affinity (-a) and the CPU value.

    The information on the web on Imagecfg.exe is slightly confusing. There are discussions on using batch files for the program you want to change, etc. But none of that is necessary. Run once, Imagecfg PERMANENTLY changes the hex image of the effected program itself. Because of the nature of SAC, you can run the program once on any computer and simply copy the effected SAC.exe to any machine that needs to run SAC on a single, specific CPU.

    So, here's what you do. Put imagecfg.exe in the SAC directory. (You can actually run it from anywhere, even a flashdrive.) From a command prompt, use this string.
    C:\SAC\imagecfg -a 0X02 "C:\SAC\SAC.exe"
    SAC will now run on the second CPU EVERY TIME it loads. (Change the "2" for other CPUs)

    You know it worked if the date on SAC.exe has changed to that days date. Test further by looking at the affinity for SAC in the task manager.

    Hope this is helpful.
    Angie Dickinson Mickle

    The Studio
    http://www.avocadoproductions.com/ze.../recording.htm

    Chris' tribute site
    http://www.micklesong.com

  2. #2
    Join Date
    May 2008
    Location
    Indiana, USA
    Posts
    875

    Default Re: Automatically setting cpu affinity for SAC

    Very nice info Angie
    Ramsey
    Kingsnake Sound Company
    Host:1U Supermicro rack case/I5-3570K/ASUS Sabertooth Z77/8GB Ram, 32GB SATA flash OS drive/250GB SATA storage drive/DVD-RW/HP1U KVM/DLink DIR-655 WirelessN OS: Win7 I/O: MOTU PCIx-424, 3x MOTU 2408mk3, 9xADA8000 Plugs:RML Levelizer,SAWverb; DualLinkwitzRileyFilter; Voxengo Gliss; ReaXcomp; Dominion; + testing others
    Typical Show:24-40 Channel, 4-8 mixes+sidefill, Stereo FOH+SAW multitracking
    Buffer & load: 2x32, 25-55% depending

  3. #3
    Join Date
    Apr 2009
    Location
    Cleveland, OH
    Posts
    3,493

    Default Re: Automatically setting cpu affinity for SAC

    +1, thank you for posting this info
    Richard B. Ingraham
    RBI Sound
    http://www.rbisound.com
    Email Based User List: http://tech.groups.yahoo.com/group/sac_users/

  4. #4
    Join Date
    Jun 2004
    Location
    Southern Tablelands, NSW, Australia
    Posts
    1,075

    Default Re: Automatically setting cpu affinity for SAC

    FWIW, I use this for setting affinity for SAC & SAW on startup and as Angie says, it works very well.

  5. Default Re: Automatically setting cpu affinity for SAC

    I've used Imagecfg in the past for older programs that didn't speak multiprocessor. It always did the job well.

  6. #6
    Join Date
    Aug 2010
    Location
    Albuquerque, N.M.
    Posts
    1,105

    Default Re: Automatically setting cpu affinity for SAC

    Thanx, Angie. Because my present system is so solid, I have been leery of upgrading my older socket LGA-775 for this very reason. Thanx for this information!
    DF

    http://soundaddy.com

    Intel DG965OT Motherboard (11/17/08) - Intel P4 LGA-775 651 (Cedar Mill) 3.4GHz CPU
    2.0GB 800Mhz RAM - 40GB Intel X25-V SSD - 500GB SATA "Spinner"

    RME HDSP 9652 (x2 - 1 spare) - Behringer ADA8000 (x5 - 2 spares)
    CM MotorMix (x3 - Host system) - Behringer BCF-2000 (Remote system)


  7. #7

    Talking Re: Automatically setting cpu affinity for SAC

    OK, so, this sounds very cool, But im not sure i completely understand.. SAW/SAC will run now on your second CPU, will then other things run on CPU one? How about VST's do they stay on CPU 2 with SAW or do they use 2 or 1 or whatever? How do they Interact with each other? Inquiring Minds WANT TO KNOW! Has Bob explored this in the past?
    Carey A. Langille
    Producer/Engineer
    Ocean Sound Productions
    www.oceansoundstudio.com
    Creativity at the Speed of Sound

  8. #8
    Join Date
    May 2004
    Location
    Melbourne, Australia
    Posts
    409

    Default Re: Automatically setting cpu affinity for SAC

    Quote Originally Posted by Carey Langille View Post
    OK, so, this sounds very cool, But im not sure i completely understand.. SAW/SAC will run now on your second CPU, will then other things run on CPU one? How about VST's do they stay on CPU 2 with SAW or do they use 2 or 1 or whatever? How do they Interact with each other? Inquiring Minds WANT TO KNOW! Has Bob explored this in the past?
    Carey;
    Please have a read through this,
    http://www.sawstudiouser.com/forums/...light=affinity

    Re; VSTs and Affinity etc..

    Cheers...Robert V

  9. Default Re: Automatically setting cpu affinity for SAC

    Dittos.. Thanks Angie!

    In the past, toyed with the /ONECPU and internal app. settings, but never noticed any diff.. n' don't know where I left it.

    Gonna implement this on the studio rig just to set and forget it.

    Digital Dexterity Records




  10. Default Re: Automatically setting cpu affinity for SAC

    Quote Originally Posted by tomasino View Post
    Dittos.. Thanks Angie!

    In the past, toyed with the /ONECPU and internal app. settings, but never noticed any diff.. n' don't know where I left it.

    Gonna implement this on the studio rig just to set and forget it.
    Implemented this last weekend.
    Started on the ground floor by disabling hyperthreading in the BIOS. (was still enabled.. who knew! )
    Ran imagecfg on SAC.exe n' set its' affinity to the 2nd core (i3 2 core 3.4 Gigawatts )
    In Sawstudio set "Force Single CPU".

    So, should have:

    • Sawstudio on core Zero
    • SAC on core One

    Then, experienced a little weirdness in Sawstudio on BuildMix.. but nothing a reboot didn't clear up.
    Have had some stuttered start boot ups.


    There should be no problem for the Win7 OS with disabling hyperthreading in the BIOS right?
    Pretty sure it was ON when the OS was installed.
    OS is installed on an SSD drive.

    Otherwise seems to be OK.
    Not noticing any diff in the MultiTrack/SAC load.

    Digital Dexterity Records




Posting Permissions

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