multicore

many-core CPU's: Programming techniques to avoid disappointing scalability

醉酒当歌 提交于 2019-12-05 05:35:51
We've just bought a 32-core Opteron machine, and the speedups we get are a little disappointing: beyond about 24 threads we see no speedup at all (actually gets slower overall) and after about 6 threads it becomes significantly sub-linear. Our application is very thread-friendly: our job breaks down into about 170,000 little tasks which can each be executed separately, each taking 5-10 seconds. They all read from the same memory-mapped file of size about 4Gb. They make occasional writes to it, but it might be 10,000 reads to each write - we just write a little bit of data at the end of each of

Combining Multicore with Snow Cluster

♀尐吖头ヾ 提交于 2019-12-05 04:10:12
问题 Fairly new to Parallel R. Quick question. I have an algorithm that is computationally intensive. Fortunately it can easily be broken up into pieces to make use of multicore or snow . What I would like to know is if it is considered fine in practice to use multicore in conjunction with snow ? What I would like to do is split up my load to run on multiple machines in a cluster and for each machine. I would like to utilize all cores on the machine. For this type of processing, is it reasonable

Hadoop and map-reduce on multicore machines

陌路散爱 提交于 2019-12-05 03:33:58
I have read a lot about Hadoop and Map-Reduce running on clusters of machines. Does some one know if the Apache distribution can be run on an SMP with several cores. In particular, can multiple Map-Reduce processes be run on the same machine. The scheduler will take care of spreading them across multiple cores. Thanks. - KG Yes. You have multiple map and reduce slots in each machine which are determined by the RAM and CPU (each JVM instance needs 1GB by default so a 8GB machine with 16 cores should still have 7 task slots) from hadoop wiki Use the configuration knob: mapred.tasktracker.map

what does jvm do to use multicore cpu resource?

我们两清 提交于 2019-12-05 00:30:16
问题 Usually a java program is running with a single process called "javaw".And when I run a single process I can only get max resource of one core(of multicores). But when I run a multithread program in jvm, the number of cores it used is according to the number of threads which is beyond one process can do. So can anyone give me some information about how jvm deal with multithread program in multicore cpu machine ? /** * I run this program in my machine which has 8 core cpu * and the jre is 1.6

Parallel / Multicore Processing in R for an Integer Program?

杀马特。学长 韩版系。学妹 提交于 2019-12-04 20:43:18
Are there any packages specifically to let R run faster via parallel computing? I have made a very large IP that needs to run for a while, so I was wondering if there was a specific package in R that could help me run my IP. Currently, I have a function that returns the solution of an IP and the primary line that R gets stuck on (for a very...very long time) is when I use lp (....all.int = TRUE). My CPU is around 12.5% (8 cores) on my Windows computer, and I want it to near 100 Edit: I tried using the doParallel package, library('doParallel') cl <- makeCluster(8) registerDoParallel(cl) But my

Multicore programming in Haskell - Control.Parallel

断了今生、忘了曾经 提交于 2019-12-04 18:36:37
问题 I'm trying to learn how to use the Control.Parallel module, but I think I didn't get it right. I'm trying to run the following code ( fibs.hs ). import Control.Parallel fib :: Int -> Int fib 0 = 0 fib 1 = 1 fib n = p `par` (q `pseq` (p + q)) where p = fib (n-1) q = fib (n-2) main = print $ fib 30 I compiled this with: ghc -O2 --make -threaded fibs.hs And then I get the following results executing this program (output of a Python script that runs each program 100 times and returns the average

Lua :: How to write simple program that will load multiple CPUs?

无人久伴 提交于 2019-12-04 18:10:53
问题 I haven't been able to write a program in Lua that will load more than one CPU. Since Lua supports the concept via coroutines, I believe it's achievable. Reason for me failing can be one of: It's not possible in Lua I'm not able to write it ☺ ( and I hope it's the case ) Can someone more experienced (I discovered Lua two weeks ago) point me in right direction? The point is to write a number-crunching script that does hi-load on ALL cores... For demonstrative purposes of power of Lua. Thanks..

force scheduler to allocate thread to specific processor

白昼怎懂夜的黑 提交于 2019-12-04 15:23:27
Consider a case where we have multiple processor/cores and two threads. Is it possible to force the linux scheduler to always schedule the specific thread(both) to a specific processor at every instance of its execution. Is setting processor affinity to the threads, while creation, sufficient for this purpose If you look at the man page for taskset you can see the following statement: The Linux scheduler will honor the given CPU affinity and the process will not run on any other CPUs. This means that setting the CPU affinity for a particular process will make sure that it's always run on that

Any multi-core sorting implementation in .NET?

杀马特。学长 韩版系。学妹 提交于 2019-12-04 13:04:47
Any multi-core sorting implementation in .NET? Here's a multi-threaded QuickSort I put together a while back using async / await . Under a certain sort size, it "reverts" back to an elementary sort known as Double-Ended Selection Sort: public static class SortExtensions { /// <summary> /// Sorts the list. /// </summary> /// <typeparam name="T"> /// The IComparable element type of the list. /// </typeparam> /// <param name="list">The list to sort.</param> public static async Task SortIt<T>(this IList<T> list) where T : IComparable<T> => await SortIt(list, 0, list.Count - 1); /// <summary> ///

multi-core processing in R on windows XP - via doMC and foreach

╄→гoц情女王★ 提交于 2019-12-04 10:55:05
问题 I'm posting this question to ask for advice on how to optimize the use of multiple processors from R on a Windows XP machine. At the moment I'm creating 4 scripts (each script with e.g. for (i in 1:100) and (i in 101:200), etc) which I run in 4 different R sessions at the same time. This seems to use all the available cpu. I however would like to do this a bit more efficient. One solution could be to use the "doMC" and the "foreach" package but this is not possible in R on a Windows machine.