F
Frank D. Greco
From what I understood, pre-Java 1.4.2 threading couldn't take advantage
of multi-processors on pre-Linux 2.5. Since before 2.5, Java on Linux
used green threads, ie, user-land threads, because Linux kernel threading
was sub-optimal (to put it mildly).
[With NPTL on Linux 2.6 (e.g., EL 3 kernel), this supposedly is fixed]
But in my tests with 1.4.2_05 on RH Linux 2.4.9-e38 (ie, similar to
regular Linux 2.5/2.6), I see all 4 processors being used when I run
a test pgm that just threads off a small runnable. I'm not using NPTL
and the new EL 3 kernel with the new kernel thread implementation.
I was expecting one processor to take the hit and the other processors
being idle.
Does anyone know if perhaps Red Hat perhaps cleaned up the Linux kernel threads
a bit in their 2.4.9-e38 (love the Linux numbering schemes...) to make them
work a little better?
Frank G.
+==========================================+
| Crossroads Technologies Inc. |
| www.CrossroadsTech dot com |
| fgreco at REMOVE!cross!roads!tech!dot!com|
+=========================================+
of multi-processors on pre-Linux 2.5. Since before 2.5, Java on Linux
used green threads, ie, user-land threads, because Linux kernel threading
was sub-optimal (to put it mildly).
[With NPTL on Linux 2.6 (e.g., EL 3 kernel), this supposedly is fixed]
But in my tests with 1.4.2_05 on RH Linux 2.4.9-e38 (ie, similar to
regular Linux 2.5/2.6), I see all 4 processors being used when I run
a test pgm that just threads off a small runnable. I'm not using NPTL
and the new EL 3 kernel with the new kernel thread implementation.
I was expecting one processor to take the hit and the other processors
being idle.
Does anyone know if perhaps Red Hat perhaps cleaned up the Linux kernel threads
a bit in their 2.4.9-e38 (love the Linux numbering schemes...) to make them
work a little better?
Frank G.
+==========================================+
| Crossroads Technologies Inc. |
| www.CrossroadsTech dot com |
| fgreco at REMOVE!cross!roads!tech!dot!com|
+=========================================+