
|
Red5 on multicore os

Some parts of this message have been removed.
Learn more about Nabble's security policy.
My system has a quadcore cpu and I am observing the following using top: A lot of processes are in the process list multiple times like events/0, events1, events/2, events/3. As far as I know this is one process for each core.
Now my red5-java process is in that list only once with name java. The CPU utilization of that single process is quite high, spiking up to 40 even 70 percent while the overall cpu utilization is low at about 6%-12%.
Now I wonder what does this mean? Is the java thread running only on one core with high utilization instead of using all cores?
How can I make sure that the jvm is using all multicore capabilities and utilizing each core?
I would love to see the process like java/0, java/1, java/2, java/3. Is there any setting withing red5, jvm or the os to do that or to make sure it uses all cores?
_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org
|

|
Re: Red5 on multicore os

Some parts of this message have been removed.
Learn more about Nabble's security policy.
Now I can provide actual top data as well to make it more clear. Below is the top output.
I would not expect the java process at 71 percent while the overall cpu utilization is only at 9 percent.
For me it looks like there is only one core occupied by the jvm and the remaining 3 cores remain unused.
top - 23:25:46 up 1 day, 2:23, 1 user, load average: 0.41, 0.53, 0.45 Tasks: 76 total, 1 running, 75 sleeping, 0 stopped, 0 zombie Cpu(s): 9.1%us, 2.5%sy, 0.0%ni, 86.3%id, 0.2%wa, 0.7%hi, 1.3%si, 0.0%st Mem: 4050392k total, 3899516k used, 150876k free, 17932k buffers Swap: 3903752k total, 64k used, 3903688k free, 2672916k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3886 root 20 0 1181m 1.0g 8536 S 71 26.8 736:01.41 java
Can anybody confirm my assumption? And how can I get the java process to utilize all 4 cpu cores? Or is there another way to check how many cores are in use?
Von: Alex Weiher <nabble_alex@...> An: Red5@... Gesendet: Mittwoch, den 8. Juli 2009, 11:56:49 Uhr Betreff: [Red5] Red5 on multicore os
My system has a quadcore cpu and I am observing the following using top: A lot of processes are in the process list multiple times like events/0, events1, events/2, events/3. As far as I know this is one process for each core.
Now my red5-java process is in that list only once with name java. The CPU utilization of that single process is quite high, spiking up to 40 even 70 percent while the overall cpu utilization is low at about 6%-12%.
Now I wonder what does this mean? Is the java thread running only on one core with high utilization instead of using all cores?
How can I make sure that the jvm is using all multicore capabilities and utilizing each core?
I would love to see the process like java/0, java/1, java/2, java/3. Is there any setting withing red5, jvm or the os to do that or to make sure it uses all cores?
_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org
|

|
Re: Red5 on multicore os

Some parts of this message have been removed.
Learn more about Nabble's security policy.
When I execute ps -eLf I see a lot of threads.
Since I run multiple Red5 servers (listening on different IPs) my count is 631
threads (using the command ps -eLf | grep java | grep -v "grep" | wc
)
I never really looked after it since most are idle
so I should tune it down a bit but 631 looks fine to be distributed over my 4
cores.
Do you use the MultiThreadedApplicationAdapter in
your application ?
----- Original Message -----
Sent: Wednesday, 08 July 2009 23:34
Subject: Re: [Red5] Red5 on multicore
os
Now I can provide actual top data as well to make it more clear. Below is
the top output.
I would not expect the java process at 71 percent while the overall cpu
utilization is only at 9 percent.
For me it looks like there is only one core occupied by the jvm and the
remaining 3 cores remain unused.
top - 23:25:46 up 1 day, 2:23, 1 user, load average:
0.41, 0.53, 0.45 Tasks: 76 total, 1 running, 75
sleeping, 0 stopped, 0 zombie Cpu(s): 9.1%us, 2.5%sy, 0.0%ni, 86.3%id,
0.2%wa, 0.7%hi, 1.3%si, 0.0%st Mem: 4050392k
total, 3899516k used, 150876k free, 17932k
buffers Swap: 3903752k total, 64k
used, 3903688k free, 2672916k cached
PID USER PR
NI VIRT RES SHR S %CPU %MEM TIME+
COMMAND 3886 root
20 0 1181m 1.0g
8536 S 71 26.8
736:01.41 java
Can anybody confirm my assumption? And how can I get the
java process to utilize all 4 cpu cores? Or is there another way to check how
many cores are in use?
Von: Alex Weiher
<nabble_alex@...> An: Red5@... Gesendet: Mittwoch, den 8. Juli 2009,
11:56:49 Uhr Betreff: [Red5]
Red5 on multicore os
My system has a quadcore cpu and I am observing the following using top:
A lot of processes are in the process list multiple times like events/0,
events1, events/2, events/3. As far as I know this is one process for each
core.
Now my red5-java process is in that list only once with name java. The
CPU utilization of that single process is quite high, spiking up to 40 even 70
percent while the overall cpu utilization is low at about 6%-12%.
Now I wonder what does this mean? Is the java thread running only on one
core with high utilization instead of using all cores?
How can I make sure that the jvm is using all multicore capabilities and
utilizing each core?
I would love to see the process like java/0, java/1, java/2, java/3. Is
there any setting withing red5, jvm or the os to do that or to make sure it
uses all cores?
_______________________________________________ Red5 mailing
list Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org
Internal Virus Database is out-of-date. Checked by AVG. Version:
7.5.560 / Virus Database: 270.12.26/2116 - Release Date: 15-05-09
06:16
_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org
|

|
Re: Red5 on multicore os

Some parts of this message have been removed.
Learn more about Nabble's security policy.
When I excute the same commands I can see multiple java threads. So far so good.
But how can I tell if they are distributed over all cores of the cpu?
As it is not my application I cannot tell if it uses the MultiThreadedApplicationAdapter.
No I have played around with the garbage collector as this was the only information I have found. This can be set to parallelous mode. It seems that this is everything that can/needed to be done. Any opinions still appreciated.
Von: Walter Tak <walter@...> An: red5@... Gesendet: Donnerstag, den 9. Juli 2009, 17:02:57 Uhr Betreff: Re: [Red5] Red5 on multicore os
When I execute ps -eLf I see a lot of threads. Since I run multiple Red5 servers (listening on different IPs) my count is 631 threads (using the command ps -eLf | grep java | grep -v "grep" | wc )
I never really looked after it since most are idle so I should tune it down a bit but 631 looks fine to be distributed over my 4 cores.
Do you use the MultiThreadedApplicationAdapter in your application ?
----- Original Message -----
Sent: Wednesday, 08 July 2009 23:34
Subject: Re: [Red5] Red5 on multicore os
Now I can provide actual top data as well to make it more clear. Below is the top output.
I would not expect the java process at 71 percent while the overall cpu utilization is only at 9 percent.
For me it looks like there is only one core occupied by the jvm and the remaining 3 cores remain unused.
top - 23:25:46 up 1 day, 2:23, 1 user, load average: 0.41, 0.53, 0.45 Tasks: 76 total, 1 running, 75 sleeping, 0 stopped, 0 zombie Cpu(s): 9.1%us, 2.5%sy, 0.0%ni, 86.3%id, 0.2%wa, 0.7%hi, 1.3%si, 0.0%st Mem: 4050392k total, 3899516k used, 150876k free, 17932k buffers Swap: 3903752k total, 64k used, 3903688k free, 2672916k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3886 root 20 0 1181m 1.0g 8536 S 71 26.8 736:01.41 java
Can anybody confirm my assumption? And how can I get the java process to utilize all 4 cpu cores? Or is there another way to check how many cores are in use?
Von: Alex Weiher <nabble_alex@...> An: Red5@... Gesendet: Mittwoch, den 8. Juli 2009, 11:56:49 Uhr Betreff: [Red5] Red5 on multicore os
My system has a quadcore cpu and I am observing the following using top: A lot of processes are in the process list multiple times like events/0, events1, events/2, events/3. As far as I know this is one process for each core.
Now my red5-java process is in that list only once with name java. The CPU utilization of that single process is quite high, spiking up to 40 even 70 percent while the overall cpu utilization is low at about 6%-12%.
Now I wonder what does this mean? Is the java thread running only on one core with high utilization instead of using all cores?
How can I make sure that the jvm is using all multicore capabilities and utilizing each core?
I would love to see the process like java/0, java/1, java/2, java/3. Is there any setting withing red5, jvm or the os to do that or to make sure it uses all cores?
_______________________________________________ Red5 mailing list Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org
Internal Virus Database is out-of-date. Checked by AVG. Version: 7.5.560 / Virus Database: 270.12.26/2116 - Release Date: 15-05-09 06:16
_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org
|

|
Re: Red5 on multicore os

Some parts of this message have been removed.
Learn more about Nabble's security policy.
You could install package sysstat.
That package includes the command
"mpstat"
Using "mpstat" you can see the overall cpu load and
with option "mpstat -P ALL" you can see the individual cpu load in
%.
Please post your results, I'm sure more people are
interested in them.
Walter
Example:
2009-07-11 16:38:21 root@... mpstat -P ALL Linux
2.6.24-etchnhalf.1-686 (xxxxxxxxxxxx)
07/11/2009 _i686_ (4 CPU)
04:38:22 PM CPU
%usr %nice %sys %iowait
%irq %soft %steal %guest %idle 04:38:22
PM all 0.24 0.00
0.10 0.02 0.00
0.00 0.00 0.00 99.63 04:38:22
PM 0 0.18
0.00 0.08 0.02
0.00 0.00 0.00
0.00 99.72 04:38:22 PM 1
0.31 0.00 0.13
0.02 0.00 0.00
0.00 0.00 99.53 04:38:22 PM
2 0.19 0.00
0.11 0.02 0.00
0.00 0.00 0.00 99.67 04:38:22
PM 3 0.28
0.00 0.08 0.02
0.00 0.00 0.00
0.00 99.61
When I excute the same commands I can see multiple java threads. So far
so good.
But how can I tell if they are distributed over all cores of the
cpu?
As it is not my application I cannot tell if it uses the MultiThreadedApplicationAdapter.
No I have played around with the garbage collector as this was the only
information I have found. This can be set to parallelous mode. It seems that
this is everything that can/needed to be done. Any opinions still
appreciated.
Von: Walter Tak
<walter@...> An: red5@... Gesendet: Donnerstag, den 9. Juli 2009,
17:02:57 Uhr Betreff: Re:
[Red5] Red5 on multicore os
When I execute ps -eLf I see a lot of threads.
Since I run multiple Red5 servers (listening on different IPs) my count is 631
threads (using the command ps -eLf | grep java | grep -v "grep" | wc
)
I never really looked after it since most are
idle so I should tune it down a bit but 631 looks fine to be distributed over
my 4 cores.
Do you use the MultiThreadedApplicationAdapter in
your application ?
----- Original Message -----
Sent: Wednesday, 08 July 2009
23:34
Subject: Re: [Red5] Red5 on multicore
os
Now I can provide actual top data as well to make it more clear. Below
is the top output.
I would not expect the java process at 71 percent while the overall cpu
utilization is only at 9 percent.
For me it looks like there is only one core occupied by the jvm and the
remaining 3 cores remain unused.
top - 23:25:46 up 1 day, 2:23, 1 user, load average:
0.41, 0.53, 0.45 Tasks: 76 total, 1 running, 75
sleeping, 0 stopped, 0 zombie Cpu(s): 9.1%us, 2.5%sy, 0.0%ni, 86.3%id,
0.2%wa, 0.7%hi, 1.3%si, 0.0%st Mem:
4050392k total, 3899516k used, 150876k
free, 17932k buffers Swap: 3903752k
total, 64k used, 3903688k
free, 2672916k cached
PID USER PR
NI VIRT RES SHR S %CPU %MEM TIME+
COMMAND 3886 root
20 0 1181m 1.0g
8536 S 71 26.8
736:01.41 java
Can anybody confirm my assumption? And how can I get
the java process to utilize all 4 cpu cores? Or is there another way to
check how many cores are in use?
Von: Alex Weiher
<nabble_alex@...> An: Red5@... Gesendet: Mittwoch, den 8. Juli 2009,
11:56:49 Uhr Betreff:
[Red5] Red5 on multicore os
My system has a quadcore cpu and I am observing the following using
top: A lot of processes are in the process list multiple times like
events/0, events1, events/2, events/3. As far as I know this is one process
for each core.
Now my red5-java process is in that list only once with name java. The
CPU utilization of that single process is quite high, spiking up to 40 even
70 percent while the overall cpu utilization is low at about 6%-12%.
Now I wonder what does this mean? Is the java thread running only on
one core with high utilization instead of using all cores?
How can I make sure that the jvm is using all multicore capabilities
and utilizing each core?
I would love to see the process like java/0, java/1, java/2, java/3. Is
there any setting withing red5, jvm or the os to do that or to make sure it
uses all cores?
_______________________________________________ Red5 mailing
list Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org
Internal Virus Database is out-of-date. Checked by AVG.
Version: 7.5.560 / Virus Database: 270.12.26/2116 - Release Date:
15-05-09 06:16
_______________________________________________ Red5 mailing
list Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org
Internal Virus Database is out-of-date. Checked by AVG. Version:
7.5.560 / Virus Database: 270.12.26/2116 - Release Date: 15-05-09
06:16
_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org
|

|
Re: Red5 on multicore os

Some parts of this message have been removed.
Learn more about Nabble's security policy.
Btw this is a useful link with examples of mpstat,
sar etc.
You could install
package sysstat.
That package includes the command
"mpstat"
Using "mpstat" you can see the overall cpu load
and with option "mpstat -P ALL" you can see the individual cpu load in
%.
Please post your results, I'm sure more people
are interested in them.
Walter
Example:
2009-07-11 16:38:21 root@... mpstat -P ALL Linux
2.6.24-etchnhalf.1-686 (xxxxxxxxxxxx)
07/11/2009 _i686_ (4 CPU)
04:38:22 PM CPU
%usr %nice %sys %iowait
%irq %soft %steal %guest %idle 04:38:22
PM all 0.24 0.00
0.10 0.02 0.00
0.00 0.00 0.00
99.63 04:38:22 PM 0
0.18 0.00 0.08
0.02 0.00 0.00
0.00 0.00 99.72 04:38:22 PM
1 0.31 0.00
0.13 0.02 0.00
0.00 0.00 0.00
99.53 04:38:22 PM 2
0.19 0.00 0.11
0.02 0.00 0.00
0.00 0.00 99.67 04:38:22 PM
3 0.28 0.00
0.08 0.02 0.00
0.00 0.00 0.00
99.61
When I excute the same commands I can see multiple java threads. So far
so good.
But how can I tell if they are distributed over all cores of the
cpu?
As it is not my application I cannot tell if it uses the MultiThreadedApplicationAdapter.
No I have played around with the garbage collector as this was the only
information I have found. This can be set to parallelous mode. It seems that
this is everything that can/needed to be done. Any opinions still
appreciated.
Von: Walter Tak
<walter@...> An: red5@... Gesendet: Donnerstag, den 9. Juli 2009,
17:02:57 Uhr Betreff: Re:
[Red5] Red5 on multicore os
When I execute ps -eLf I see a lot of threads.
Since I run multiple Red5 servers (listening on different IPs) my count is
631 threads (using the command ps -eLf | grep java | grep -v "grep" | wc
)
I never really looked after it since most are
idle so I should tune it down a bit but 631 looks fine to be distributed
over my 4 cores.
Do you use the MultiThreadedApplicationAdapter
in your application ?
----- Original Message -----
Sent: Wednesday, 08 July 2009
23:34
Subject: Re: [Red5] Red5 on multicore
os
Now I can provide actual top data as well to make it more clear.
Below is the top output.
I would not expect the java process at 71 percent while the overall
cpu utilization is only at 9 percent.
For me it looks like there is only one core occupied by the jvm and
the remaining 3 cores remain unused.
top - 23:25:46 up 1 day, 2:23, 1 user, load
average: 0.41, 0.53, 0.45 Tasks: 76 total, 1
running, 75 sleeping, 0 stopped, 0
zombie Cpu(s): 9.1%us,
2.5%sy, 0.0%ni, 86.3%id, 0.2%wa, 0.7%hi,
1.3%si, 0.0%st Mem: 4050392k total, 3899516k
used, 150876k free, 17932k
buffers Swap: 3903752k total,
64k used, 3903688k free, 2672916k cached
PID USER PR
NI VIRT RES SHR S %CPU %MEM
TIME+ COMMAND 3886 root
20 0 1181m
1.0g 8536 S 71 26.8
736:01.41 java
Can anybody confirm my assumption? And how can I get
the java process to utilize all 4 cpu cores? Or is there another way to
check how many cores are in use?
Von: Alex Weiher
<nabble_alex@...> An: Red5@... Gesendet: Mittwoch, den 8. Juli 2009,
11:56:49 Uhr Betreff:
[Red5] Red5 on multicore os
My system has a quadcore cpu and I am observing the following using
top: A lot of processes are in the process list multiple times like
events/0, events1, events/2, events/3. As far as I know this is one
process for each core.
Now my red5-java process is in that list only once with name java.
The CPU utilization of that single process is quite high, spiking up to 40
even 70 percent while the overall cpu utilization is low at about
6%-12%.
Now I wonder what does this mean? Is the java thread running only on
one core with high utilization instead of using all cores?
How can I make sure that the jvm is using all multicore capabilities
and utilizing each core?
I would love to see the process like java/0, java/1, java/2, java/3.
Is there any setting withing red5, jvm or the os to do that or to make
sure it uses all
cores?
_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org
|

|
Re: Red5 on multicore os

Some parts of this message have been removed.
Learn more about Nabble's security policy.
Thank you for sending me that link. This was exactly what I needed. My output looks like this:
mpstat -P ALL Linux 2.6.26-2-686-bigmem 11.07.2009 _i686_
19:40:58 CPU %user %nice %sys %iowait %irq %soft %steal %idle intr/s 19:40:58 all 5,20 0,00 1,42 0,12 0,60 0,90 0,00 91,76 11374,34 19:40:58 0 5,16 0,00 1,39 0,13 0,74 1,04 0,00 91,54 2843,58 19:40:58 1 5,25
0,00 1,44 0,12 0,54 0,88 0,00 91,78 2843,58 19:40:58 2 5,29 0,00 1,43 0,12 0,60 0,85 0,00 91,71 2843,58 19:40:58 3 5,09 0,00 1,41 0,11 0,53 0,84 0,00 92,02 2843,58
It looks like all cores are in use equally. Thats good.
Von: Walter Tak <walter@...> An: red5@... Gesendet: Samstag, den 11. Juli 2009, 17:00:59 Uhr Betreff: Re: [Red5] Red5 on multicore os
Btw this is a useful link with examples of mpstat, sar etc.
You could install package sysstat.
That package includes the command "mpstat"
Using "mpstat" you can see the overall cpu load and with option "mpstat -P ALL" you can see the individual cpu load in %.
Please post your results, I'm sure more people are interested in them.
Walter
Example:
2009-07-11 16:38:21 root@... mpstat -P ALL Linux 2.6.24-etchnhalf.1-686 (xxxxxxxxxxxx) 07/11/2009 _i686_ (4 CPU)
04:38:22 PM CPU %usr %nice %sys %iowait %irq %soft %steal %guest %idle 04:38:22 PM all 0.24 0.00 0.10 0.02 0.00 0.00 0.00 0.00 99.63 04:38:22 PM 0 0.18 0.00 0.08 0.02 0.00 0.00 0.00 0.00 99.72 04:38:22 PM 1 0.31 0.00 0.13 0.02 0.00 0.00 0.00 0.00 99.53 04:38:22 PM 2
0.19 0.00 0.11 0.02 0.00 0.00 0.00 0.00 99.67 04:38:22 PM 3 0.28 0.00 0.08 0.02 0.00 0.00 0.00 0.00 99.61
When I excute the same commands I can see multiple java threads. So far so good.
But how can I tell if they are distributed over all cores of the cpu?
As it is not my application I cannot tell if it uses the MultiThreadedApplicationAdapter.
No I have played around with the garbage collector as this was the only information I have found. This can be set to parallelous mode. It seems that this is everything that can/needed to be done. Any opinions still appreciated.
Von: Walter Tak <walter@...> An: red5@... Gesendet: Donnerstag, den 9. Juli 2009, 17:02:57 Uhr Betreff: Re: [Red5] Red5 on multicore os
When I execute ps -eLf I see a lot of threads. Since I run multiple Red5 servers (listening on different IPs) my count is 631 threads (using the command ps -eLf | grep java | grep -v "grep" | wc )
I never really looked after it since most are idle so I should tune it down a bit but 631 looks fine to be distributed over my 4 cores.
Do you use the MultiThreadedApplicationAdapter in your application ?
----- Original Message -----
Sent: Wednesday, 08 July 2009 23:34
Subject: Re: [Red5] Red5 on multicore os
Now I can provide actual top data as well to make it more clear. Below is the top output.
I would not expect the java process at 71 percent while the overall cpu utilization is only at 9 percent.
For me it looks like there is only one core occupied by the jvm and the remaining 3 cores remain unused.
top - 23:25:46 up 1 day, 2:23, 1 user, load average: 0.41, 0.53, 0.45 Tasks: 76 total, 1 running, 75 sleeping, 0 stopped, 0 zombie Cpu(s): 9.1%us, 2.5%sy, 0.0%ni, 86.3%id, 0.2%wa, 0.7%hi, 1.3%si, 0.0%st Mem: 4050392k total, 3899516k used, 150876k free, 17932k buffers Swap: 3903752k total, 64k used, 3903688k free, 2672916k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3886 root 20 0 1181m 1.0g 8536 S 71 26.8 736:01.41 java
Can anybody confirm my assumption? And how can I get the java process to utilize all 4 cpu cores? Or is there another way to check how many cores are in use?
Von: Alex Weiher <nabble_alex@...> An: Red5@... Gesendet: Mittwoch, den 8. Juli 2009, 11:56:49 Uhr Betreff: [Red5] Red5 on multicore os
My system has a quadcore cpu and I am observing the following using top: A lot of processes are in the process list multiple times like events/0, events1, events/2, events/3. As far as I know this is one process for each core.
Now my red5-java process is in that list only once with name java. The CPU utilization of that single process is quite high, spiking up to 40 even 70 percent while the overall cpu utilization is low at about 6%-12%.
Now I wonder what does this mean? Is the java thread running only on one core with high utilization instead of using all cores?
How can I make sure that the jvm is using all multicore capabilities and utilizing each core?
I would love to see the process like java/0, java/1, java/2, java/3. Is there any setting withing red5, jvm or the os to do that or to make sure it uses all cores?
_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org
|