10-02-2009
C POSIX: Analyze a Boggle board using 100% CPU on a quad core.
I have written the worlds most advanced lexicon data structure in order to score a Boggle Board using a parallel algorithm.
I ran into a problem. Using mutexes and condition variables did not allow me to use 100% of the CPU resources on my quad core Q9450.
I wonder if the problem is that the worker threads call the same recursive function many thousands, to millions of times per second.
Should each thread have its own identical recursive function defined so that they are not all waiting to access the memory where the function is stored?
Thank You,
HeavyJ
9 More Discussions You Might Find Interesting
1. AIX
Hi,
what is concept of core in ibm platform?
I want to know how to find out no of core in cpu in aix i.e command
how to find out value of core?
Wheather any specification is there? (1 Reply)
Discussion started by: manoj.solaris
1 Replies
2. AIX
is there command which will display no of core per cpu in aix?
Regads,
Manoj (1 Reply)
Discussion started by: manoj.solaris
1 Replies
3. UNIX for Advanced & Expert Users
Hi,
I want to know if in UNIX is it possible to distinguish between a CPU and a core through any command?
Thanks,
Vineet (1 Reply)
Discussion started by: vineetd
1 Replies
4. Linux Benchmarks
CPU/Speed: AMD Phenom(tm) 9950 Quad-Core Processor
Ram: 3.6 GB
Motherboard: Foxconn 7da-s
Bus:
Cache:
Controller:
Disk:
Load:
Kernel: Linux 2.6.26-2-amd64
Kernel ELF?:
pgms:
==============================================================
BYTE UNIX Benchmarks (Version... (0 Replies)
Discussion started by: migracho
0 Replies
5. AIX
Hi Friends-
What does it mean by 2 cpu cores, 3 cpu cores? Does it mean 2 separate cpus or what is it exactly ?
Kindly explain a bit in detail.
Thanks
panditt (4 Replies)
Discussion started by: deshaipet
4 Replies
6. Solaris
Hi,
I have 2 physical processor UltraSPARC-T2 with 32 virtual processors
I want to execute a perl program on 10 virtual processors.
I try prset command, but I don't see a difference.
psrset -c "created processor set 2" 1 2 3 4 5 6 7 8 9 10"
psrset -b 2 `pgrep program.pl`
Maybe... (8 Replies)
Discussion started by: falloutsam
8 Replies
7. HP-UX
hi every body
i want to know if i have server with hp-ux os if i did "machinfo" i will see no of cpu = for example 16
how can i know this is dual or quad core .
thanks (2 Replies)
Discussion started by: maxim42
2 Replies
8. Solaris
please help
does a cpu/memory module have a firmware ?? and do i need to check it before install the cpu/memory module in the motherboard ??
thnx (2 Replies)
Discussion started by: bahjatm
2 Replies
9. Red Hat
I would like to understand how many number of CPUs and cores do I have on my server based on following out put..
Few observations... Please correct me if I am wrong
Since Physical ID is same CPU is singe
It has 8 virtual processors
Hyper thrading is enabled since no of siblings are... (1 Reply)
Discussion started by: parth_buch
1 Replies
LEARN ABOUT REDHAT
longrun
LONGRUN(1) General Commands Manual LONGRUN(1)
NAME
Transmeta(TM) Crusoe(TM) LongRun(TM) utility
SYNOPSIS
longrun [-c device] [-m device] [-hlpv] [-f flag] [-s low high]
DESCRIPTION
The longrun utility is used to control and query LongRun settings on Transmeta Crusoe processors.
-c device
Set the CPUID device. The default CPUID device is /dev/cpu/0/cpuid.
-m device
Set the MSR device. The default CPUID device is /dev/cpu/0/msr.
-h Print help.
-l List LongRun information about available performance levels for the CPU.
The following values are reported on all Transmeta CPUs that implement LongRun.
% An available performance level, expressed as a percentage of range of available core CPU frequencies. 0 corresponds to
the lowest available frequency and 100 corresponds to the highest.
MHz The core CPU frequency at that level.
Volts The core CPU voltage at that level.
usage The power usage relative to the maximum performance level.
-p Print current LongRun settings and status: whether LongRun is enabled, whether LongRun Thermal Extensions are active, the current
LongRun performance window (expressed as a percentile range), the current LongRun performance level (expressed as a percentile), and
the current LongRun flags.
-v Be more verbose.
-f flag
Set a LongRun mode flag. Currently, the two supported flags are performance and economy. This controls whether the processor is in
"performance mode" or "economy mode".
-s low high
Set the current LongRun performance window as a percentile range. The low number cannot be greater than the high number. The
minimum and maximum performance values accepted by the CPU are 0 and 100, respectively.
ENVIRONMENT
No environment variables are used.
FILES
This program requires that the Linux CPUID and MSR devices be compiled into the kernel (or loaded as kernel modules), that the CPUID
character device be readable, and that the MSR character device be both readable and writable.
SEE ALSO
acpid(8), apmd(8), hdparm(8)
AUTHOR
Daniel Quinlan <quinlan@transmeta.com>
February 14, 2001 LONGRUN(1)