Re: Dual processor How To's ?Different question



On Aug 7, 9:15 am, sandy <tks.ku...@xxxxxxxxx> wrote:

Hi David,
Thanks for the quick reply. I will try the same.
But i have a question. I keep hearing statements
something like this..."We are not making use of dual processor , we
are just running same code (written on single processor) on dual
processor.

Not knowing what your code does, it's hard for me to know what to make
of that comment. It might be dead on, it might be complete nonsense.

If we have to make use of Dual Proc we need modify the code
for the same and run. Just increasing the hardware capacity will not
solve the problem.(problem is with single processor the app is able to
serve 3000 requests, but running the same code on dual its able to
serve 7000 requests)." For obvious reasons i am not able to give you
complete information on the problem but its similar.
Can you please provide me your understanding of this above
said stmt?

Not all tasks are CPU limited. Most CPU limited tasks can be
accelerated by a dual processor. If your task is CPU limited, you
should see a significant performance boost on a dual CPU system
compared to a comparable single CPU system.

If your task is limited by disk I/O, network I/O, or memory bandwidth,
another CPU is not likely to help.

If you use multiple processes or multiple threads, the additional CPU
should speed things up without you having to do anything special. But
there are ways that can go wrong (false sharing, too much work has to
be done in one thread, poorly scoped locks, and so on).

The only way to fix a performance problem that only shows up on some
platforms is to analyze performance on one of those platforms.

If one CPU is at 100% and the other is idle, that's a good sign of a
problem. If both CPUs are at 100%, but performance is the same as if
you only allow one CPU to be used, that's a good sign of a problem.

DS

.



Relevant Pages

  • Re: Asf fastforward performance
    ... > thing is when i use dual processor the processor usage is ... If the single processor gives 1, ... smooth yet and the used CPU time will still be near 100%. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Compaq Proliant 1600 & SMP
    ... CPU: Pentium III/Pentium III Xeon/Celeron ... real memory = 536870912 ... Preloaded elf kernel "kernel" at 0xc03c1000. ... >the OS only seems to be recognizing a single processor. ...
    (freebsd-current)
  • Re: [patch 21/21] slab defrag: Obsolete SLAB
    ... when pinning the process to a single processor? ... That program emulates a TPC-C run from the point of view of ... Pinning the process to one ... CPU would miss the point somewhat. ...
    (Linux-Kernel)
  • Re: FW: Linux question
    ... single processor and ignore all other processor cores (eg. leave ... them in HALT)? ... each CPU? ... seen there's an online file for every CPU, ...
    (Linux-Kernel)
  • Re: [PATCH 0/3] cpu: idle state framework for offline CPUs.
    ... CPU can handle and one for deepest possible that platform likes for ... take the cpu back and allocate it to another VM. ... The hypervisor gets control no matter what idle state ... platforms from requiring the use of multiple "offline" states. ...
    (Linux-Kernel)