<div dir="ltr"><div><div>Unless the java code was compiled to be multi-threaded, thread safe and teh entire applicaiton designed to support parallel processing, nope. (welcome to my world :-)<br><br></div>That said, you could split the video job into 24 similar sized chunks and start a process for each one.<br>
<br></div>When you see the utilization spike, run top and then press '1' to see the per processor breakdown. If you see cpu0 running hard then falling off while cpu1 ramps up (repeat for other cpus), you're also getting clobbered by thread-migration overhead stuff. It's possible to do some cpu-affinity work and pin a process to a specific cpu so it will no longer move around and waste cycles just refilling the cache. Look up the tool "taskset" for processor affinity abilities. On CentOS 6.5 it's in the util-linux-ng package.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 27, 2014 at 4:49 PM, Adrya Stembridge <span dir="ltr"><<a href="mailto:adrya.stembridge@gmail.com" target="_blank">adrya.stembridge@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">A colleague and I were looking at some ontology data yesterday using java via command line. I noticed that CPU utilization averaged 99% on a system with 24 cores. The data processing is intense and time consuming. We're wondering if this could be sped up by forcing the machine to use more CPU resources. In the past, I've seen utilization reach around 1500% while encoding video. <div>
<br></div><div>Is it possible (or safe) to instruct or force java to use more cores in processing our data, or am I looking at this the wrong way? <span class="HOEnZb"><font color="#888888"><div><br></div><div>as<br><div>
<br></div><div><br></div></div></font></span></div></div>
<br>_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">-- <br>James P. Kinney III<br><i><i><i><i><br></i></i></i></i>Every time you stop a school, you will have to build a jail. What you
gain at one end you lose at the other. It's like feeding a dog on his
own tail. It won't fatten the dog.<br>
- Speech 11/23/1900 Mark Twain<br><i><i><i><i><br><a href="http://heretothereideas.blogspot.com/" target="_blank">http://heretothereideas.blogspot.com/</a><br></i></i></i></i></div>
</div>