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

Have a question about how to use GINA? Ask away.
Post Reply
oldgoat
Posts: 4
Joined: Fri Jul 19, 2019 2:52 am

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

Post by oldgoat » Wed Mar 25, 2020 1:14 pm

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 25360 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?

oldgoat
Posts: 4
Joined: Fri Jul 19, 2019 2:52 am

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

Post by oldgoat » Wed Mar 25, 2020 1:31 pm

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.

krushor
Posts: 8
Joined: Mon Aug 06, 2018 6:53 am

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

Post by krushor » Sat Mar 27, 2021 9:01 pm

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.

HSishi
Posts: 62
Joined: Sun Aug 26, 2012 3:19 pm

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

Post by HSishi » Tue Jan 04, 2022 5:50 pm

*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.

Metanis
Posts: 6
Joined: Fri Nov 13, 2015 11:41 am

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

Post by Metanis » Sat Dec 16, 2023 10:46 am

Here's a nice description of setting processor affinity in Win10 or 11...

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

HSishi
Posts: 62
Joined: Sun Aug 26, 2012 3:19 pm

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

Post by HSishi » Wed Dec 27, 2023 4:15 pm

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.

Post Reply