using 100% of cpu
using 100% of cpu
Reviewing old threads, it doesn't seem possible to determine what cpu an application is running on.
when starting up an app, (and testing it), i'm thinking of showing the cpu via spiking the cpu usage and viewing it in task manager.
This used to work on "slower machines", but it doesn't even cause a blip on my new machine when i test it from xdot
a:={1,2,3,0}
nSeconds:=seconds()
do while seconds() <= nSeconds+2
asort(a)
enddo
any suggestions ??
Brian
when starting up an app, (and testing it), i'm thinking of showing the cpu via spiking the cpu usage and viewing it in task manager.
This used to work on "slower machines", but it doesn't even cause a blip on my new machine when i test it from xdot
a:={1,2,3,0}
nSeconds:=seconds()
do while seconds() <= nSeconds+2
asort(a)
enddo
any suggestions ??
Brian
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises
Re: using 100% of cpu
Hi Brian,
Roger has DC_SetCpu(), which you can set the desired CPU, possibly a start?
Roger has DC_SetCpu(), which you can set the desired CPU, possibly a start?
Re: using 100% of cpu
Rick,RDalzell wrote:Hi Brian,
Roger has DC_SetCpu(), which you can set the desired CPU, possibly a start?
I'm using that... I want to spike the cpu being used at start-up so i can confirm in task manager that it's using that cpu..
Sometimes, the above function spikes the cpu, sometimes not.. but in my new machines, it hardly ever spikes it..
Brian
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises
Re: using 100% of cpu
nCpu:= val(dc_xtoc(DC_INIREAD('my.ini','something','CPU',@cTemp)))Auge_Ohr wrote:hi,
what Value do you use for SmpSetCPU() ?
SmpSetCPU(nCpu)
FUNCTION SmpSetCPU(nCpuMask)
******************
DllCall("Xpprt1.dll",DLL_CDECL, "_sysSetCPU", nCpuMask)
etc etc
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises
Re: using 100% of cpu
but what Value does nCpu have ? it must be 2^xbwolfsohn wrote:nCpu:= val(dc_xtoc(DC_INIREAD('my.ini','something','CPU',@cTemp)))
SmpSetCPU(nCpu)
greetings by OHR
Jimmy
Jimmy
Re: using 100% of cpu
Jimmy,
nCpu is 3
there are 2 physical cpu's and each has 4 cores + hyperthreading.. so, in performance tab of taskbar, there are 16 windows
nCpu is 3
there are 2 physical cpu's and each has 4 cores + hyperthreading.. so, in performance tab of taskbar, there are 16 windows
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises
Re: using 100% of cpu
please try Alaska Sample c:\ALASKA\XPPW32\Source\samples\solution\smp\smprun.prgbwolfsohn wrote:nCpu is 3
as i can say Description is "old" while 3 for "CPU 1+2" will not work.
it can be only 1 CPU and it must be 1, 2, 4, 8, 16, 32 -> 2^x
greetings by OHR
Jimmy
Jimmy
Re: using 100% of cpu
I've also tried 2 with no success
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises
Re: using 100% of cpu
hm ... are those CPU Xeon or "normal" ?bwolfsohn wrote:I've also tried 2 with no success
greetings by OHR
Jimmy
Jimmy