Compiling with two CPU cores
Is it possible to compile with two or more CPU cores or just with one?
As it seems, javac uses only one core when I compile with the Ant tasc "javac".
I don't know of a way to do this, but I've never seen a need to do this either, since java compilation is never too slow for me (even for huge projects).
If you seriously need faster compilation, you could switch to a faster compiler (jikes is seriously fast, ecj (the eclipse compiler) is even faster, sometimes).
You might also try compiling seperate (independent) parts of your sourcecode with explicit parallel constructs in ant ('though I don't know if it's worth the overhead).
Similar Messages
-
The system is an Intel i7 with hyperthreading turned on. The RAM is 4 GB, the video is dual-head Ati 4500 with 1 GB RAM, the audio i/o is MOTU PCI424.
Only in spectral view (in edit view), when a region is selected using the rectangle, lasso, effects painter or healing brush, starting a process on the selected region causes APPCRASH and the program exits.
When either hyperthreading is turned off, or bcedit set numproc 4, the problem goes away, indicating that AA3 can't handle 8 cores.
We have yet to test this same problem on a Nehalem system (twin i7 CPUs) with and without hyperthreading.Are you sure that it is 8 cores rather than the Hyperthreading of 4 cores that causes the problem? Anyway I shouls send a bug report to Adobe since they may have not done much testing with that number of cores.
-
Multisim 11 only uses one CPU core during simulation
Hi,
Just recently I've been using MultiSim again, v11 if that matters, and simulating goes slow, to my opinion that is.
Now there are two things that I've noticed:
- Multisim only uses one of two CPU cores during simulation, not both;
- I've enabled CPU throttle (AMD's Cool'n'Quiet) but corespeed remains very low even though Multisim needs CPU power while simulating.
The simulating of a NE555-based LED-flash circuit requires about 28 seconds to get to 100ms in the simulation. Now if I can get the CPU to throttle up, by for example having Prime95 stress one of the two cores, then the simulation only requires 12 seconds to get to 100ms.
So here are my two questions:
1. Is Multisim 11 capable of using more than one CPU core while simulating? If yes, how can I get it to use more than one?
2. Probably not the right forum to ask, but is there a way to force Windows 7 Ultimate x64 to throttle up the CPU when Multisim starts simulating? Since Multisim does not seem to stress the only core it uses enough to throttle it up. Using Prime95 on one core does trigger a throttle up.
With regards,
Bart Grefte
Relevant specs:
Windows 7 Ultimate x64
Multisim v11
AMD A4-3400
16GB RAMCompletely forgot this topic....
Is there a good reason why there is no multicore support? Multisim can certainly use it for simulating.
As for the CPU throttling, I found a batch that can increase/decrease the "minimum processor state"-setting and it works immediately, no reboot required.
@echo off
powercfg.exe -getactivescheme > "%userprofile%\appdata\~apo.tmp"
set /p v_currentscheme= <"%userprofile%\appdata\~apo.tmp"
set v_currentscheme=%v_currentscheme:~24,36%
del "%userprofile%\appdata\~apo.tmp"
powercfg -setacvalueindex %v_currentscheme% 54533251-82be-4824-96c1-47b60b740d00 893dee8e-2bef-41e0-89c6-b55d0929964c %1
powercfg -setdcvalueindex %v_currentscheme% 54533251-82be-4824-96c1-47b60b740d00 893dee8e-2bef-41e0-89c6-b55d0929964c %1
powercfg -s %v_currentscheme%
exit
Usage is simple:
Start -> run -> c:\pathtobatch.bat 100
for "minimum processor state"-setting at 100%
Start -> run -> c:\pathtobatch.bat 5
for "minimum processor state"-setting at 5%
Please note that "set v_currentscheme=%v_currentscheme:~24,36%" is not the same for every language. The original batch had "set v_currentscheme=%v_currentscheme:~19,36%" (most likely for the English version of Windows 7), but since my Windows install is in Dutch, I had to change it in order for it to work.
Running the batch with @echo off removed will show why. -
Database uses only one cpu core from 16 available
Hi,
we have an server with 16 CPU cores, and we discovered from em that it uses only 1 core with 100% and the others are idle.
the initialization parameters for CPU are:
cpu_count 16
parallel_threads_per_cpu 2
resource_manager_cpu_allocation 16.
What can we do to use all 16 cores.
Regards
Nicoale AncutaNicolae Ancuta wrote:
Very interesting poit of view, but since I have for some period of time 1 core on 100% and other cores are idle or 0%,
I don't think that we can say that linux and oracle database 11g is using the best from that server, can you?Well, I did not offer a point of view. I offered fact - a reason why on x86 architecture it is faster to keep threads on the same CPU (if sufficient CPU capacity) then run such threads across CPUs.
As for what you are seeing - we cannot see it. So the only data we have is what you offered. And that does not suffice in making any kind of call as to why you are seeing, or even describing the symptoms correctly.
Why don't you try another example? 3 client server applications. Each client post a request (huge update 100% CPU, small update 0% CPU, huge select 100% CPU). What the server does, it switches between those 2 huge requests an uses only one core on 100% abd the others 15 are sleeping. Why don't use each request on different core and reduce the time?Define "+huge request+". Database operations are typically I/O intensive - not CPU intensive. There are also a number of processes. So if PMON for example is showing high CPU, then that means something different as when DBWR is showing high CPU, versus a dispatcher process showing high CPU.
So you need to provide a lot more detail for us to speculate as to what the problem could be, never mind offering a solution. -
Disable 1 CPU core to save battery power?
Would disabling one of two CPU cores in energy saver make the battery last longer?
Energy saver features no longer make clear what is happening. When using the slower 9400 GPU is the processor also throttled?
It would be nice to be able to see if this is the case and manually throttle the processor if it is not.
Activity monitor should show when cpu's are disabled and or throttled.
CPU Disable/Throttle Settings should include option to come back online if processor use reaches throttle limit for a period of time, or only when certain programs reach the throttle limit for an extended period of time. like photoshop in a large batch operation or final cut in project render.
This request has been sent to Apple Feedback.The facility to turn off a core is mainly for use by developers who need to test their software under different conditions as well as to be sure the software will work on single-core machines. It's not really intended for use as an energy saving technique.
Remember that if you switch GPUs you must then restart or log out for it to take effect. I'm not sure which of those you are supposed to do since I don't have one of the new machines. I think the info is in your user manual.
Check your Energy Saver preferences to be sure you implement settings that will preserve battery power such as sleeping the drive on idle, putting the screen asleep quickly when not in use - two or three minutes, and putting the computer to sleep after a short period of non-use - five or ten minutes. Enable the option to dim the screen and turn down the screen's backlight as much as you can stand. These all help to extend battery operation.
You really should not need to disable one of the cores as the built-in speedstep should throttle down the processor when idle or when the processor doesn't require full power. -
Different cpuspeednw on two different hosts with same cpu config. Why?
Hi,
there are two hosts.
They are different, but have same CPU configuration (I guess it from the output below).
Host1: Solaris 10, 4 cpu, 4 core in each cpu.
psrinfo -v
Status of virtual processor 0 as of: 03/04/2010 08:57:45
on-line since 12/25/2009 11:03:23.
The i386 processor operates at 2133 MHz,
and has an i387 compatible floating point processor.
Status of virtual processor 15 as of: 03/04/2010 08:57:45
on-line since 12/25/2009 11:03:25.
The i386 processor operates at 2133 MHz,
and has an i387 compatible floating point processor.
Host2: CentOS 5.3. Also 4 cpu, 4 cores in each spu
cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU E7320 @ 2.13GHz
stepping : 11
cpu MHz : 2133.413[b]
cache size : 2048 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 4
apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca c
mov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall lm constan
t_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
bogomips : 4270.09
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
processor : 15
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU E7320 @ 2.13GHz
stepping : 11
cpu MHz : [b]2133.413
cache size : 2048 KB
physical id : 6
siblings : 4
core id : 3
cpu cores : 4
apicid : 27
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
bogomips : 4266.82
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
QUESTION:
Host1 (Solaris) has cpuspeednw = 700
Host2 (CentOS) has cpuspeednw = 1700
WHY?
What should I do to find out why this is happening?
Edited by: user10944480 on Mar 14, 2010 7:22 AM
Edited by: user10944480 on Mar 14, 2010 7:24 AMuser10944480 wrote:
QUESTION:
Host1 (Solaris) has cpuspeednw = 700
Host2 (CentOS) has cpuspeednw = 1700
WHY?
What should I do to find out why this is happening?
The CPUSPEEDNW is measured in "millions of Oracle operations per second" - but we don't know what "operation" Oracle is using for measuring. Since you have two difference operating systems, it's possible that the "operation" that Oracle uses is one that makes use of the "OSD" (operating system dependant) code and has a very different code path on the two machines that results in a very different speed of completion.
Regards
Jonathan Lewis
http://jonathanlewis.wordpress.com
http://www.jlcomp.demon.co.uk
To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format.
There is a +"Preview"+ tab at the top of the text entry panel. Use this to check what your message will look like before you post the message. If it looks a complete mess you're unlikely to get a response. (Click on the +"Plain text"+ tab if you want to edit the text to tidy it up.)
+"Science is more than a body of knowledge; it is a way of thinking"+
+Carl Sagan+ -
iMac 7.1 (2.47 Ghz Intel Core Duo w/2GB memory) operating OSX v 10.9.5. At the core level I find two Library folders, one within the System Folder and one by itself with the other core level folders - mostly same content. Is this right or do I have a duplication problem?
The system is slow. -
Kernel26-icc compiled with Intel's compiler instead of gcc
I'm working on kernel26-icc, it's the kernel26 but compiled with Intel's compiler. Can't seem to upload it to AUR ("Invalid name: only lowercase letters are allowed.")
http://www.linuxdna.com/
So far I've this:
PKGBUILD
# Maintainer: Mathias Burén <[email protected]>
pkgname=('kernel26-icc' 'kernel26-icc-firmware' 'kernel26-icc-headers') # Build icc kernel
_kernelname=${pkgname#kernel26-icc}
_basekernel=2.6.33
pkgver=${_basekernel}
pkgrel=1
arch=(x86_64)
license=('GPL2')
url="http://www.linuxdna.com/"
source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2
# the main kernel config files
config.x86_64
# standard config files for mkinitcpio ramdisk
kernel26-icc.preset
http://www.linuxdna.com/dna-2.6.33-intel64.patch)
makedepends=('icc')
md5sums=('c3883760b18d50e8d78819c54d579b00'
'5c91374d56f115ba4324978d5b002711'
'a4fd3c59751194bc118c70d1348436ab'
'a307beb562eb7e68a6f3e2fb5fc216a3')
build() {
cd ${srcdir}/linux-$_basekernel
cat ../config.x86_64 >./.config
patch -p1 < ../dna-2.6.33-intel64.patch || return 1
if [ "${_kernelname}" != "" ]; then
sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
fi
# get kernel version
make prepare
# load configuration
# Configure the kernel. Replace the line below with one of your choice.
make menuconfig # CLI menu for configuration
#make xconfig # X-based configuration
#make oldconfig # using old config from previous kernel version
# ... or manually edit .config
# stop here
# this is useful to configure the kernel
#msg "Stopping build"
#return 1
yes "" | make config
# build!
make bzImage modules || return 1
package_kernel26-icc() {
pkgdesc="The Linux Kernel and modules built with ICC"
backup=(etc/mkinitcpio.d/${pkgname}.preset)
depends=('coreutils' 'kernel26-icc-firmware>=2.6.33' 'module-init-tools' 'mkinitcpio>=0.5.20')
install=kernel26-icc.install
optdepends=('crda: to set the correct wireless channels of your country')
KARCH=x86
cd ${srcdir}/linux-$_basekernel
# get kernel version
_kernver="$(make kernelrelease)"
mkdir -p ${pkgdir}/{lib/modules,boot}
make INSTALL_MOD_PATH=${pkgdir} modules_install || return 1
cp System.map ${pkgdir}/boot/System.map26${_kernelname}
cp arch/$KARCH/boot/bzImage ${pkgdir}/boot/vmlinuz26${_kernelname}
# # add vmlinux
install -m644 -D vmlinux ${pkgdir}/usr/src/linux-${_kernver}/vmlinux
# install fallback mkinitcpio.conf file and preset file for kernel
install -m644 -D ${srcdir}/kernel26.preset ${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset || return 1
# set correct depmod command for install
sed \
-e "s/KERNEL_NAME=.*/KERNEL_NAME=${_kernelname}/g" \
-e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \
-i $startdir/kernel26.install
sed \
-e "s|source .*|source /etc/mkinitcpio.d/kernel26${_kernelname}.kver|g" \
-e "s|default_image=.*|default_image=\"/boot/${pkgname}.img\"|g" \
-e "s|fallback_image=.*|fallback_image=\"/boot/${pkgname}-fallback.img\"|g" \
-i ${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset
echo -e "# DO NOT EDIT THIS FILE\nALL_kver='${_kernver}'" > ${pkgdir}/etc/mkinitcpio.d/${pkgname}.kver
# remove build and source links
rm -f ${pkgdir}/lib/modules/${_kernver}/{source,build}
# remove the firmware
rm -rf ${pkgdir}/lib/firmware
package_kernel26-icc-headers() {
pkgdesc="Header files and scripts for building modules for kernel26-icc"
mkdir -p ${pkgdir}/lib/modules/${_kernver}
cd ${pkgdir}/lib/modules/${_kernver}
ln -sf ../../../usr/src/linux-${_kernver} build
cd ${srcdir}/linux-$_basekernel
install -D -m644 Makefile \
${pkgdir}/usr/src/linux-${_kernver}/Makefile
install -D -m644 kernel/Makefile \
${pkgdir}/usr/src/linux-${_kernver}/kernel/Makefile
install -D -m644 .config \
${pkgdir}/usr/src/linux-${_kernver}/.config
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include
for i in acpi asm-{generic,x86} config linux math-emu media net pcmcia scsi sound trace video; do
cp -a include/$i ${pkgdir}/usr/src/linux-${_kernver}/include/
done
# copy arch includes for external modules
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/x86
cp -a arch/x86/include ${pkgdir}/usr/src/linux-${_kernver}/arch/x86/
# copy files necessary for later builds, like nvidia and vmware
cp Module.symvers ${pkgdir}/usr/src/linux-${_kernver}
cp -a scripts ${pkgdir}/usr/src/linux-${_kernver}
# fix permissions on scripts dir
chmod og-w -R ${pkgdir}/usr/src/linux-${_kernver}/scripts
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/.tmp_versions
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel
cp arch/$KARCH/Makefile ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
if [ "$CARCH" = "i686" ]; then
cp arch/$KARCH/Makefile_32.cpu ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
fi
cp arch/$KARCH/kernel/asm-offsets.s ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel/
# add headers for lirc package
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video
cp drivers/media/video/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/
for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102 usbvideo zc0301; do
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
cp -a drivers/media/video/$i/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
done
# add docbook makefile
install -D -m644 Documentation/DocBook/Makefile \
${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile
# add dm headers
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
cp drivers/md/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
# add inotify.h
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/linux
cp include/linux/inotify.h ${pkgdir}/usr/src/linux-${_kernver}/include/linux/
# add wireless headers
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
cp net/mac80211/*.h ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
# add dvb headers for external modules
# in reference to:
# http://bugs.archlinux.org/task/9912
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core
cp drivers/media/dvb/dvb-core/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core/
# add dvb headers for external modules
# in reference to:
# http://bugs.archlinux.org/task/11194
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
cp include/config/dvb/*.h ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
# add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new
# in reference to:
# http://bugs.archlinux.org/task/13146
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
cp drivers/media/dvb/frontends/lgdt330x.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
cp drivers/media/video/msp3400-driver.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
# add xfs and shmem for aufs building
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/mm
cp fs/xfs/xfs_sb.h ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h
# add headers vor virtualbox
# in reference to:
# http://bugs.archlinux.org/task/14568
cp -a include/drm $pkgdir/usr/src/linux-${_kernver}/include/
# add headers for broadcom wl
# in reference to:
# http://bugs.archlinux.org/task/14568
cp -a include/trace $pkgdir/usr/src/linux-${_kernver}/include/
# copy in Kconfig files
for i in `find . -name "Kconfig*"`; do
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/`echo $i | sed 's|/Kconfig.*||'`
cp $i ${pkgdir}/usr/src/linux-${_kernver}/$i
done
cd ${pkgdir}/usr/src/linux-${_kernver}/include && ln -s asm-$KARCH asm
# add header for aufs2-util
cp -a ${srcdir}/linux-$_basekernel/include/asm-generic/bitsperlong.h ${pkgdir}/usr/src/linux-${_kernver}/include/asm/
chown -R root.root ${pkgdir}/usr/src/linux-${_kernver}
find ${pkgdir}/usr/src/linux-${_kernver} -type d -exec chmod 755 {} \;
# remove unneeded architectures
rm -rf ${pkgdir}/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,microblaze,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}
package_kernel26-icc-firmware() {
pkgdesc="The included firmware files of kernel26-icc"
cd ${srcdir}/linux-$_basekernel
make firmware || return 1
make INSTALL_MOD_PATH=${pkgdir} firmware_install || return 1
kernel26-icc.preset
# mkinitcpio preset file for kernel26-icc
# DO NOT EDIT THIS LINE:
source /etc/mkinitcpio.d/kernel26-icc.kver
ALL_config="/etc/mkinitcpio.conf"
PRESETS=('default' 'fallback')
#default_config="/etc/mkinitcpio.conf"
default_image="/boot/kernel26-icc.img"
#default_options=""
#fallback_config="/etc/mkinitcpio.conf"
fallback_image="/boot/kernel26-icc-fallback.img"
fallback_options="-S autodetect"
kernel26-icc.install
# arg 1: the new package version
# arg 2: the old package version
KERNEL_NAME=-icc
KERNEL_VERSION=2.6.33-icc
post_install () {
# updating module dependencies
echo ">>> Updating module dependencies. Please wait ..."
depmod $KERNEL_VERSION
# generate init ramdisks
echo ">>> MKINITCPIO SETUP"
echo ">>> ----------------"
echo ">>> If you use LVM2, Encrypted root or software RAID,"
echo ">>> Ensure you enable support in /etc/mkinitcpio.conf ."
echo ">>> More information about mkinitcpio setup can be found here:"
echo ">>> http://wiki.archlinux.org/index.php/Mkinitcpio"
echo ""
echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
/sbin/mkinitcpio -p kernel26${KERNEL_NAME}
post_upgrade() {
pacman -Q grub &>/dev/null
hasgrub=$?
pacman -Q grub2 &>/dev/null
hasgrub2=$?
pacman -Q lilo &>/dev/null
haslilo=$?
# reminder notices
if [ $haslilo -eq 0 ]; then
echo ">>>"
if [ $hasgrub -eq 0 -o $hasgrub2 -eq 0 ]; then
echo ">>> If you use the LILO bootloader, you should run 'lilo' before rebooting."
else
echo ">>> You appear to be using the LILO bootloader. You should run"
echo ">>> 'lilo' before rebooting."
fi
echo ">>>"
fi
if grep "^[^#]*/boot" /etc/fstab 2>&1 >/dev/null; then
if ! grep "/boot" /etc/mtab 2>&1 >/dev/null; then
echo "WARNING: /boot appears to be a seperate partition but is not mounted"
echo " This is most likely not what you want. Please mount your /boot"
echo " partition and reinstall the kernel unless you are sure this is OK"
fi
fi
if [ "`vercmp $2 2.6.13`" -lt 0 ]; then
# important upgrade notice
echo ">>>"
echo ">>> IMPORTANT KERNEL UPGRADE NOTICE"
echo ">>> -------------------------------"
echo ">>> As of kernel 2.6.13, DevFS is NO LONGER AVAILABLE!"
echo ">>> If you still use DevFS, please make the transition to uDev before"
echo ">>> rebooting. If you really need to stay with DevFS for some reason,"
echo ">>> then you can manually downgrade to an older version:"
echo ">>>"
echo ">>> # pacman -U http://archlinux.org/~judd/kernel/kernel26-scsi-2.6.12.2-1.pkg.tar.gz"
echo ">>>"
echo ">>> If you choose to downgrade, don't forget to add kernel26-scsi to your"
echo ">>> IgnorePkg list in /etc/pacman.conf"
echo ">>>"
echo ">>> (NOTE: The following portion applies to uDev users as well!)"
echo ">>>"
echo ">>> If you use any DevFS paths in your GRUB menu.lst, then you will not"
echo ">>> be able to boot! Change your root= parameter to use the classic"
echo ">>> naming scheme."
echo ">>>"
echo ">>> EXAMPLES:"
echo ">>> - change root=/dev/discs/disc0/part3 to root=/dev/sda3"
echo ">>> - change root=/dev/md/0 to root=/dev/md0"
echo ">>>"
fi
# generate new init ramdisk
if [ "`vercmp $2 2.6.18`" -lt 0 ]; then
echo ">>> --------------------------------------------------------------"
echo ">>> | WARNING: |"
echo ">>> |mkinitrd is not supported anymore in kernel >=2.6.18 series!|"
echo ">>> | Please change to Mkinitcpio setup. |"
echo ">>> --------------------------------------------------------------"
echo ">>>"
fi
# updating module dependencies
echo ">>> Updating module dependencies. Please wait ..."
depmod $KERNEL_VERSION
echo ">>> MKINITCPIO SETUP"
echo ">>> ----------------"
if [ "`vercmp $2 2.6.18`" -lt 0 ]; then
echo ">>> Please change your bootloader config files:"
echo ">>> Grub: /boot/grub/menu.lst | Lilo: /etc/lilo.conf"
echo "------------------------------------------------"
echo "| - initrd26.img to kernel26${KERNEL_NAME}.img |"
echo "| - initrd26-full.img to kernel26${KERNEL_NAME}-fallback.img |"
echo "------------------------------------------------"
fi
if [ "`vercmp $2 2.6.19`" -lt 0 ]; then
echo ""
echo ">>> New PATA/IDE subsystem - EXPERIMENTAL"
echo ">>> ----------"
echo ">>> To use the new pata drivers, change the 'ide' hook "
echo ">>> to 'pata' in /etc/mkinicpio.conf HOOKS="
echo ">>> The new system changes: /dev/hd? to /dev/sd?"
echo ">>> Don't forget to modify GRUB, LILO and fstab to the"
echo ">>> new naming system. "
echo ">>> eg: hda3 --> sda3, hdc8 --> sdc8"
echo ""
echo ">>> piix/ata_piix (Intel chipsets) - IMPORTANT"
echo "----------"
echo ">>> If you have enabled ide/pata/sata HOOKs in /etc/mkinitcpio.conf"
echo ">>> the 'ata_piix' module will be used."
echo ">>> This may cause your devices to shift names, eg:"
echo ">>> - IDE: devices from hd? to sd?"
echo ">>> - SATA: sda might shift to sdc if you have 2 other disks on a PIIX IDE port."
echo ">>> To check if this will affect you, check 'mkinitcpio -M' for piix/ata_piix"
echo ""
fi
echo ">>> If you use LVM2, Encrypted root or software RAID,"
echo ">>> Ensure you enable support in /etc/mkinitcpio.conf ."
echo ">>> More information about mkinitcpio setup can be found here:"
echo ">>> http://wiki.archlinux.org/index.php/Mkinitcpio"
echo ""
echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
if [ "`vercmp $2 2.6.19`" -lt 0 ]; then
/sbin/mkinitcpio -p kernel26${KERNEL_NAME} -m "ATTENTION:\nIf you get a kernel panic below
and are using an Intel chipset, append 'earlymodules=piix' to the
kernel commandline"
else
/sbin/mkinitcpio -p kernel26${KERNEL_NAME}
fi
if [ "`vercmp $2 2.6.21`" -lt 0 ]; then
echo ""
echo "Important ACPI Information:"
echo ">>> Since 2.6.20.7 all possible ACPI parts are modularized."
echo ">>> The modules are located at:"
echo ">>> /lib/modules/$(uname -r)/kernel/drivers/acpi"
echo ">>> For more information about ACPI modules check this wiki page:"
echo ">>> 'http://wiki.archlinux.org/index.php/ACPI_modules'"
fi
post_remove() {
rm -f /boot/kernel26${KERNEL_NAME}.img
rm -f /boot/kernel26${KERNEL_NAME}-fallback.img
Then there's of course the config, it's based on kernel26 at the moment,.
I'm building it now, to test. I had to install icc manually because the AUR package for icc didn't work for me. I had to install icc manually (run the installer), but that wasn't enough. Before makepkg, you have to add the icc to $PATH e.g.
PATH=$PATH:/opt/intel/Compiler/11.1/064/bin/intel64
and execute iccvars_intel64.sh which is in that folder.
Last edited by Fackamato (2010-02-25 23:43:38)Ashren wrote:So there is a significant performance gain with ICC? Compilation time wise or?
icc kernel compiles in similar time as gcc kernel, or if there any differences these may be negligible. To be honest I was not really interested in compiling times (was doing somethig else as it takes ~12 min on my system to finish kernel compilation), but rather with overall kernel performance. This is not the same as OS performance, but I am planning to compile firefox with icc and maybe some other stuff (if I am bored enough).
If you have 32-bit OS (I have no idea how it will work on 64-bit), try it. I can't post PKGBUILD for 32-bit icc kernel because I don't use PKGBUILD for kernels or nvidia as I have found it limiting/cumbersome/unnecessary (while PKGBUILDs work great for anything else on Arch).
The only part really annoying is intel server speed. Downloading icc sources (710MB for 32-bit only) tahes two hours. If you try to get 32/64bit sources even longer (1GB download).
32-bit icc PKGBUILD package requires only one modification related to Release Notes otherwise makepkg will fail. Once installed export icc path, edit kernel Makefile and change one line related to compiler: change gcc to icc. You can also add some compiling optimizations.
Pretty easy if you did compile kernel before.
note added:
actually combination of icc and zen seems to have nice effect on desktop responsiveness (this is 2.6.33)
Last edited by broch (2010-02-26 19:54:57) -
Hi,
We have a supermicro server with 2 x E5-2660 processors and 160GB of memory.
The only role assigned to this server is Hyper-V and we have about 100 VMs each with two vCores provisioned on this server.
I checked the cpu load by monioring the %Processor Time counter and noticed that while 10 out of 32 cores are at 100%, 15 of them are below 10%.
I am wondering if it possible to balance the load on the CPU cores to improve the performance and utilize the full processing power of each CPU.Hyper-V will schedule things appropriately - most likely better than any manual intervention could provide. It could be the nature of your applications.
Hyper-V does provide the ability to assign memory weightings to different VMs if you really want to get into that.
.:|:.:|:. tim -
SAP IQ CPU(core) to disk I/O ratio
Good Day,
Question regarding CPU to disk I/O relation:
1) Initally we had two SAP IQ 12.7 instances runniing on a Linux x64 Red Hat 5.5 machine with 16 cores / 256Gb RAM
2) Now we moved to SAP Iq 15.4 on the same macine but leaving just this one instance with same # of cores / RAM available
This instance is heavily used in terms of data load , query and reporting during the day.
Regarding to CPU to disk I/O ratio, is it valid or not to assume the follwing:
If we bumped up the number of cores( now 16 available to IQ), the number of of disk I/O request will also will be increased, assuming the same workload and number of users connected?
There is an old EMC Symmetrix storage involved here , which wasn't upgraded
Thank you
RegardsWith IQ 15.4, a rough sizing that I use is 25-50 MB/sec of IO needed per core. With IQ 16 that gets increased even higher. If you have a heavy workload, then I would assume around 50 MB/sec. In today's disk world, a disk can sustain about 25 MB/sec of random IO, at best. This takes us to needing about 2 disks per core on the system. If you find that main and temp are both being used quite a bit then I would recommend having 2 disks per core per storage type (main, temp).
Mark -
Pinning physical CPU cores for VMs
Hi all,
Let's assume we have OVM Server pool on two-node Dell R900 Hosts, FC switches and SAN. One server is acting as the Server Pool Master and Utilty Server, as well as the OVM Server. The other Dell R900 server acts as the OVM Server. Both Dell servers have two quad-core processors and are configured as active/passive. VMs are meant to be on SAN but will need memory and CPU from the phyisical servers in two-node Dell r900 hosts.
Is it possible to specify cores for the first VM as cpus='0,1,2,3' and the second VM as cpus='4,5,6,7' in both vm.cfg to avoid the situation when they will both use the same first four cores on the same phyisical server? I know it is more expensive lto use all 8 cores but is inevitable since the two applications in two VMs will need a lot of processing power.
What would be your recommendation how to configure vm.cfg and cpus parameter for two different VMs?
Cheers,
AndreiI am in a very similar position where we have 2 CPU license for Oracle DB. I would like to use this to run two separate databases on separate OS instances. One will be an OBIEE database and the other will be an Oracle Retail database. I'd like to assign both guests CPU 0,1,2,3 and let them share the CPU resources but I don't know if you can do that with "Hard Partitioning".
Interesting side note - since the servers I bought are running the Intel X5680 CPU's they have the new style Nehalem hyperthreading. This means that on my 2 socket server I have a total of 12 CPU cores (six core CPU's) and each core has two threads. This shows up as 24 CPU's on the Oracle VM server. If I read the licensing correctly I can run my 2 CPU's on 4 cores which means I should be able to assign 8 CPU instances and meet the database CPU licencing requirements - RIGHT?! - thoughts? -
MobileDeviceHelper running @ 100% on one CPU Core
Hi, anyone suggest anything to fix one of my CPU cores runs MobileDeviceHelper (32Bit) at 100% consistently after iTunes is started.
The machine is a new build with Windows 8 64bit all updates and patches applied. All latest manufacturer chipset and other relevant drivers and every other part of the machine works perfectly. If I end the process, distnoted (32 bit) then replaces it and takes over with another core running at 100%. Ending that process and mobiledevicehelper comes back at one core 100% usage, then ending that and it behaves.
I have tried restarting the machine, installing updates, disabling the task in task manager, resetting the network adapter (winsock reset) and disabling ApplePush, and itunes helper at startup but am out of ideas now! I haven't even sync'd my phone to it yet.
Im fast thinking iTunes seems to be getting more buggy each release (I haven't been able to burn an audio cd on the new machine as it crashes while attempting to, but other software can burn the same playlist and file after dragging out of the iTunes playlist) yet iTunes on my Macbook runs fine!oh and its iTunes 12.1.1.4 64Bit with Windows 8.1 Pro 64Bit all latest updates.
As a workaround I have found the two files, renamed them so iTunes cant call them and everything still works fine which begs the questions what are they doing that uses 100% of one CPU core! I haven't setup my iPhone as a remote, or my AppleTVs yet, hoping they don't rely on these services! -
Using both CPU cores on Zynq?
Hi,
Has anyone tried to use both cpu cores of zynq?
I did not find any example from Xilinx, only related information
in "Zynq-7000 EPP Technical Reference Manual UG585 (v1.2)".
It says that cpu0 must do these two things:
1. Write the address of the application for CPU1 to 0xFFFFFFF0.
2. Execute the SEV instruction to cause CPU1 to wake up and
jump to the application.
Found a "dual cpu demo" example on ARM web-site:
http://www.arm.com/files/pdf/ZC702_DS5_2.pdf
However, the attached source code doesn't do any of the
above two actions. How can the second cpu start then?
Regards,
Pramod Ranade
Thank you j, for the suggestions.
I was basically trying with baremetal/baremetal.
First I used "hello world" example for CPU0, it
works fine. Then I added another "hello world",
but now for CPU1. Then I edited it's main() and
removed the initialization part and also the
printf("hello world"). Instead, I simply declare
a pointer to some memory location. And in an
infinite loop, I keep incrementing the value
pointed by that pointer.
The "hello world0" on the other hand has been
modified to write start address of the "hello world1"
to location 0xFFFFFFF0 and then a simple "SEV".
Then the program reads the same memory
location (which is being incremented by CPU1)
and prints it's value to UART. I was expecting that
the value will be seen increasing...but I see it
constant.
For the shared memory location, I tried 0x00700000
which is in DDR RAM. I also tried 0xFFFFE000 which
is in OCM. Neither worked...
I suspect, CPU0 needs to something more than just
writing CPU1 start address to 0xFFFFFFF0 and then
issuing a SEV. But I could not find any more information.
Nor can I find any example that uses both CPU cores.
Regards,
Pramod Ranade
-
Hi,
I have a server, which has 2 CPU's, 16 Virtual CPU's and 8 cores. There are two zones on this server and I'd like to specifically assign half the cores (4 cores) to one zone and half the cores to the second zone. The CPU cores have to be assigned to a zone in order to comply with Oracle licensing. Can anyone please help?
I have looked online and I haven't found anywhere that specifies how to assign cores, I may not be looking in the right place though.
Am I right in thinking that virtual CPU's is the same as threads?
Thanks.Hello,
The term Virtual CPU means a "CPU" that executes a single thread, from the Solaris OS perspective. The number of VCPUs a server has is calculated from the formula VCPU=CPU*Core*Thread.
In order to configure the zone to have 4 dedicated "CPUs" follow the below procedure:
1) Configure the zone
# zonecfg -z your_zone
zonecfg:your_zone> add dedicated-cpu
zonecfg:your_zone:dedicated-cpu> set ncpus=4
zonecfg:your_zone:dedicated-cpu> end
2) Reboot the zone
zoneadm -z your_zone reboot
Regards,
Rei -
MSI's Unlock CPU Core Technology
Core unlocking of AMD processor has been a very hot topic of forum discussion. The possibility of spending a mere $100 dollars for a Phenom II X2/X3 CPU and unlocking the disabled cores to yield a $200 dollars Phenom II X4 is exactly like the goal of every overclocker around .Due to this demand, MSI official introduce the exclusive technology of Unlock CPU Core.
MSI’s Unlock CPU Core technology became available with the introduction of AMD Phenom II CPU series. No matter dual-core, triple-core or quad-core, all fall into the same series, and the only difference in number of cores is the difference in normal operation. However, MSI has since offered a BIOS capable of taking advantage of the Unlock CPU Core ability in order to offer its customers an even better user experience. Simply by enabling the related function, users can easily activate concealed core(s). Additionally, in order to prevent any instability from activating the concealed core, MSI’s Unlock CPU Core technology can be turned both off and on, so the user can decide whether to overclock a single-core or run a multi-core setup.
[The Benefit of Unlock CPU Core]
• With the same price, one can get an even better performance
• The cost-performance ratio instantly increases 70% at least.
• Just turn on this function, unlock CPU Core for freely
[How to Use MSI's Unlock CPU Core Technology]
STEP 1: Enter the Cell Menu option list in the BIOS
STEP 2: Enable the Unlock CPU Core function
STEP 3: Enable the ACC (Advanced Clock Calibration) function, and, at this time, you will see the originally two core list will become a four core list with the options of enabling/disabling any of Core 2
At this time, though Core 1 cannot be disabled, all other cores have the options of being enabled/disabled, but should any of the cores be unstable, the user may be unable to start his/her O/S, and the system may even crash.
STEP 5: If the cores are unlocked successfully, the user may try entering the system information and discover that what was first a dual-core CPU has grown to a quad-core , and the performance has highly increased.
[Applied Model]Quote from: Bas on 12-November-09, 01:04:39
Could be the option is missing because your CPU hasn't got a 4th core?
I don't know, just guessing.
Im not sure either, but there are reports outthere that say that AMD is lasercutting the extra cores on the X2/X3 range, because of the unlocking of them.
So they physically remove any connections to other cores or the core itself and thus you cant unlock it, cause they rendered it useless and/or its not there anymore.
This has to do with the fact that most of the cores that are disabled are flawed.
Dunno if thats the case with your for sure though, you might get lucky and get the extra core to run, but there is NO guarantee it will work flawlessly.
Maybe you are looking for
-
Simple/silly question: how do I set/change default font/color for outgoing mail messages?
-
Virtualbox-modules cannot resolve dependecies
resolving dependencies... error: cannot resolve "kernel26<2.6.26", a dependency of "virtualbox-modules" error: failed to prepare transaction (could not satisfy dependencies) :: virtualbox-modules: requires kernel26<2.6.26
-
Can I upgrade to CS5 from CS4 if CS4 is not on my computer?
I downloaded CS4 from the internet and ran it on my computer until the computer crashed and I had to install a new hard drive. I now have CS4 on a backup disk ONLY, and it won't install from the disk for some reason. I get this error message: UI mode
-
Why can't I cut and edit a track anymore without Flex Time activating by itself?
Everytime I try to cut a track Flex Time activates itself. It's like I am forced to use Flex Time even though I don't want to. If I unticked Flex Time, it keeps activates itself no matter what. This garageBand 11 is just horrible. I wanna go back to
-
My computer will not boot and it will not enter Safe Mode. I ran the Memory Diagnostic test and it shows that I have a hardware problem. I also tried to restore my computer to an earlier time but it showed an error. I have 1GB or RAM and recently it