Use of dual CPU?

2005-05-23 Thread Marco Calviani
Hi, i have one general question regarding the use of a dual Opteron CPU using a smp kernel. I'm currently running a cpu intensive program that use for some hours 100% of the cpu time. But having a look with top at the processes it seems that only one CPU is doing the work at 100%: the other

Re: Use of dual CPU?

2005-05-23 Thread Adam Mercer
On 23/05/05, Marco Calviani [EMAIL PROTECTED] wrote: Hi, i have one general question regarding the use of a dual Opteron CPU using a smp kernel. I'm currently running a cpu intensive program that use for some hours 100% of the cpu time. But having a look with top at the processes it seems

Re: Use of dual CPU?

2005-05-23 Thread Marco Calviani
So, normally, even if i use an SMP kernel if i'm not telling the program to use both CPU it will continue using only one CPU, right? Regards, MC -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]

Re: Use of dual CPU?

2005-05-23 Thread Marco Calviani
Marco Calviani ha scritto: So, normally, even if i use an SMP kernel if i'm not telling the program to use both CPU it will continue using only one CPU, right? Regards, MC By the way i'm using g77 to compile the program i'm running... -- To UNSUBSCRIBE, email to [EMAIL PROTECTED]

Re: Use of dual CPU?

2005-05-23 Thread Adam Mercer
On 23/05/05, Marco Calviani [EMAIL PROTECTED] wrote: So, normally, even if i use an SMP kernel if i'm not telling the program to use both CPU it will continue using only one CPU, right? Yes, if the program isn't written to use both CPUs, it won't. Cheers Adam

Re: Use of dual CPU?

2005-05-23 Thread Marco Calviani
Adam Mercer ha scritto: On 23/05/05, Marco Calviani [EMAIL PROTECTED] wrote: So, normally, even if i use an SMP kernel if i'm not telling the program to use both CPU it will continue using only one CPU, right? Yes, if the program isn't written to use both CPUs, it won't. Cheers

Re: Use of dual CPU?

2005-05-23 Thread Miquel van Smoorenburg
In article [EMAIL PROTECTED], Marco Calviani [EMAIL PROTECTED] wrote: Adam Mercer ha scritto: On 23/05/05, Marco Calviani [EMAIL PROTECTED] wrote: So, normally, even if i use an SMP kernel if i'm not telling the program to use both CPU it will continue using only one CPU, right? Yes,

Re: Use of dual CPU?

2005-05-23 Thread Marco Calviani
Miquel van Smoorenburg ha scritto: You cannot run one program on two CPUs. It's simply not possible. What you can do is split your program up into multiple programs or threads, that you can run simultaneously - in that case, you will use more than one CPU. But you need to redesign/rewrite your

Re: Use of dual CPU?

2005-05-23 Thread michael
On Mon, 2005-05-23 at 09:30 +0200, Marco Calviani wrote: Adam Mercer ha scritto: On 23/05/05, Marco Calviani [EMAIL PROTECTED] wrote: So, normally, even if i use an SMP kernel if i'm not telling the program to use both CPU it will continue using only one CPU, right? Yes, if

Re: Use of dual CPU?

2005-05-23 Thread michael
On Mon, 2005-05-23 at 10:34 +0200, Marco Calviani wrote: Miquel van Smoorenburg ha scritto: You cannot run one program on two CPUs. It's simply not possible. What you can do is split your program up into multiple programs or threads, that you can run simultaneously - in that case, you

Re: Use of dual CPU?

2005-05-23 Thread Walter Hoolwerf
On 2005-05-23 09:20:07 +0200, Marco Calviani [EMAIL PROTECTED] said: Hi, i have one general question regarding the use of a dual Opteron CPU using a smp kernel. I'm currently running a cpu intensive program that use for some hours 100% of the cpu time. But having a look with top at the

Re: Use of dual CPU?

2005-05-23 Thread Marco Calviani
Walter Hoolwerf ha scritto: the problem (probably) is, that your application isn't smp enabled, like others said. this means, that your application is designed to do one task at a time, like for example, if you'd like to add 7 to 3 and put in in A, and afterwards like to add 9 to 7 and