LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (http://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Processor Type for Xeon Quad on Kernel 2.6.18 (http://www.linuxquestions.org/questions/linux-kernel-70/processor-type-for-xeon-quad-on-kernel-2-6-18-a-604946/)

Coyote34 12-06-2007 10:16 AM

Processor Type for Xeon Quad on Kernel 2.6.18
 
Helo, folks!

I have installed Debian 4 on a computer with two Xeon Quad. But when I ask some taks, the cpu use reachs only 12-20%. What processor type should I use? I am using 586/686... The SMP and Dual Core options are on.

[CODE]
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.18
# Wed Nov 28 12:35:33 2007
#
CONFIG_X86_32=y
CONFIG_GENERIC_TIME=y
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_SEMAPHORE_SLEEPERS=y
CONFIG_X86=y
CONFIG_MMU=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_IOMAP=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_ARCH_MAY_HAVE_PC_FDC=y
CONFIG_DMI=y
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"

#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y
CONFIG_LOCK_KERNEL=y
CONFIG_INIT_ENV_ARG_LIMIT=32

#
# General setup
#
CONFIG_LOCALVERSION=""
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
# CONFIG_BSD_PROCESS_ACCT is not set
# CONFIG_TASKSTATS is not set
# CONFIG_AUDIT is not set
# CONFIG_IKCONFIG is not set
# CONFIG_CPUSETS is not set
# CONFIG_RELAY is not set
CONFIG_INITRAMFS_SOURCE=""
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
# CONFIG_EMBEDDED is not set
CONFIG_UID16=y
CONFIG_SYSCTL=y
CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_EXTRA_PASS is not set
CONFIG_HOTPLUG=y
CONFIG_PRINTK=y
CONFIG_BUG=y
CONFIG_ELF_CORE=y
CONFIG_BASE_FULL=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_SHMEM=y
CONFIG_SLAB=y
CONFIG_VM_EVENT_COUNTERS=y
CONFIG_RT_MUTEXES=y
# CONFIG_TINY_SHMEM is not set
CONFIG_BASE_SMALL=0
# CONFIG_SLOB is not set

#
# Loadable module support
#
# CONFIG_MODULES is not set

#
# Block layer
#
# CONFIG_LBD is not set
# CONFIG_BLK_DEV_IO_TRACE is not set
# CONFIG_LSF is not set

#
# IO Schedulers
#
CONFIG_IOSCHED_NOOP=y
# CONFIG_IOSCHED_AS is not set
CONFIG_IOSCHED_DEADLINE=y
# CONFIG_IOSCHED_CFQ is not set
# CONFIG_DEFAULT_AS is not set
CONFIG_DEFAULT_DEADLINE=y
# CONFIG_DEFAULT_CFQ is not set
# CONFIG_DEFAULT_NOOP is not set
CONFIG_DEFAULT_IOSCHED="deadline"

#
# Processor type and features
#
CONFIG_SMP=y
CONFIG_X86_PC=y
# CONFIG_X86_ELAN is not set
# CONFIG_X86_VOYAGER is not set
# CONFIG_X86_NUMAQ is not set
# CONFIG_X86_SUMMIT is not set
# CONFIG_X86_BIGSMP is not set
# CONFIG_X86_VISWS is not set
# CONFIG_X86_GENERICARCH is not set
# CONFIG_X86_ES7000 is not set
# CONFIG_M386 is not set
# CONFIG_M486 is not set
CONFIG_M586=y
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not set
# CONFIG_M686 is not set
# CONFIG_MPENTIUMII is not set
# CONFIG_MPENTIUMIII is not set
# CONFIG_MPENTIUMM is not set
# CONFIG_MPENTIUM4 is not set
# CONFIG_MK6 is not set
# CONFIG_MK7 is not set
# CONFIG_MK8 is not set
# CONFIG_MCRUSOE is not set
# CONFIG_MEFFICEON is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP2 is not set
# CONFIG_MWINCHIP3D is not set
# CONFIG_MGEODEGX1 is not set
# CONFIG_MGEODE_LX is not set
# CONFIG_MCYRIXIII is not set
# CONFIG_MVIAC3_2 is not set
# CONFIG_X86_GENERIC is not set
CONFIG_X86_CMPXCHG=y
CONFIG_X86_XADD=y
CONFIG_X86_L1_CACHE_SHIFT=5
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_X86_PPRO_FENCE=y
CONFIG_X86_F00F_BUG=y
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
CONFIG_X86_CMPXCHG64=y
CONFIG_X86_ALIGNMENT_16=y
# CONFIG_HPET_TIMER is not set
CONFIG_NR_CPUS=8
CONFIG_SCHED_SMT=y
CONFIG_SCHED_MC=y
CONFIG_PREEMPT_NONE=y
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT is not set
# CONFIG_PREEMPT_BKL is not set
CONFIG_X86_LOCAL_APIC=y
CONFIG_X86_IO_APIC=y
CONFIG_X86_MCE=y
# CONFIG_X86_MCE_NONFATAL is not set
# CONFIG_X86_MCE_P4THERMAL is not set
CONFIG_VM86=y
# CONFIG_TOSHIBA is not set
# CONFIG_I8K is not set
# CONFIG_X86_REBOOTFIXUPS is not set
# CONFIG_MICROCODE is not set
# CONFIG_X86_MSR is not set
# CONFIG_X86_CPUID is not set

HappyTux 12-07-2007 07:34 PM

Not exactly sure what your problem is here. Do you want to see if your core(s) will fully load? If so then install the cpuburn package and use something like burnMMX || echo $? & in a console/console window eight times which will be one for each of your cores then use top and hit the 1 key to show you all eight processors in the output which should be at ~100% load. Now you will want to be monitoring the temperature of your cores when doing this as they will get hot. You will probably never see a fully loaded all eight cores in your machine doing anything other than this as your machine would have to be running a whole lot of processor intensive processes at the same time with the processes being multi-threaded at the same time so they would take advantage of the extra cores as well to have a full load on the machine. To get ~80-90% load on my quad core I had to for instance re-encode a video, compile kdebase and compile the kernel with make -j5 a few times in a row all at the same time, just to give you an idea of what it takes to load them up.

wraithe 12-07-2007 07:58 PM

one way i know to load a cpu up, and best bit is it helps others...

download boinc and do some work units for a couple of groups, ie einstein@home, climateprediction.net, seti@home, rosetta...
thats a couple for you, and they all help the world...


when you set the preferences, set cpu usage to 100%, and watch the temp rise, oh and ensure your ready for the slow down...it will, but you may not notice until you try to do a few things at once...

one other thing, with the algorithms being used today, i dont think a quad core would use more than about 50% in general use, except maybe processing something that is cpu intensive, like encoding, or compiling...

syg00 12-07-2007 08:55 PM

12% would be one engine - doesn't sound like it's threaded.

No need to trash the box - just use a small background script to loop forever. Kick off 10 of them - they each run a CPU to 100%, but easily interrupted.
As above use top to split out the CPUs.

Coyote34 12-10-2007 06:54 AM

Thanks syg00.

But I believe there is something wrong. I have a Pentium-D 3.2 that consumes 24 s to run a mysqls task. The same task on my xeon quad takes 28s. I believe the xeon quad is operating just one cpu. On the Kernel config smp and multi core are ON.

What processor type should I use on kernel 2.6.18?

Pentium III
Pentium 4
Pentium M
586/686
?

Thanks

HappyTux 12-10-2007 11:42 AM

Quote:

Originally Posted by Coyote34 (Post 2985824)
Thanks syg00.

But I believe there is something wrong. I have a Pentium-D 3.2 that consumes 24 s to run a mysqls task. The same task on my xeon quad takes 28s. I believe the xeon quad is operating just one cpu. On the Kernel config smp and multi core are ON.

What processor type should I use on kernel 2.6.18?

Pentium III
Pentium 4
Pentium M
586/686
?

Thanks

At least the 686 option and if the mysql task is not multi-threaded then yes it will only use one core and if the Pentium D is running at a higher clock rate then it will most times win over a slower clocked Xeon.

Coyote34 12-10-2007 12:00 PM

How to put mysql to multi-threat?
 
Thanks.

Yes you are correct, the clock for Pentium D is 3.2 MHz.

But How can I put mysql to multi-threat?

HappyTux 12-10-2007 12:20 PM

Quote:

Originally Posted by Coyote34 (Post 2986100)
Thanks.

Yes you are correct, the clock for Pentium D is 3.2 MHz.

But How can I put mysql to multi-threat?

You don't if it has already been coded that way it should use it by default unless there is some start option you need to pass to enable it or if you know how to change source code yourself to make it multi-threaded then that would work. I think you may need to get in contact with a mysql list to see how others are running it or maybe start a new thread here on the problem and see if someone knows about how to do what you want.


All times are GMT -5. The time now is 11:41 AM.