Re: Dual CPU query

2006-09-05 Thread Paul Johnson
On Tuesday 05 September 2006 20:53, [EMAIL PROTECTED] wrote:

> I can not see referecne to my second CPU. The system is a fresh net
> install of Debian Sarge. So I need to do anything special to get the
> second CPU reconzied? What have i done wrong suring the Debian install?

Grab one of the linux-image*smp (or is it kernel-image*smp in sarge? I forget, 
but it's not that hard to search for both; linux-image*smp would be the newer 
ones) packages listed in aptitude to get a kernel that supports more than one 
proc.

-- 
Paul Johnson
Email and IM (XMPP & Google Talk): [EMAIL PROTECTED]



pgpTFp4K6jxtk.pgp
Description: PGP signature


Dual CPU query

2006-09-05 Thread julian
After reading the e-mail regarding issues upgrading cpu, I decided to
check my Dual CPU server to see what /proc/cpuinfo said.

This is what is says:

processor   : 0
vendor_id   : GenuineIntel
cpu family  : 6
model   : 8
model name  : Pentium III (Coppermine)
stepping: 3
cpu MHz : 696.981
cache size  : 256 KB
fdiv_bug: no
hlt_bug : no
f00f_bug: no
coma_bug: no
fpu : yes
fpu_exception   : yes
cpuid level : 2
wp  : yes
flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 mmx fxsr sse
bogomips: 1389.36

I can not see referecne to my second CPU. The system is a fresh net
install of Debian Sarge. So I need to do anything special to get the
second CPU reconzied? What have i done wrong suring the Debian install?

Many thanks in advance.

Julian DE Marchi

Http://www.jdcomputers.com.au



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Dual CPU query

2006-09-05 Thread Stephen Cormier
On Wednesday 06 September 2006 00:53, [EMAIL PROTECTED] wrote:
> After reading the e-mail regarding issues upgrading cpu, I decided to
> check my Dual CPU server to see what /proc/cpuinfo said.
>
> This is what is says:
>
> processor   : 0
> vendor_id   : GenuineIntel
> cpu family  : 6
> model   : 8
> model name  : Pentium III (Coppermine)
> stepping: 3
> cpu MHz : 696.981
> cache size  : 256 KB
> fdiv_bug: no
> hlt_bug : no
> f00f_bug: no
> coma_bug: no
> fpu : yes
> fpu_exception   : yes
> cpuid level : 2
> wp  : yes
> flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
> cmov pat pse36 mmx fxsr sse
> bogomips: 1389.36
>
> I can not see referecne to my second CPU. The system is a fresh net
> install of Debian Sarge. So I need to do anything special to get the
> second CPU reconzied? What have i done wrong suring the Debian install?
>
> Many thanks in advance.
>
> Julian DE Marchi
>
> Http://www.jdcomputers.com.au

Use "apt-cache search image smp" without the " then choose a kernel image to 
install most likely one with a 686 in the name as well reboot and try again 
with the command you will see two processors or even if the frame buffer is 
in use when booting you will see two penguins on the screen/see both 
processor being initialized ...

Stephen

-- 
GPG Pubic Key: http://users.eastlink.ca/~stephencormier/publickey.asc


pgpjfMhY5Mo00.pgp
Description: PGP signature


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 put it in B. If your application 
is designed like this, dual processor wont do you any good.


You can design your application to use threads. In this case, one 
thread will add 7 to 3 and put it in A, the other will add 9 to 7 and 
put it in B. One thread will run on one CPU, the other thread on the 
other. You application will be (in theory) twice as fast.


Multi threaded programming isn't possible in every situation. Let's 
say you want add 7 to 3 and put it in A, and then add 7 to A and put 
it in B. The first task has to be finished before the second can 
start. I think you can imagine, that the more complex your 
applications get, the harder it is for some compiler to decide what 
can and cannot be done using threads and what cannot. Therefore, smp 
applications are always of that nature by software design, and not by 
compiler settings.


So, short version, if your application isn't multithreaded, this is 
because the task at hand can't be put into multiple threads, or the 
software developper just didn't care about it. In either case, you're 
pretty much out of luck, unless you care to redesign the application 
yourself. Recompiling it, won't really do you any good I'm afraid.




Thanks very much for your clear reply, and thanks also to all the others.

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 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 processes it seems that only one CPU is doing the work at 100%: the 
other one seems idle for most of the time.

Here i'm posting the normal behaviour:

CPU states:  cpuusernice  systemirq  softirq  iowaitidle
   total   99,0%0,0%1,4%   0,0% 0,0%0,0%   99,4%
   cpu000,0%0,0%0,4%   0,0% 0,0%0,0%   99,5%
   cpu01   99,0%0,0%0,9%   0,0% 0,0%0,0%0,0%

Is this behaviour right for a dual cpu machine, or there is something 
not going right?


Thanks in advance,
MC


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 put it in B. If your application is 
designed like this, dual processor wont do you any good.


You can design your application to use threads. In this case, one 
thread will add 7 to 3 and put it in A, the other will add 9 to 7 and 
put it in B. One thread will run on one CPU, the other thread on the 
other. You application will be (in theory) twice as fast.


Multi threaded programming isn't possible in every situation. Let's say 
you want add 7 to 3 and put it in A, and then add 7 to A and put it in 
B. The first task has to be finished before the second can start. I 
think you can imagine, that the more complex your applications get, the 
harder it is for some compiler to decide what can and cannot be done 
using threads and what cannot. Therefore, smp applications are always 
of that nature by software design, and not by compiler settings.


So, short version, if your application isn't multithreaded, this is 
because the task at hand can't be put into multiple threads, or the 
software developper just didn't care about it. In either case, you're 
pretty much out of luck, unless you care to redesign the application 
yourself. Recompiling it, won't really do you any good I'm afraid.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




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
> >will use more than one CPU. But you need to redesign/rewrite
> >your programs, ofcourse.
> >
> >Mike.
> >
> >
> >  
> >
> Well thanks very much for this clarification. I thought it was possible 
> to tell the compiler to do that by itsel.

it is. how well it will do so will depend on your initial code (eg is
there anything it CAN do in parallel?) and the compiler (eg can it spot
what can be done in parallel)?

pls note that it is possible for a parallel program on 2 CPUs to go
slower than on 1. 

and don't forget that, under the right circumstances, you can run
instance#1 on one CPU and instance#another on another CPU (for diff I/O
files)

there's plenty of books out there on this...

-- 
Michael Bane
Atmospheric Physics Group
University of Manchester


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



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 the program isn't written to use both CPUs, it won't.
> >
> >Cheers
> >
> >Adam
> >  
> >
> Do you know if it is possible to instruct the g77 (fortran) compiler to 
> use both CPU's, or maybe where to ask for?

i would have thought the answer is in 'man g77' - look for OpenMP or
threads. You may also wish to look up 'mpich' in an Internet search
engine. 

so, "yes" you can get your programs to use both CPUs - how well they do
so is yet another issue.

if you're asking about op sys tasks on >1 CPUs pls start a  new thread

Michael


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

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 programs, ofcourse.

Mike.


 

Well thanks very much for this clarification. I thought it was possible 
to tell the compiler to do that by itsel.


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 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, if the program isn't written to use both CPUs, it won't.
>>
>>Cheers
>>
>>Adam
>>  
>>
>Do you know if it is possible to instruct the g77 (fortran) compiler to 
>use both CPU's, or maybe where to ask for?

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 programs, ofcourse.

Mike.


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

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

Adam
 

Do you know if it is possible to instruct the g77 (fortran) compiler to 
use both CPU's, or maybe where to ask for?


Thanks very much,
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 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

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] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




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 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 that only one CPU is doing the work at 100%: the
> other one seems idle for most of the time.
> Here i'm posting the normal behaviour:
> 
> CPU states:  cpuusernice  systemirq  softirq  iowaitidle
>total   99,0%0,0%1,4%   0,0% 0,0%0,0%   99,4%
>cpu000,0%0,0%0,4%   0,0% 0,0%0,0%   99,5%
>cpu01   99,0%0,0%0,9%   0,0% 0,0%0,0%0,0%
> 
> Is this behaviour right for a dual cpu machine, or there is something
> not going right?

If the program you're running is not SMP enabled then this is the
right behaviour, the running program needs to be specially written to
take advantage of a multiprocessor setup.

See the SMP Howto for more details: http://www.tldp.org/HOWTO/SMP-HOWTO.html

Cheers

Adam



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 one seems idle for most of the time.

Here i'm posting the normal behaviour:

CPU states:  cpuusernice  systemirq  softirq  iowaitidle
  total   99,0%0,0%1,4%   0,0% 0,0%0,0%   99,4%
  cpu000,0%0,0%0,4%   0,0% 0,0%0,0%   99,5%
  cpu01   99,0%0,0%0,9%   0,0% 0,0%0,0%0,0%

Is this behaviour right for a dual cpu machine, or there is something 
not going right?


Thanks in advance,
MC


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Dual CPU

1999-06-24 Thread Sean 'Shaleh' Perry

On 24-Jun-99 Peter Iannarelli wrote:
> Then explain why xosview version  1.7.1 on potato
> reports the activity of both CPUs.
> 

Because people are always getting better at breaking the rules (-:


Re: Dual CPU

1999-06-24 Thread Peter Iannarelli
Then explain why xosview version  1.7.1 on potato
reports the activity of both CPUs.



Sean 'Shaleh' Perry wrote:

> On 24-Jun-99 Marcus Johansson wrote:
> >
> > Hi!
> >
> > We have a HP-UX box with dual cpu's, and the 'top' program shows the status
> > of
> > both cpu's, and even which cpu the processes are running on. Will the top
> > (the
> > GNU variant I guess) distributed with Debian 2.1 show anything like that? If
> > I
> > have dual cpu's that is... Or could I recompile top with support for more
> > cpu's?
> >
>
> Linux sees the 2 as one (or the 8 as one).  There is currently no concept of
> three programs on one cpu and 6 on the other.
>
> --
> Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
begin:vcard 
n:Iannarelli;Peter
tel;fax:1+ 416 929 1056
tel;work:1+ 416 929 1885
x-mozilla-html:FALSE
url:http://www.GenXl.com
org:GenX Internet Labs
adr:;;238a Gerrard St. East;Toronto;ON;M5A 2E8;CA
version:2.1
email;internet:[EMAIL PROTECTED]
title:Senior Engineer
fn:Peter Iannarelli
end:vcard


RE: Dual CPU

1999-06-24 Thread Sean 'Shaleh' Perry

On 24-Jun-99 Marcus Johansson wrote:
> 
> Hi!
> 
> We have a HP-UX box with dual cpu's, and the 'top' program shows the status
> of 
> both cpu's, and even which cpu the processes are running on. Will the top
> (the 
> GNU variant I guess) distributed with Debian 2.1 show anything like that? If
> I 
> have dual cpu's that is... Or could I recompile top with support for more 
> cpu's?
> 

Linux sees the 2 as one (or the 8 as one).  There is currently no concept of
three programs on one cpu and 6 on the other.


Dual CPU

1999-06-24 Thread Marcus Johansson

Hi!

We have a HP-UX box with dual cpu's, and the 'top' program shows the status of 
both cpu's, and even which cpu the processes are running on. Will the top (the 
GNU variant I guess) distributed with Debian 2.1 show anything like that? If I 
have dual cpu's that is... Or could I recompile top with support for more 
cpu's?

/Marcus