Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Java with kernel 2.6 and NPTL only uses one CPU
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Heretic
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2002
Posts: 114
Location: Austin, TX USA

PostPosted: Wed Jan 05, 2005 5:41 am    Post subject: Java with kernel 2.6 and NPTL only uses one CPU Reply with quote

I have a Java application that fires off a bunch of worker threads, but when I check on top, only 1 of the CPUs is completely taxed while the other are completely idle. I have enabled nptl support. I tried both the jun and blackdown JVMs, neither helped:

Code:

archimonde root # cat /proc/version
Linux version 2.6.10-gentoo-r2 (root@archimonde) (gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)) #1 SMP Tue Jan 4 11:18:35 CST 2005
archimonde root # java-config -L
[blackdown-jre-1.4.2.01] "Blackdown JRE 1.4.2.01" (/etc/env.d/java/20blackdown-jre-1.4.2.01)
[sun-jre-bin-1.4.2.06] "Sun JRE 1.4.2.06" (/etc/env.d/java/20sun-jre-bin-1.4.2.06)
[blackdown-jdk-1.4.2.01] "Blackdown JDK 1.4.2.01" (/etc/env.d/java/20blackdown-jdk-1.4.2.01)
[sun-jdk-1.4.2.06] "Sun JDK 1.4.2.06" (/etc/env.d/java/20sun-jdk-1.4.2.06) *

archimonde root # emerge -pv gcc glibc blackdown-jdk blackdown-jre

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sys-devel/gcc-3.3.4-r1  +X -bootstrap -build -debug +fortran -gcj -hardened -multilib +nls -objc +pic -static (-uclibc) 0 kB
[ebuild   R   ] sys-libs/glibc-2.3.4.20040808-r1  -build -debug -erandom -hardened -multilib +nls +nptl +pic* +userlocales* 0 kB
[ebuild   R   ] dev-java/blackdown-jdk-1.4.2.01  -doc +mozilla* 0 kB
[ebuild   R   ] dev-java/blackdown-jre-1.4.2.01  +mozilla* 0 kB


Any ideas on how to get Java threads running concurrently on multiple processors?
Back to top
View user's profile Send private message
Heretic
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2002
Posts: 114
Location: Austin, TX USA

PostPosted: Wed Jan 05, 2005 5:39 pm    Post subject: Reply with quote

Also, before kernel version 2.6.10, CPU didn't on Java wouldn't show up under top either.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum