Page 1 of 1

HEPL! GINA does not run on a 32-core CPU

Posted: Wed Mar 25, 2020 1:14 pm
by oldgoat
Here is the error from event viewer:

Application: GINA.exe Framework Version: v4.0.30319 Description:
The process was terminated due to an unhandled exception.
Exception
Info: System.OverflowException at GimaSoft.Business.GINA.Configuration.set_ProcessorAffinity(Int64) at GimaSoft.Business.GINA.Configuration.LoadFromXml


]Workaround:
Since this is a click-once app, I had to rummage through the appdata folder to find the Gina.exe program. Once located, I could use a command-line tool to execute "Start /Affinity 1 gina.exe" which starts Gina but limits it to 1 CPU core.

I'm not sure if this is a .Net 4 issue, or if it is your program that fiddles with the CPU affinity, at any event, it looks like this:
Gina_Cpu_overload.png
CPU Overload situation for GINA
Gina_Cpu_overload.png (47.74 KiB) Viewed 18202 times
Is there anything to be done about this? Or maybe is the source-code available so I can compile it over to a newer version of .Net?

Re: HEPL! GINA does not run on a 32-core CPU

Posted: Wed Mar 25, 2020 1:31 pm
by oldgoat
Replying to myself:

Once I managed to run GINA with a reduced set of cores (see workaround above) it seems like once I allocated just 4 CPU cores to GINA under the performance tab, and let it update itself, it now starts without immediately crashing.

Seems like 16 is the max number of threads Gina can handle :)

Might prove helpful to others.

Re: HEPL! GINA does not run on a 32-core CPU

Posted: Sat Mar 27, 2021 9:01 pm
by krushor
I have a post in bug reports. It explains how you can start gina via the start command in windows and specifiy sixteen or fewer cores and when the gui starts you can change it.

Re: HEPL! GINA does not run on a 32-core CPU

Posted: Tue Jan 04, 2022 5:50 pm
by HSishi
*undusting this* *cough cough*

Where dooes GINA store which cores are supposed to be used? Maybe it's easier to change the values which are set (or cleared) by the checkboxes.

Re: HEPL! GINA does not run on a 32-core CPU

Posted: Sat Dec 16, 2023 10:46 am
by Metanis
Here's a nice description of setting processor affinity in Win10 or 11...

https://www.thewindowsclub.com/processo ... ty-windows

Re: HEPL! GINA does not run on a 32-core CPU

Posted: Wed Dec 27, 2023 4:15 pm
by HSishi
HSishi wrote:
Tue Jan 04, 2022 5:50 pm
Where dooes GINA store which cores are supposed to be used?
Replying to myself: I found the setting in the XML file.

Look for the "GINAConfig.xml" file. Open it with any text editor.
Search for "<ProcessorAffinity>{any numeric value}</ProcessorAffinity>".
Change the numeric value to any value up to (2^16 -1) which would mean CPU1 to CPU16. I recommend "4095" which will make GINA use CPU1 to CPU12.

If you want to make GINA use specific cores you either need to do the conversion for yourself or start with a value of "1" (only first core) and then set the cores in GINA's performance page.