Page 1 of 1 1
Topic Options
#99557 - 2003-03-14 10:42 AM Howto use Multiple CPU's
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
Guys,

Does anyone now how to make KiX use all of my 4 CPU's at the same time while running 1 script??
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#99558 - 2003-03-14 10:46 AM Re: Howto use Multiple CPU's
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
pat, I think it's not about kix anymore but about the system.
if the system can't provide to simple tasks all the resources, there is nothing to do.

but, could you make your script to run simultaneously multiple instances of kix?
_________________________
!

download KiXnet

Top
#99559 - 2003-03-14 11:32 AM Re: Howto use Multiple CPU's
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
Nope,

one script must use 4 CPUs (want to run a CD sorter with brute force [Wink] )
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#99560 - 2003-03-15 12:23 AM Re: Howto use Multiple CPU's
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
mm...
what OS?

I think there is also setting available how to load balance the cpu-usage...

well, it's also depending on the hardware support...

but I think there is nothing you can do if OS wants the software to handle the balancing.
just because kix is not designed in this way.
_________________________
!

download KiXnet

Top
#99561 - 2003-03-15 12:36 AM Re: Howto use Multiple CPU's
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
W2k Adv Server
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#99562 - 2003-03-15 12:43 AM Re: Howto use Multiple CPU's
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
nope... basically kix is running a single thread.

If you can make kix spawn a seperate process then the OS will automatically spin it to another processor.

as it is, if Kix takes all of one processor the OS should push other(new) processes to other processors, in a basic load balancing attempt. As this is a MS product YNK.
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#99563 - 2003-03-15 12:47 AM Re: Howto use Multiple CPU's
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
The OS pushes others to the remaining CPUs. But I want to be able to let KiX use 4 CPUs.

I think it will not be possible...
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#99564 - 2003-03-15 12:50 AM Re: Howto use Multiple CPU's
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
like rad said, this is M$!

you could install linux on such hardware and make windows emulator run over it.

this way you could get at least half of the processor power to the kix-process.
_________________________
!

download KiXnet

Top
#99565 - 2003-03-15 12:55 AM Re: Howto use Multiple CPU's
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
Linux??

OK, but instead of using an emulator, why not ask Ruud to write a Kixtart for Linux version... [Smile]
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#99566 - 2003-03-14 01:16 PM Re: Howto use Multiple CPU's
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
because he would loose his job at M$
_________________________
!

download KiXnet

Top
#99567 - 2003-03-14 03:43 PM Re: Howto use Multiple CPU's
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
As previously stated, KiXtart is single-threaded and thus cannot use more than one CPU. However, a properly coded KiXtart script can utilize multiple CPUs at the same time by spawning sub-processes that then get associated with a specific CPU. You would basically have one 'Master' control script with x 'slave' processing scripts that each try to solve a subset of your underlying problem.

Communications might happen through e.g. .INI file or registry.
_________________________
There are two types of vessels, submarines and targets.

Top
#99568 - 2003-03-14 03:58 PM Re: Howto use Multiple CPU's
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
yeah, like the investor code [Wink]
but for kixgolf that is little hard to do...

or, will definitely add zillion keystrokes...
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 823 anonymous users online.
Newest Members
JimDunn, fgarcia, Viginette, ManuvdWielNL, Sir_Barrington
17890 Registered Users

Generated in 0.062 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org